I have programmed a couple of indicator in the following way:
I separate indicator calculations in a custom class, and use this class in the indicator that deals with the visual Display of the calculated values from the class.
In order to do Multi-time Frames, I am seeing that internal data series of the custom classes are always shifted by bar Closes of the Primary series time Frame, since it does not know that it is to be tied to another series.
Will a back-reference to BarsArray[i] (could be set in OnStartup() ) do the trick or do I have to do something else?
I know how to back-reference the Price values of the secondary bar series, no Problem, just the internal streams of the class Need to be shifted only on bar closing Events of the secondary bar series, not the Primary bar series.
Any ideas?
Thanks,
Martin
Comment