Dumbination: Is there a way to make the chart zoom in and out automatically so that all objects on it are visible?
Yes! It is all in the MQL documentation (see the various Chart Properties options for scaling or sizing)!
Just have an indicator or the EA scale or size the chart appropriately based on the price data and graphic objects placed on it.
I do that in my own EAs so that I can always have the chart scaled to show the Stop-Loss and Take-Profit prices even when they would normally appear off-chart.

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
Greetings!
Is there a way to make the chart zoom in and out automatically so that all objects on it are visible?