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
- 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
- docs.mql4.com
WebRequest - Common Functions - MQL4 Reference
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