Hello,
I need to find a way for my EA to check for valid account numbers so I prevent my clients to run it on multiple accounts. I store the account numbers in a database (mysql) online. How can the EA access that database??
- Send trades to a MySQL database
- restrict access to ex4
- Discussion of article "How to Post a Product in the Market"
better to use sqlite which has MQL5 builtin support
![Documentation on MQL5: Working with databases Documentation on MQL5: Working with databases](https://c.mql5.com/36/52/documentation-on-mql5-working-with.png)
Documentation on MQL5: Working with databases
- www.mql5.com
Working with databases - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Create an api in server which accepts account number and return status of it. You may need help of web developer for this.
Then you can call this web api from your EA to check whether the account is allowed to use the EA.
Check below link in mql4 documentation for web request
![WebRequest - Common Functions - MQL4 Reference WebRequest - Common Functions - MQL4 Reference](https://c.mql5.com/36/52/webrequest-common-functions-mql4.png)
WebRequest - Common Functions - MQL4 Reference
- docs.mql4.com
WebRequest - Common Functions - MQL4 Reference
![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