Topic: Disable Every Tick alert on MT4

Did you how stop the every second alert when a condition is trigged on the current bar ?

Here my code :

if(condition)
           {
            string msg1=StringFormat("%s (%s) [%s,%s] SHORT",TimeToString(TimeCurrent(),TIME_SECONDS),ShortName,InpAlertCaption,_Symbol);
            if(InpDisplayAlert) Alert(msg1);
            if(InpPushAlert) SendNotification(msg1);
            if(InpEmailAlerts) SendMail(ShortName,msg1);
            if(InpSoundAlert) PlaySound(InpSoundFile);
            TimeStamp=Time[1];
           }

Thanks

Share