defparam drawonlastbaronly=true
start = 90000
end = 91500
tc = time>start and time<=end
if tc then
if not tc[1] then
hh=high
ll=low
endif
hh=max(high,hh)
ll=min(low,ll)
endif
last= close
avg = round((hh+ll+close)/3,2)
drawtext("Plage horaire: #start# - #end#",barindex,1,sansserif,standard,14)
drawtext("+ haut: #hh#",barindex,0.5,sansserif,standard,14)
drawtext("+ bas: #ll#",barindex,0,sansserif,standard,14)
drawtext("Dernier: #last#",barindex,-0.5,sansserif,standard,14)
drawtext("Moyenne: #avg#",barindex,-1,sansserif,standard,14)
return 0 coloured(0,0,0,0)