Hi is there a way to code the hige and low for candles on the 1H time frame?
Eks: bar at 07:00 and 08:00 hige low and the a buy order if candle 09:00 brakes over or under?
Thanks for your help and hope you under stand what Im talking about 🙂
There you go, I tested it on DAX 1-minute TF:
DEFPARAM DrawOnLastBarOnly = true
IF BarIndex = 0 THEN
FromTime = 070000
ToTime = 080000
Hi = 0
Lo = 999999
ENDIF
IF OpenTime >= FromTime AND OpenTime <= ToTime THEN
Hi = max(Hi,High)
Lo = min(Lo,Low)
ENDIF
DRAWHLINE(Hi)
DRAWHLINE(Lo)
RETURN