You need an e-mail notice everytime when a new bar appears on chosen TF?
E-mail should include values of open, close, high and low of the last bar formed?
You need an e-mail notice everytime when a new bar appears on chosen TF?
E-mail should include values of open, close, high and low of the last bar formed?
Hi Hasayama,
Yes, the above is correct.
Andrew
Hi Hasayama,
Yes, the above is correct.
Andrew
Try this indicator.
It sends an e-mail every time a new bar appears on TF it is attached to.
You can modify it the way you want, it has just a basic functionality and the main idea.
Try this indicator.
It sends an e-mail every time a new bar appears on TF it is attached to.
You can modify it the way you want, it has just a basic functionality and the main idea.
Thanks hasayama,
It seems to work exactly the way I wanted to.
Andrew
Thanks hasayama,
It seems to work exactly the way I wanted to.
Andrew
Hi,
I have been using the Ipostman indicator.
I would like to add in to the email string another indicator that I am using MFI.
Can you please advise me how I would add this into the Ipostman indicator?
Thanks in advance,
Andrew
Thanks for the info, I just added the code below but no values for the indicator (MFI) showed in the email.
Have I done it correctly?
I have the MFI.EX4 in the metatrader directory
---------------------------------------------------------------------------------------------------------
#property indicator_chart_window
datetime last_bar_time = 0;
double val = 0;
int init () { return(0); }
int deinit() { return(0); }
int start()
{
double val=iCustom(NULL, 0, "MFI",14,1,0); <<<<<------------ added code
//--get current bar time
datetime cur_bar_time = iTime( Symbol(), Period(), 0 );
//--check whether it is a brand new bar
if ( cur_bar_time <= last_bar_time ) { return(0); } //--nope, it is an old friend
//--yes, it is a new one
last_bar_time = cur_bar_time;
string subject = "";
string text = "";
subject = Symbol() + ": new bar on period " + strPeriod( Period() ) + ".";
text = "Last completed bar information\n\n" +
"Bar open time: " + TimeToStr( iTime( Symbol(), Period(), 1 ) ) + ".\n" +
"Low: " + DoubleToStr( iLow ( Symbol(), Period(), 1 ), Digits ) + ";\n" +
"High: " + DoubleToStr( iHigh ( Symbol(), Period(), 1 ), Digits ) + ";\n" +
"Open: " + DoubleToStr( iOpen ( Symbol(), Period(), 1 ), Digits ) + ";\n" +
"Close: " + DoubleToStr( iClose( Symbol(), Period(), 1 ), Digits ) + ";\n" +
"MFI: " + DoubleToStr(val, 1) + ";\n" ; <<<<<------------ added code
SendMail( subject, text );
return(0);
}
string strPeriod( int timeframe )
{
switch ( timeframe )
{
case PERIOD_MN1: return("Monthly");
case PERIOD_W1: return("Weekly");
case PERIOD_D1: return("Daily");
case PERIOD_H4: return("H4");
case PERIOD_H1: return("H1");
case PERIOD_M30: return("M30");
case PERIOD_M15: return("M15");
case PERIOD_M5: return("M5");
case PERIOD_M1: return("M1");
default: return("M"+timeframe);
}
}
____________________________________________________________________________
Thanks for your help,
Andrew
Thanks for the info, I just added the code below but no values for the indicator (MFI) showed in the email.
Have I done it correctly?
I have the MFI.EX4 in the metatrader directory
---------------------------------------------------------------------------------------------------------
#property indicator_chart_window
datetime last_bar_time = 0;
double val = 0; <<<<<------------ added code
int init () { return(0); }
int deinit() { return(0); }
int start()
{
double val=iCustom(NULL, 0, "MFI",14,1,0); <<<<<------------ added code
//--get current bar time
datetime cur_bar_time = iTime( Symbol(), Period(), 0 );
//--check whether it is a brand new bar
if ( cur_bar_time <= last_bar_time ) { return(0); } //--nope, it is an old friend
//--yes, it is a new one
last_bar_time = cur_bar_time;
string subject = "";
string text = "";
subject = Symbol() + ": new bar on period " + strPeriod( Period() ) + ".";
text = "Last completed bar information\n\n" +
"Bar open time: " + TimeToStr( iTime( Symbol(), Period(), 1 ) ) + ".\n" +
"Low: " + DoubleToStr( iLow ( Symbol(), Period(), 1 ), Digits ) + ";\n" +
"High: " + DoubleToStr( iHigh ( Symbol(), Period(), 1 ), Digits ) + ";\n" +
"Open: " + DoubleToStr( iOpen ( Symbol(), Period(), 1 ), Digits ) + ";\n" +
"Close: " + DoubleToStr( iClose( Symbol(), Period(), 1 ), Digits ) + ";\n" +
"MFI: " + DoubleToStr(val, 1) + ";\n" ; <<<<<------------ added code
SendMail( subject, text );
return(0);
}
string strPeriod( int timeframe )
{
switch ( timeframe )
{
case PERIOD_MN1: return("Monthly");
case PERIOD_W1: return("Weekly");
case PERIOD_D1: return("Daily");
case PERIOD_H4: return("H4");
case PERIOD_H1: return("H1");
case PERIOD_M30: return("M30");
case PERIOD_M15: return("M15");
case PERIOD_M5: return("M5");
case PERIOD_M1: return("M1");
default: return("M"+timeframe);
}
}
____________________________________________________________________________
Thanks for your help,
Andrew
Also added above
Thanks,
Andrew
Since i don't have the indicator "MFI.MQ4" i can't answer you
Since i don't have the indicator "MFI.MQ4" i can't answer you
THanks for reply,
But would you know how I would use iCustome to add in a standard indicator and send it via email by iPostman?
Thanks,
Andrew
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Hi,
Does anyone know where I can get an EA that would send an email alert of the open, close, high and low of the last bar. and also be able to work at different time frames.
Thanks,
Andrew