I am trying to modify an indicator. The original indicator works with primary Range Bars and secondary Minute Bars. The secondary Bars object is added optionally.
I added secondary Tick Bars. So now:
BarsArray[0] is Range Bars,
BarsArray[1] is Tick Bars,
optionally I can add BarsArray[2] - it is Minute Bars.
Now I have these errors:
When I run the script with all three Bars, the Minute Bars is never processed. I check CurrentBars array and CurrentBars[2] is always -1.
When I try to switch off Minute Bars or to run the script without Minute Bars, NinjaTrader goes to some undefined state - I don't see the chart and there are no messages in the output window.
What could be the reason? Is there any incompatibility between different bars types?
Thanks,
Valentin
Comment