Continious Indicator Audio Alerts

 

Hi folks

I am using an indicator with an audio alarm on 10 different charts, when I start mt4 the alerts go off continiously for about 300 cycles picking all my old alerts which is quite a serious intolerable racket.

Is there a some code that I can add to the indy to tell it to sound the alert for only the last signal?

i have searched the forum to no avail.

Thanks in advance

Wilfred

Files:
 

Try

change

for(i=1; i<=limit; i++)

to

for(i=limit; i>= 0; i--)

and

if (SoundAlertOn && SoundAlert && TimeSeconds(TimeCurrent()) > intsec+1)

to

if ( i == 0 && SoundAlertOn && SoundAlert && TimeSeconds(TimeCurrent()) > intsec+1)