Error in adding push notification

 

Hi guys, trying to code this indicator to receive notifications but keep receiving this error :

'doAlert' - function not defined 

and

'doAlert' - function declarations are allowed on global, namespace or class scope.

Unsure why I am receiving it and unsure how to rectify it. Could use some help. Please see indicator attached below.



 
  1. Why did you post your MT4 question in the MT5 General section instead of the MQL4 section, (bottom of the Root page)?
              General rules and best pratices of the Forum. - General - MQL5 programming forum? (2017)
    Next time, post in the correct place. The moderators will likely move this thread there soon.

  2. In your posted code, you have no “doAlert” text (case dependent). That file compiles just fine. code
Reason: