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
Then this:
https://www.mql5.com/ru/docs/series/indicatorparameters
And how does it help to write a universal GetMyHandle?
You are beginning to surprise me. Further discussion with the code. What is there now?
There is nothing, unfortunately.
Yes, why do you need two identical indicators with completely identical input parameters on a chart in the same subwindow?
Suppose you do (I don't know what for yet, though). But in this case it won't matter, which indicator got the handle... wouldn't it?
Added: I'll make the assumption that the handle will be the same. Because, as far as I know, MT has a resource saving mechanism that doesn't create copies of indicators, but only increases the reference count.
Yes, why would you want two identical indicators with completely identical input parameters on a chart in the same sub-window?
I need the handle of the second indicator, which differs from the first one in the values of the input parameters.
If the simplest option (changing the short name in a certain way) is not considered, then just go through all the indicators on the required chart and select the required one. All you need for that was above.
Is there any way to get a list of all indicators on a chart? I once tried to find such a possibility in the documentation, but it didn't work, poke me with the nose.
There are all the links to the documentation above. You can do both main window and subwindows. Go through the charts, ask for the number of windows, go through the windows. That's it.
The number of windows is clear, but the number of MAs with different parameters, how do you determine them?
ps Ouch!!! I think I've found it.