This sends a daily email when the hour is = to 2
You need to set up your email address in the Tools / Options / Email tab.
You can also test from there....
int start()
{
static int flag;
if (flag ==0)
if ( Hour()==2)
{
SendMail(" Daily Alert "," PROFIT:$" +DoubleToStr(AccountProfit(),2)
+ " BALANCE:$" +DoubleToStr(AccountBalance(),2)
+ " BID:" +DoubleToStr(Bid,4)
+ " OPEN:" +DoubleToStr(Open[0], 4)
+ " LOW:" +DoubleToStr(Low[0],4)
+ " HIGH:" +DoubleToStr(High[0],4)
);
flag = 1 ;
Print(" Daily Email Alert Sent ");
}
if ( Hour()==3 )
{flag = 0;}
return(0);
}
//+-----------------
You need to set up your email address in the Tools / Options / Email tab.
You can also test from there....
int start()
{
static int flag;
if (flag ==0)
if ( Hour()==2)
{
SendMail(" Daily Alert "," PROFIT:$" +DoubleToStr(AccountProfit(),2)
+ " BALANCE:$" +DoubleToStr(AccountBalance(),2)
+ " BID:" +DoubleToStr(Bid,4)
+ " OPEN:" +DoubleToStr(Open[0], 4)
+ " LOW:" +DoubleToStr(Low[0],4)
+ " HIGH:" +DoubleToStr(High[0],4)
);
flag = 1 ;
Print(" Daily Email Alert Sent ");
}
if ( Hour()==3 )
{flag = 0;}
return(0);
}
//+-----------------
This sends a daily email when the hour is = to 2
You need to set up your email address in the Tools / Options / Email tab.
You can also test from there....
int start()
{
static int flag;
if (flag ==0)
if ( Hour()==2)
{
SendMail(" Daily Alert "," PROFIT:$" +DoubleToStr(AccountProfit(),2)
+ " BALANCE:$" +DoubleToStr(AccountBalance(),2)
+ " BID:" +DoubleToStr(Bid,4)
+ " OPEN:" +DoubleToStr(Open[0], 4)
+ " LOW:" +DoubleToStr(Low[0],4)
+ " HIGH:" +DoubleToStr(High[0],4)
);
flag = 1 ;
Print(" Daily Email Alert Sent ");
}
if ( Hour()==3 )
{flag = 0;}
return(0);
}
//+-----------------
You need to set up your email address in the Tools / Options / Email tab.
You can also test from there....
int start()
{
static int flag;
if (flag ==0)
if ( Hour()==2)
{
SendMail(" Daily Alert "," PROFIT:$" +DoubleToStr(AccountProfit(),2)
+ " BALANCE:$" +DoubleToStr(AccountBalance(),2)
+ " BID:" +DoubleToStr(Bid,4)
+ " OPEN:" +DoubleToStr(Open[0], 4)
+ " LOW:" +DoubleToStr(Low[0],4)
+ " HIGH:" +DoubleToStr(High[0],4)
);
flag = 1 ;
Print(" Daily Email Alert Sent ");
}
if ( Hour()==3 )
{flag = 0;}
return(0);
}
//+-----------------
mpfx
Thank you so much. That worked beautifully!
Leigh.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
Many thanks.