MT4 is not MT5, you have to debug your code to find where the problem is.
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hi community,
i have an expert with some gui objects, buttons, editfields, arranged below a rectangle.
When the rectangle is dragged, all the objects in it are moved accordingly.
I run this on MetaTrader 4 as well as on MetaTrader 5.
The code is pretty similar, except some details.
Now the problem: On MetaTrader 4, it runs smooth.
On MetaTrader 5 not. It sometime takes seconds or even minutes,
before the gui objects within the rectangle, are moved to new position.
In both cases i had more or less the same number of charts opened, forex and
the same number of my rectangles attached.
The one, MT4 is fine, the other, MT5, not.
The code where all clients are moved, when the rectangle is moved is here:
Any hint appreciated.