I am making my own indicator in NinjaTrader 8. The indicator draw some dots on the chart, and it is drawing correctly so far.
I added the indicator to a strategy I am testing, and when I run the strategy I notice that the OnBarUpdate of the indicator occurs after the OnBarUpdate of the strategy. Let's say I load historic data between 01/01/2021 to 01/01/2023, what I see is that the strategy would receive OnBarUpdate from 01/01/2021 to 01/01/2023 first, once the strategy finishes processing the data, then the indicator would receive OnBarUpdate from 01/01/2021 to 01/01/2023.
As you can imagine, I can't use the calculated values from the indicator in my strategy as the indicator hasn't process any data yet.
Is there something obvious I am missing?

Comment