I have some specific questions and didn't find the answers in the documentation and also not in the forum.
I would be really thankful if somebody could give me some advice.
My goal is to develop a multi timeframe strategy with several indicators which provide data for each timeframe so I can use these informations for entry decissions.
My Indicator
I delevoped a complex market trend indicator which scans for trends and saves seperatly informations to up and down trends in two sorted dictionaries. So for every bar I have a lot of information about the current up and down trend. The indicator works well when used on a chart.
My Strategy
I want to trade one instrument and use my indicator on different timeframes. I want to trade on a low minute timeframe intraday. My exit logic is fast and needs tick level.
Settings
- Primary Series: 1 Tick
- several Secondary Series (1 Min, 5 Min, 10 Min, ...)
- Initializing the Indicators each with a BarsArray overload
- Calculate.OnEachTick
1.
I experienced, that I don*t have update the indicators manually with
if (BarsInProgress == Index10Min)
{
MarketTrendIndicator.Update();
}
because it seems, that NinjaTrader is automatically updating the indicators when initialized it with an overload with BarsArray?
When I update manually, then I get weird data in the logs, looks like the indicator is updated multiple times on one bar object.
2.
When I let the indicator run automatically and then place some actions depending on timeframe it seems that the events are not synchronized.
if (BarsInProgress == Index10Min)
{
// for example log MarketTrendData or look for signals
}
The object is always null. But when I look into the logs I see, that all the BarsInProgress ruled actions are done before the indicators runs. Looks like a sequence, first OnBarUpdate until finished and then the indicators until finished or maybe async?
What is the bestpractice for such a usecase? My actions are based on the information from the indicator, so I need more control over the update of the indicator.
Thanks for your help!

Comment