Thank you so much Roberto
That has really helped me understand what was going wrong.
I have another question about the price level that Probacktest uses to Enter a Long Position.
What function can be used to Enter a Long Position at the ACTUAL price level specified for example at the Resistance 1 Pivot Line (R1).
For example R1 on the GBP/USD currency pair is at 12310.2 on Tuesday 13th December 2022 and the 13:30GMT 1 minute bar has a Low of 12291.7 and a High of 12396.8 making it over 100 pips long.
Instead of Entering a Long Position at R1, Probacktest uses the open of the next bar at 12388.7 which misses 78.5 pips of the trade.
I did this trade for real and got an entry price almost at R1 so there must be a way for Probacktest to use a more realistic entry price?
Any advice would be greatly appreciated.