"Note: By default NinjaTrader limits the number of values stored for DateTimeSeries objects to 256. This drastically improves memory performance by not holding onto old values that are generally not needed."
Consider a situation where I have say 3000 periods loaded on a chart (e.g. 1-min bars) and I have a code that has 3 DataSeries x1, x2, x3 and does the following:
protected override void Initialize()
{
....
x1 = new DataSeries(this);
x2 = new DataSeries(this);
x3 = new DataSeries(this);
....
}
protected override void OnBarUpdate()
{
....
x1.Set(EMA(Close[0]-High[0], Period1)[0])
x2.Set(EMA(High[0]-Open[0], Period2)[0])
x3.Set( EMA( x1[0]*x2[0], Period3)[0])
....
}
In the code above, when the EMA is calculated for x3, does the EMA use only 256 bars from x1 and x2 to calculate the results for x3?
Comment