Is the scope of the variables specified in the Variables section of the code restricted to the specific instance of the chart?
Suppose I have an indicator, and in that indicator I have a private double variable A that I specify in the Variables section of the code and update through calculations on each bar. Now suppose I create a chart say 10 min CL chart and apply the indicator. So far so good. The variable A is defined and is updated. Suppose I now create a new chart, say a 10 min CL chart as before and apply the same indicator to it. Will the value of the variable A in the second chart be confined to the second chart? That is, will I have a different value for each instance of the variable A?
Please clarify. Thank you.
Comment