Timer

 

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 .

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