Object in indicator causing trouble
Problem solved. I added an input like this in indicator_2:
input long chart_id = 0;
I pass ChartOpen returned long value to the indicator_2 and all the objects are appended to that chart then...
Problem solved. I added an input like this in indicator_2:
input long chart_id = 0;
I pass ChartOpen returned long value to the indicator_2 and all the objects are appended to that chart then...
You agree to website policy and terms of use
Suppose I am running indicator_1 in EURUSD chart. The indicator_1 code opens a GBPUSD chart and adds indicator_2 to that chart using ChartIndicatorAdd. The objects in indicator_2 are appeared in EURUSD chart and not GBPUSD. Is it normal behavior? Can I avoid this?