Defparam drawonlastbaronly=true
red=0
green=0
blue=0
timeframe(4 hours)
hh=high
ll=low
last= close
avg = round((hh+ll+close)/3,2)
myopenhour=openhour
myhour=hour
timeframe(default)
if opentime>=myopenhour*10000+34500 and opentime<myopenhour*10000+40000 then
red=255
endif
drawtext("Plage horaire: #myopenhour#H - #myhour#H",barindex,1,sansserif,standard,22) coloured(red,green,blue)
drawtext("+ haut: #hh#",barindex,0.5,sansserif,standard,22) coloured(red,green,blue)
drawtext("+ bas: #ll#",barindex,0,sansserif,standard,22) coloured(red,green,blue)
drawtext("Dernier: #last#",barindex,-0.5,sansserif,standard,22) coloured(red,green,blue)
drawtext("Moyenne: #avg#",barindex,-1,sansserif,standard,22) coloured(red,green,blue)
return 0 coloured(0,0,0,0)