I am trying to move some code from a strategy into UserDefinedMethods as I have found I now need it in additional strategies.
This code will be called from various timeframes that will not be known by the method in advance and those dataseries will normally be a secondary series within the calling strategy.
Is there a way to pass in only one data series instead of 4 (OHLC)? For example, if I passed in only the BarsInProgress value would the UserDefinedMethods code be able to use that to access the correct dataseries?
I am also working under the assumption that the UserDefinedMethod's variables have their own scope and persist between calls or is the scope somehow related to the scope of the calling strategy?
Thanks
Scott
Comment