The "Creating Series<T> Objects" section of the official "Multi-Time Frame & Instruments" NT8 help doc ( https://ninjatrader.com/support/help...gSeriesObjects ) shows two different ways to sync a Series<T> on a secondary data series so that the number of slots in the Series<T> will be the same as the secondary data series, but it doesn't say which method is better or when you would use one over the other.
The first way shown is to sync on BarsArray[1] directly:
myEmptyIndexedSeries = new Series<double>(BarsArray[1]);
secondarySeries = new Series<double>(SMA(BarsArray[1], 50));
On one hand, the first method is more direct and has one less moving part. One might say "Why use a dummy indicator on BarsArray[1] instead of using BarsArray[1] directly?"
On the other hand:
- Intellisense for the first method says it is "[Deprecated]", so maybe the dummy indicator way is the best approach?
- Also, the example that of syncing that I've seen NinjaTrader technical support link to the most is https://ninjatrader.com/support/help...series_obj.htm , which uses the dummy indicator method.
I also would like to suggest that the NT8 help doc in my first link above be updated to say which method is better or when you would use one over the other.
Thanks in advance!
EquityTrader
Comment