I have a custom indicator thar keeps various lists of data dynamically so I don't want to create a new instance of the indicator each time I want to access data from it ... the lists it maintains need to stay in memory and be updated in background and not reset each time I access the data series provided from the indicator
so if I place the following code in the initialize function
MyCustomIndicator myCustomIndicator = MyCustomIndicator(parm1, parm2, parm3);
Will the indicator work away in background keeping all its internal data so when if I say
if (myCustomIndicator.myDSName[0] == 1)
the calc the indicator is doing will be based on the lists it is maintaining?
Or even better can I access data from the indicator I have added to the strategy window via the Add(myIndicator) call?
Thanks
Paul

Comment