Mary A Thompson: Void Timer () does not work on indicator. OnInit- Eventkiller(500), i might be wrong but works perfectly on Expert Advisor. Please correct me , Thank you .
It's OnTimer(), not Timer().
void OnTimer(void) [ // ... };
Also it's "void" not "Void"! MQL is case sensitive.
![Documentation on MQL5: Event Handling / OnTimer Documentation on MQL5: Event Handling / OnTimer](https://c.mql5.com/36/55/documentation-on-mql5-event-handling.png)
Documentation on MQL5: Event Handling / OnTimer
- www.mql5.com
OnTimer - Event Handling - MQL5 Reference - Reference on algorithmic/automated trading language for MetaTrader 5
And it works just fine in (MT4) indicators.
Files:
countdown_timer.mq4
4 kb
common_utilities.mqh
24 kb
![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
Void Timer () does not work on indicator. OnInit- Eventkiller(500), i might be wrong but works perfectly on Expert Advisor.
Please correct me , Thank you .