I have been trying to figure out how to enter long when price breaks the previous candle's high and vise versa for shorting. I have my strategy calculate on each tick and have tried experimenting with limit orders but don't work. I have tried using the condition 'GetCurrentAsk(Default input) > High[0]' or 'CrossAbove(GetCurrentAsk(0), High, 1)' but neither of these work as no trades will be executed by the strategy. Below is an example of what I am looking for.
Below is an example. pretend the most recently formed candle is still being formed and once price pushes it above the previous candle's high, I want to enter a long immediately. I have marked where I typically would have entered for this long.

Comment