|
Help with Email Alert
Hi
I know this thread goes back to 2006 but I have spent 2 hours trying to track down an updated Alert.
All I want is every Hour the account balance, Equity,Margin , Free margin emailed to me.
I have managed to use the attached that works but stops after 64 emails with "Mail: not enough space for 'DLMod2'.
bool mail;
int start(){
if (Hour()>=00 && !mail){
SendMail("DLMod2", "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));
mail=true;
}
if(Hour()<24)mail=false;
}
I understand I can fix the email limit by restarting MT4 but was hoping someone would have another suggestion.
Thanks
|