View Single Post
  #1 (permalink)  
Old 03-30-2006, 07:47 PM
techinvest techinvest is offline
Member
 
Join Date: Dec 2005
Posts: 58
techinvest is on a distinguished road
Help Generating an Email Alert

Currently this is what I'm trying in my EA to update me via email about the health of my account:

if (Hour()==23 && Minute()==00)
SendMail("DLMod1", "Account Balance is-"+DoubleToStr(AccountBalance(),2)+"_Account Equity is-"+DoubleToStr(AccountEquity(),2)+
"_Account Profit is-"+DoubleToStr(AccountProfit(),2)+"_Account Margin is-"+DoubleToStr(AccountMargin(),2)+
"_Account Free Margin is-"+DoubleToStr(AccountFreeMargin(),2));


The problem is that if I add in a seconds value, if it doesn't get a tick that second I get no email, but in this configuration I get an email for every tick sometimes almost 100.

Can someone help me write this correctly so that I get only one email a day?

Thanks for your help!
Reply With Quote