I am aware about "AddDataSeries(...)" but my question is another one:
Example:
let's say we have the indicator SMA and we wanna have all its calculation, drawing, plotting, ... done in a 1-second-series. The result should be --> independent what the chart time interval currently is, the indicator should calculate and draw always related to 1-second data series. If we change the chart time to 5min or 30min or 1hour the plot shouldn't change its values and plots.
(1)
Is there any simple way to achieve this without the need to use AddDataSeries(...) ?
(2)
If question 1 is answered with "no" then I would use AddDataSeries as one would do for multi-series use and in the following I need to go through the whole indicator code and modify existing variables from this to this:
high[0] --change-to---> highs[1][0]
low[0] --change-to---> lows[1][0]
close[0] --change-to---> closes[1][0]
time[0] --change-to---> times[1][0]
etc.
Simply said: I wanna modify an existing indicator to run all its code logic at a predefined secondary data series instead at the primary chart time chosen.
Looking forward to your comments and tips.
Thanks to everyone !
Patricia

Comment