Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
The above shown code works well for indicators, but what about EAs...
tried it in an EA and it didn't compile; in EA I do not have the function int onInit () but void onInit ()
Why are you trying to lock down an EA while it is very clear that you do not have any understanding about coding ?
I never understand this.
It makes me think that someone is trying to lock down and sell stolen products.
The code can be changed to suit your needs anywhere.
The above shown code works well for indicators, but what about EAs...
tried it in an EA and it didn't compile; in EA I do not have the function int onInit () but void onInit ()
There is no such void function. OnInit always returns an integer whether in an indicator or EA.
It makes me think that someone is trying to lock down and sell stolen products.
The code can be changed to suit your needs anywhere.
I did not steal anyting.
I did not steal anyting.
I did not say that you did.
I just don't understand why you want to lock down an EA if you don't even know how to code it.
Thanks you :) It works very well
Not true. Both are valid. (As I learned yesterday.)
OnInit - Event Handling - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
Event Handling Functions - MQL4 Reference