Plot price at specific 5-minute bar at certain time of each day

I would like to plot the high price of the 5-minute bar at 2045hrs of each day in amibroker afl.

Let me clarify with an example.

Suppose today is 28 June. At 2045hrs on 28June, a horizontal line at high price of the 5-minute bar at 2045hrs will be plotted and remains at this value until the next day. On the next day 29 June, the horizontal line will shift to the high price of the 5-minute bar at 2045hrs on 29June. The same process repeats for each day.

Use Valuewhen function.

x = ValueWhen(TimeNum() == 204500, H);
1 Like

This topic was automatically closed 100 days after the last reply. New replies are no longer allowed.