I appreciate the backtest is based on CalculateOnBarClose, however there are many occasions during my backtest when a bar has both an entry and an exit signal... which is great its in keeping with what I would imagine would happen.
However, it occured to me, will the back test "look inside the bar" for want of a better phrase and see which was hit first, the stop or the profit target.
Please see attached image and you will see this sold at the previous bar's high, profit target was hit and then the bar continued higher. Is the backtest accurate in seeing that the profit target was reached before the bar went up.
The back test would be pretty useless if it didn't do that, but just wanted to check
Thanks
Comment