Thanks for your notes.
The Calculate mode is noted in the OnStateChange State.SetDefaults section of the indicator script.
You would also need to review the OnBarUpdate() logic in the script to see if it requires Calculate.OnPriceChange or Calculate.OnEachTick processing. For example, if the script uses IsFirstTickOfBar in OnBarUpdate() for calculations, then the script would need to use OnPriceChange or OnEachTick.
If the indicator is not an assembly (dll) then you could open a New > NinjaScript Editor window, open the Indicators folder, and double-click on the indicator file to view it's code.
Or, you could contact the developer directly to confirm if the script must use Calculate.OnPriceChange or Calculate.OnEachTick processing.
Adding debugging prints to your strategy could be done to confirm how your logic is behaving when running realtime compared to a backtest.
Below is a link to a forum post that demonstrates how to use prints to understand behavior.
https://ninjatrader.com/support/foru...121#post791121

Comment