These lines of code are under OnBarUpdate.
Calculate.OnEachTick
Lines 115 & 120 are custom made calculations that are counting the amount of ticks lost that was realized on the last trade, and the output will print the correct numbers.
Lines 130 || 137 is meant to add "LossInTicks" to the profit target on our next trade but its not preforming this logic at all and the profit target on the next trade is static.
This logic runs correctly on a playback but does not work during a backtest, How can I solve this?

Comment