The indicator on it's own does run fine historically despite being created for OnPriceChange. So I don't understand why it's not working in conjunction with the strategy.
I've done some testing and it appears these lines of code are causing problems, this code is within the indicator not the strategy:
((CurrentBars[0] - 1) != BarNum_Signal)
Code like this, shouldn't this run the same whether run OnBarClose or OnPriceChange?

Comment