I'm wondering if I'm calling Update() in too many places.
The guide at: https://ninjatrader.com/support/help...us/?update.htm
Covers the requirement for Update() when accessing internal simple variables.
I'm currently also calling it when accessing internal Series<> object and plots.
e.g.
private Series<double> _lowSeries; [NinjaScriptProperty] [Browsable(false)] [XmlIgnore] public ISeries<double> LowSeries { get { Update(); return _lowSeries; } } [NinjaScriptProperty] [Browsable(false)] [XmlIgnore] public ISeries<double> PlotSeries { get { Update(); return Values[0]; } }
_myIndicator.LowSeries[0];
_myIndicator.PlotSeries[0];
Do I need to call Update() if I'm accessing the properties in this way?
Comment