I would like to script an indicator that does calculations with two
data series inputs, such as divergence checking or correlation coefficient calculation. The standard procedure would be to add a second specified dataseries
within the indicator script. However, I would like to keep the indicator general
and would like to apply the indicator to the two dataseries which I want to specify
individually when I add it to a chart or a strategy.
How can this be accomplished?
Comment