indicator with notification

 
is it possible to make a single notification appear on my mql4 indicator set so that when you change an indicator, you only send me a note? the indicator I have programmed sends me a notification every second until the indicator changes. thank you so much
 
valfid: the indicator I have programmed sends me a notification every second

So fix it. Don't alert on a condition, alert on a change in condition.

 
yes but send notifications every second on the whole duration of the change then on a T.F. of 5 minutes for 5 minutes every second sends a notification there is a function to let me get a single notification?
 
valfid:

So what ?Fix it.

Post your code if you need coding help.

 
whroeder1:

So fix it. Don't alert on a condition, alert on a change in condition.

int prevtime=0;

int start()
{
if(Time[0] == prevtime)  return(0);
    prevtime=Time[0];
// only Alert for your chart TimeFrame
//SendNotification(Symbol()+" TF:"+IntegerToString(Period())+" "+"Haskaya BUY: ");
}
 
datetime timeBar=0;

int start()
{
   bool isNewBar = (Time[0]!=timeBar);
   timeBar = Time[0];

   // only Alert for your chart TimeFrame
   if(isNewBar) SendNotification(Symbol()+" TF:"+IntegerToString(Period())+" "+"Haskaya BUY: ");
}
Reason: