Are the annotations the same on MQL5?You can insert the following line somewhere at the top of the NotifyHit() function:
Then change this line at the bottom of the function from:MQL4:if (TimeCurrent()< LastNotification + WaitTimeNotify * 60) return;
to:MQL4:LastNotificationTime = Time[0];
MQL4:LastNotificationTime = TimeCurrent();
Don't forget to add WaitTimeNotify as an input parameter near the top of the indicator's code:
MQL4:input int WaitTimeNotify = 5; // Wait time between notifications (Minutes)