I am developing a strategy which executes a Buy Stop market order and maintains it on each successive bar until the price crosses it.
I'd like to run a check in my code to know if the order was filled in the Current Bar, I thought I could check the change in market position between it being flat on the previous bar and long in the current bar however MarketPosition does not let you access the previous bar.
Is there a way I can achieve this?
Thanks,
Neil

Comment