I wrote an EA but since i am very new in programming i want my EA to work only on those trading account numbers which i include in my source code so that if any of my clients distribute my EA to any other person it should not work on that account .
What lines should i add in my EA to protect this. For example i want my EA to work only on my trading acc# 1234567 . What should i write in my EA?
Plz help
- How to protect my EA with multiple account number
- Want to give EX4 file of my EA to my friend.
- Any questions from newcomers on MQL4 and MQL5, help and discussion on algorithms and codes
e.g. in OnInit():
if ( AccountNumber() != 9870987098 ) return( INIT_FAILED )
But in the editor's reference about more information about the account...
sammiawan999:
I wrote an EA but since i am very new in programming i want my EA to work only on those trading account numbers which i include in my source code so that if any of my clients distribute my EA to any other person it should not work on that account .
What mistake i made in attached picture?
I wrote an EA but since i am very new in programming i want my EA to work only on those trading account numbers which i include in my source code so that if any of my clients distribute my EA to any other person it should not work on that account .
What lines should i add in my EA to protect this. For example i want my EA to work only on my trading acc# 1234567 . What should i write in my EA?
Plz help
gooly:
e.g. in OnInit():
But in the editor's reference about more information about the account...
Successfully done. Thanks alot brother:)
sammiawan999:
Can you please elaborate where ishould add this line? In start function?
What mistake i made in attached picture?
Can you please elaborate where ishould add this line? In start function?
What mistake i made in attached picture?
- What part ofgooly: e.g. in OnInit():was unclear?
- Don't attach a image, insert the image
![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