programing an alert

 

hi i wondered if you can put an alert on an indicator, i have modified a squeeze indicator with histogram and coloured buttons in centre line go green and red at specific reasons. when the buttons turn red in a sequence of 5 i would like to set an alarm bell. can this be done.


any help much apreciated. neal.