Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
I wanted to write an expert which sends an email signal when the body of the last candle is more than 50 pips. How can I do it?
Is this a correct code?
static int prevtime = 0;
int start() {
if (Time[0] == prevtime)
{
return(0);
}
if ((High[1] - Low[1]) > (50.0 * Point)&&(Close[0]<Open[0]))\
{
SendMail("Signal", "U got a signal");
prevtime = Time[0];
}
return(0);
}
I added it but it doesnt send any email(((( HHHeeelp Pleasee!!!