Is the backtest not working?
Have you added any prints to your script that are not printing?
Also, when it comes to backtesting, this is for orders. If you have an indicator, applying this to a chart with historical data is the exact same thing as what a backest would do and a strategy is not needed.
Backtests are for strategies because strategies make orders. A regular backtest would be the same as simply adding the strategy to a chart and looking at the historical performance. The Strategy Analyzer is nice for strategies because you can optimize the parameters of the strategy to find the best performance of order making. This does not really apply to indicators.
With an indicator, simply apply this to a chart with historical data and you are essentially backtesting the indicator.

Comment