PLEASE THIS FIX ALART BUG

 
I have this indicator  that triggers  alert at the opening of a new candle, instead  of when  there is a BUY/SELL signals . Can anybody help me to fix this bug, so that  the pop up notification  and alert  triggers  ONLY when the indicator  gives  its  signals for BUY/SELL. Thanks 
 
You have only three choices: Search for it, learn to code it, or pay someone. We're not going to code it FOR you. We are willing to HELP you when you post your attempt (using SRC) and the nature of your problem.
 

I haven't looked at the indicator, but

most indis give a signal and paint an arrow when the bar is closed and paints the arrow on the closed bar.

The indi only knows that the bar is closed when a new bar opens, so the alert will be given on the open of the new bar. 

Reason: