Are the EMAIL ALERTS WORKING from the Experts?
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.
Many thanks.