Take your workaround a little farther, and have both indicators read /write a common settings file at runtime.
If you change the settings in one of the indicators, have it change the settings file.
If you change the settings in one of the indicators, have it change the settings file.

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
I mean:
- 1 cure in the main window (#property indicator_chart_window).
- and 1 curve in a separate window (#property indicator_separate_window).
For some case (when the 2 curves are linked*), it could be great to do this.
For example, a moving average (MA) in the main window and its derivative (dMA) in the separate window. So, of course, dMA must use the same parameters (period, mode, ...) as MA.
Here is the "tricky" way I use to link MA and dMA. I use a third file Parameters.mqh containing the common parameters.
Then:
- MA.mq4 includes Parameters.mqh
- dMA.mq4 includes Parameters.mqh
Then, in the chart, to change parameters values, I have to do twice:
- right-click the main window > MA properties > Inputs tab > change parameters values
- look the nice updated curve ...
- right-click the separate window > dMA properties > Inputs tab > set (of course) the same values (oh, ?, I forgot what values I put in the main window :((
Please, MT dev. team, could you add this great feature in a future MT release:
"Now you can draw curves in different windows using ONE indicator."
Any comment, any idea?
Thanks and regards.
* linked: 2 curves use the same (external) parametres values.