28 Nov 2023, 13:57

@bagheria For backtests, there is a "If Testing" block. Unfortunately with the backtester, OnChart doesn't work with buttons, but OnTick does. So if you want to backtest with it, you need to have an If Testing block, connected to the rest of your logic OnTick.

i.e. This is a old example with just a simple buy button, which works in the backtester.
https://fxdreema.com/shared/jvHegkKHc