HOW TO ADD SEND NOTIFICATION LİNE TO MY INDI

 

My indi gives alerts when a specified circumstances occur...

How can I add send notification line when it gives alerts ?

 
limit = Bars - countedBars;
   
   for (int ix1 = 1; ix1 <= limit; ix1++)
     {
      found = -1;
      if (                  pDBHLC_Show ) found = Find_DBHLC (ix1, deltaDBHLC);
      if ((found == -1) && (pDBLHC_Show)) found = Find_DBLHC (ix1, deltaDBLHC);
      if ((found == -1) && (pPINUP_Show)) found = Find_PINUp (ix1, deltaPINUP);
      if ((found == -1) && (pPINDN_Show)) found = Find_PINDn (ix1, deltaPINDN);
      if ((found == -1) && (pMSH_Show  )) found = Find_MSH   (ix1            );
      if ((found == -1) && (pMSL_Show  )) found = Find_MSL   (ix1            );
      if ((found == -1) && (pIBS4_Show )) found = Find_IBS4  (ix1, deltaIBS4 );
      if ((found == -1) && (pIB_Show   )) found = Find_IB    (ix1, deltaIB   );
      if ((found == -1) && (pBuOVB_Show)) found = Find_BuOVB (ix1, deltaBuOVB);
      if ((found == -1) && (pBeOVB_Show)) found = Find_BeOVB (ix1, deltaBeOVB);
      if ((found == -1) && (pTBH_Show  )) found = Find_TBH   (ix1, deltaTBH  );
      if ((found == -1) && (pTBL_Show  )) found = Find_TBL   (ix1, deltaTBL  );
      if  (found != -1)                   lblCount[found]++;
      if  (gFirstTime )                   continue;
      if ((found != -1) && (ix1 < 2    )) 
        Alert(Symbol()," (",Period(),") - ", alrtText[found]);
     }

   Set_Labels();
     
   gFirstTime = FALSE;

   gTimeFrame = Period();
   
   return(0);

  }
 
Niagara:

My indi gives alerts when a specified circumstances occur...

How can I add send notification line when it gives alerts ?

Here . . .

      if ((found != -1) && (ix1 < 2    )) 
         {   // <-- add this line 
         SendNotification(Symbol()+" ("+Period()+") - "+ alrtText[found]);   // <-- add this line   
         Alert(Symbol()," (",Period(),") - ", alrtText[found]);
         }  // <-- add this line 
     }
 
RaptorUK:

Here . . .

Raptor,

Thank you for your quick response... you are sp kind...

I've added your nick name as "Raptor" at the end of my indi :)

Reason: