Push Notifiction

 

hello I need to create Push Notification to phone .  do you know that code for that?


#property copyright "Copyright 2021, Martin Turek"

#property link      "http://www.forexrobot.eu"

#property version   "1.00"

#property strict

#property indicator_chart_window



extern int svice=5;//Pocet svici

extern bool ShowAlert=true;//Ukazat alert

extern bool SendEmail=true;//Odeslat email



datetime lasttime;

//+------------------------------------------------------------------+

//| Custom indicator initialization function                         |

//+------------------------------------------------------------------+

int OnInit()

  {

//--- indicator buffers mapping

   Comment(" \n TURE ALERT "+IntegerToString(svice));

//---

   return(INIT_SUCCEEDED);

  }



void OnDeinit(const int reason)

  { 

   Comment("");

  }

    

//+------------------------------------------------------------------+

//| 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[])

  {

//---

   if (lasttime==Time[0]) return(rates_total);

   lasttime=Time[0];

   ENUM_TIMEFRAMES tf=(ENUM_TIMEFRAMES)Period();

   string tfx=StringSubstr(EnumToString(tf),7,3);

   int nn,up=0,dn=0;

   

   for (nn=1;nn<=svice;nn++)

    {

     if (Close[nn]>Open[nn]) up++;

     if (Close[nn]<Open[nn]) dn++;

    }



   if (up==svice && Close[svice+1]<Open[svice+1])

    {

     if (ShowAlert) Alert(Symbol()+"  "+tfx+"  "+IntegerToString(svice)+"x BULL svice!");

     if (SendEmail) SendMail("TureAlert MT4",Symbol()+"  "+tfx+"  "+IntegerToString(svice)+"x BULL svice!");

     Print(Symbol()+"  "+tfx+"  "+IntegerToString(svice)+"x BULL svice!");

    }

  

   if (dn==svice && Close[svice+1]>Open[svice+1])

    {

     if (ShowAlert) Alert(Symbol()+"  "+tfx+"  "+IntegerToString(svice)+"x BEAR svice!");

     if (SendEmail) SendMail("TureAlert MT4",Symbol()+"  "+tfx+"  "+IntegerToString(svice)+"x BEAR svice!");

     Print(Symbol()+"  "+tfx+"  "+IntegerToString(svice)+"x BEAR svice!");

    }

//--- return value of prev_calculated for next call

   return(rates_total);

  }

//+------------------------------------------------------------------+