How to set Notifications function

 
How to set Notification in MQL4 to ring only one time? Now I receive notific 100 times per minute!
 
Kostadin Yankov: How to set Notification to ring only one time? Now I receive notific 100 times per minute!

Fix your EA to only send notifications according to your requirements.

 
Fernando Carreiro #:

Fix your EA to only send notifications according to your requirements.

Hi
The EA is mine , but send so much rings . I miss simething !
 
Kostadin Yankov #:
Hi
The EA is mine , but send so much rings . I miss simething !

As far as I know a notification (SendNotification) doesn't ring.

Are you talking about an Alert ? A Sound ?

 
Kostadin Yankov #:
Hi
The EA is mine , but send so much rings . I miss simething !

You have to use Time or Bar to stop repeat ringing

you can learn more from this example in mql5 and attempt to write in mql4:

#property copyright "Copyright 2022"
#property link      "https://www.mql5.com/"
#property version   "1.00"
#property indicator_chart_window
//+------------------------------------------------------------------+
//| Custom indicator initialization function                         |
//+------------------------------------------------------------------+
int OnInit()
  {
//--- indicator buffers mapping
   
//---
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Custom indicator iteration function                              |
//+------------------------------------------------------------------+
int OnCalculate(const int rates_total,
                const int prev_calculated,
                const datetime &time[],
                const double &open[],
                const double &high[],
                const double &low[],
                const double &close[],
                const long &tick_volume[],
                const long &volume[],
                const int &spread[])
  {
//---
   ArraySetAsSeries(time,true);
   //Print(time[0]);

   static datetime pastime = time[0];
   if(pastime!=time[0])
     {
      // Add your code for Send Notification which will trigger only once when a new bar occurs
      pastime=time[0];
     }
   
//--- return value of prev_calculated for next call
   return(rates_total);
  }
 
Arpit T #: You have to use Time or Bar to stop repeat ringing

Or Act on a change of signal.
          Too many orders - MQL4 programming forum #1 (2017)