VictorLyon: Why can't this just be the definition of a function, that I would only call in
an other expert advisor?
It is just the definition of a function. As such it is not an EA.
Put the code in an EA and call your function in an event handling function. Or make that file an include file
and include it in your EA.
![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
Hi, I have an error when I compile the follwing code;
error: event handling function not found
I would like to include this expert advisor into an other one, which is why I don't use the OnTick() function there. But what else am I supposed to use? Why can't this just be the definition of a function, that I would only call in an other expert advisor?
Thanks