I know there is a way to programmatically login to mt4 account using an EA, but what about adding a trading server (by trading server, I mean the server address, the third input field of the mt4 login popup window.)
if there is no way to add new server address then maybe refreshing the current server addresses? (sometimes the servers are non responsive), when I run the EA it works just fine most of the times, it perfectly logs in the account, but sometimes it gives errors like "common error" "no connection" "invalid account"
The Ea itself is perfect whatever the issue is its not at the EA end.
- Questions from Beginners MQL5 MT5 MetaTrader 5
- Setting server URL with port instead of server name
- VPS icon is gray, doesn't work!
In future please post in the correct section
I will move this topic to the MQL4 and Metatrader 4 section.
Most Demo accounts expire in 30 Day's or when you didn't log into them for x period of time then you get the invalid account and have to make a new one.
Marco vd Heijden:
Most Demo accounts expire in 30 Day's or when you didn't log into them for x period of time then you get the invalid account and have to make a new one.
well i dont think thats the issue here , because i made the demo account very recently and when i login to that account manually then everything works , but its just the auto login that mess up sometimes, not always just some times
![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