Well... this alerts for 5 ticks
static int AlertCount = 0; if (setalert == 1 && shift == 0 || AlertCount != 0;) { Alert(Symbol(), " ", period, " ", pattern); setalert = 0; AlertCount++; if(AlertCount == 5) AlertCount == 0; }

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
my current indicator has the following code for generating alerts, but this alert lasts for only one beep, is there any way i can make it to beep for 30 or 60 sec or atleast bit longer than 1 beep
if (setalert == 1 && shift == 0) {
Alert(Symbol(), " ", period, " ", pattern);
setalert = 0;
}
thanks