However, if I try to add an indicator which accepts a DataSeries object, NinjaTrader crashes with 'Stack overflow'.
For example, the following code causes the crash:
private DataSeries mySeries; protected override void Initialize() { mySeries = new DataSeries(this); Add(SUM(mySeries, 10)); CalculateOnBarClose = true; }
protected override void Initialize() { Add(SUM(10)); CalculateOnBarClose = true; }
Is it possible to Add() an indicator to the chart where its input is a custom DataSeries object?
Thanks,
Boaz
Comment