When I use the indicator in the Initialize method of the strategy - that works fine and I see all of the drawings.
But then when I want to retrieve the data series in the OnBarUpdate() - I can not figure out how to retrieve the data from the indicator added at the beginning.
If I simply call my indicator again in OnBarUpdate() like this:
double myvalue = MyIndicator(a,b,c,d,e,f,g)[0]
Then it seems to me that this is wasting memory because I am in essence creating another instance of the Indicator in memory - and it is having to process the 256 bars backwards.
Is there a best practice on how to limit the # of times an indicator is created?
TODDL
Comment