PriceTypeSupported = true;
to resolve the error.
G.
-------------------------------------------------------------------------------------
The offending line is in the indicator that includes MyIndicator:
MyIndicator manyEma = MyIndicator();
and in MyIndcator I basically have:
protected override void Initialize() {
Add(new Plot(Color.Green, "EMA"));
Plots[0].Pen.Width = 2;
Plots[0].Pen.DashStyle = DashStyle.Dash;
PriceTypeSupported = true;
}
[Browsable(false)]
[XmlIgnore()]
public DataSeries EMAflat { get { return Values[0]; }
Obviously the NinjaTrader generated code for the cache needs to be re-generate for the error to disappear.
Comment