Alerts that last longer

 
hi i am newbie trying to understand ins and outs of this and any help will be appreciated!!
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

 

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;
}