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 are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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?