How is your account doing? This function sends related account information by Email every 30 minutes to you.

Dear Ixbone Customers, if you have any questions, please feel free to contact us!

//+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
//| Acount information by email every 30 minutes                                                                                                                                     |
//+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+

#property copyright "Copyright © 2004- IXBONE/Michael Orth"
#property link "ixbone.com"
#property strict

extern string Accountinfo0="=1) Account Status by Mail every 30 Min=";
extern string Accountinfo1="=2) Account Margin Info if values reached=";
extern string Accountinfo2="=MT4 Mail settings must be enabled=";
extern bool AccountInfoEmailON=true;
extern string Accountinfo3="=Which CurrencyChart is used, example EURUSD=";
extern string Accountinfo4="=Namend currency prevents sending on all used pairs!!=";
extern string AccountChart="EURUSD";

 

double curfloat,curperc;

 

   if(Seconds()<=2){//update every minute
   curfloat = AccountBalance()-AccountEquity();
   curperc = MathAbs(curfloat / AccountBalance()*100);
     }

 

   if(Minute()==00 || Minute()==30){
     if(AccountInfoEmailON){
       if(Symbol()==AccountChart+"fx" || Symbol()==AccountChart+"m" || Symbol()==AccountChart+"#" || Symbol()==AccountChart)
          { AccountInfoMail(1); }
        }
     }

 

   void AccountInfoMail(int AccountInfo){
         if(AccountInfo==1){  
         if(time!=Time[0]){
         if(AccountInfoEmailON==true)SendMail("AccBal:"+DoubleToStr(AccountBalance(),0)+" Pro:"+DoubleToStr(AccountProfit(),0)+" Equ:"+DoubleToStr(AccountEquity(),0)+

         " FMar:"+DoubleToStr(AccountFreeMargin(),0)+" Bas%:"+DoubleToStr(curperc,0),"");
         time=Time[0];
         }
      }
   }