How can I get the OnChartEvent() of a non current chart?
Thank you, but any clue on how to go about it? E.g. proxy example code.
How can I get the OnChartEvent() of a non current chart?
You should better explain what you are trying to achieve. Why do you need that ?
Thank you for your concern and readiness to contribute to the solution.
The task is for my EA to Print (ChartSymbol(ID)) when I move (manually) the vertical line named "vert_line" drawn on a non-current chart whose symbol is of course ChartSymbol(ID).
Thank you for your concern and readiness to contribute to the solution.
The task is for my EA to Print (ChartSymbol(ID)) when I move (manually) the vertical line named "vert_line" drawn on a non-current chart whose symbol is of course ChartSymbol(ID).
Well I guess your EA needs to monitor several charts ?
The solution suggested by Dominik is certainly the more efficient, but maybe a bit hard to implement depending of your coding level.
A simpler solution would be for your EA to check the other chart objects and detect a movement. Depends of your exact needs and skills.
Well I guess your EA needs to monitor several charts ?
The solution suggested by Dominik is certainly the more efficient, but maybe a bit hard to implement depending of your coding level.
A simpler solution would be for your EA to check the other chart objects and detect a movement. Depends of your exact needs and skills.
I was thinking of an alternative solution but I don't know how well the terminal will receive it in terms of not crashing and not freezing. My thought is as follows:
From OnTimer, browse through all the 30 open charts using their ID's and while loop.
Check for the availability and position of the vertical line named "vert_line" on each chart.
If the "vert_line" new position is different from its previous position, then it has been moved.
If it has been moved then take note of the ChartSymbol(ID)
Print (ChartSymbol(ID) and go to the next Chart.
If it has not been moved then go to the next Chart.
I have not tried this though.
You can't, but you can get the equivalent.
The Implementation of a Multi-currency Mode in MetaTrader 5 - MQL5 Articles (2011)
You can't, but you can get the equivalent.
The Implementation of a Multi-currency Mode in MetaTrader 5 - MQL5 Articles (2011)
Wow! This needs a whole lot of study. I think I need to take my time on it. Thanks man.

- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
How can I get the OnChartEvent() of a non current chart?