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
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