| ♥ 0 |
I’m trying to measure the behavior of the first three 5 min bars. If all 3 are higher highs and higher lows, then my bias is bullish for the day. The code is used as a Custom Quote:
input StartTime1 = 0930; input EndTime1 = 0935; def h1 = high; [Same for Bar 2 and Bar 3] AddLabel(1, if ORhigh2 > ORhigh1 and ORhigh3 > ORhigh2 then “UP” else if ORlow2 < ORlow1 and ORlow3 < ORlow2 then “DOWN” else ” “, COLOR.WHITE); It seems to work but it only starts to update at 9:50AM and not right at the end of the 3rd bar, i.e. at 9:45. Does anybody see what I’m doing wrong in my code?
Marked as spam
|
Please log in to post questions.
