Strategy Tester: Will It Take Profit or Stop Loss in a Single Candle, if both could be reached?

 

Hello, my first post in the forum so apologies if anything is unclear.

I've written an EA to place an order based on a number of conditions, with a Stop Loss and Take Profit when the order is placed. My question is: in a single candle, if the candle hits both the Stop Loss and Take Profit, will the Strategy Tester Result in the Stop Loss being filled? Or the Take Profit?

I'm running the Tester on Open Prices Only.

To be prudent it would make sense that it takes the Stop Loss first, but I haven't been able to find an explicit answer to this. Any help would be greatly appreciated!

 
It might be “prudent” but the market doesn't work that way. Stop using OPO, and it will reach one or the other just like it will live.