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)
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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