@krispy @ abhishek.anand 1
Come to think about it. This code can't trigger an order in the opening range. This is why.
The data.high is placed into variable opening_range_high. Then data.close (the same bar) is compared against opening_range_high to trigger an order. How can data.close (of the same bar) be > data.high (of the same bar)? They can be equal, but not greater.
To summarize, within the opening range the same bar is compared to itself to see if it is greater than itself. This is why it can't trigger an order within the opening range.
How do you go and create a YouTube video about this strategy when it is clearly not tested?