Hi all,
I'm developing a trading system, but don't know how to separate MT4 account and MT5 account. Any suggestion? Thanks!
what??
Hi all,
I'm developing a trading system, but don't know how to separate MT4 account and MT5 account. Any suggestion? Thanks!
Do you mean MQL4 code and MQL5 code?
Here are articles about cross plattform EAs: https://www.mql5.com/en/users/iceron/publications
Look at the code and learn form that!
![Enrico Lambino Enrico Lambino](https://c.mql5.com/36/16/enrico-lambino.jpg)
- www.mql5.com
what??
Do you mean MQL4 code and MQL5 code?
Here are articles about cross plattform EAs: https://www.mql5.com/en/users/iceron/publications
Look at the code and learn form that!
I mean how to know account which client login in my system is belong to MT4 or MT5, so I can provide to them suitable platform instead client must send to me version of their account.
Example: Account MT4 cannot deploy an EA mql5.
Hi all,
I'm developing a trading system, but don't know how to separate MT4 account and MT5 account. Any suggestion? Thanks!
Hi
Maybe this can help you in the right direction.
Use this script AccountInfoString(ACCOUNT_SERVER)
https://www.mql5.com/en/docs/account/accountinfostring
You can use the name of the broker or server to check if your code is running on a MT4 or MT5 terminal.
Since there will be a difference in servername between a MT4 server or MT5 server.
![Documentation on MQL5: Account Information / AccountInfoString Documentation on MQL5: Account Information / AccountInfoString](https://c.mql5.com/36/17/documentation-on-mql5-account-information.png)
- www.mql5.com
![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi all,
I'm developing a trading system, but don't know how to separate MT4 account and MT5 account. Any suggestion? Thanks!