Can I use a local variable in my Indicator and assign it to the data-series once, or do I need to call the exporting indicator explicitly every time I need to access the exported data-series?
Will this work:
private DataSeries localDS; ... Initialize(){ init = false; ... } OnBarUpdate() if(!init){ localDS = ExportingIndicator(BarsArray[0],....).ExportedDataSeries; init = true; } // Do Calc on localDS
Do I need to lookup the Indicator explicitly in every call to OnBarUpdate
private DataSeries localDS; ... OnBarUpdate(){ localDS = ExportingIndicator(BarsArray[0],....).ExportedDataSeries; //Do Calc on localDS }
In the CallingIndicator which is calling the ExportingIndicator, the CalculateOnBarClose = false;
If I do not explicitly make the call to the indicator in every barUpdate (case #1), will the Update function on the ExportingIndicator still be called?
Is there something I can do explicitly in the CallingIndicator to ensure that the ExportingIndicator Updates without modifying the export property of the ExportingIndicator to call Update?
I am collecting Tick based stats in the ExportingIndicator, so I do not want the ExportingIndicator to update twice for the same tick.
Comment