Please Heeelp!!!

 

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!!!

 
I need it to send only one signal when the candle is done...
 
Bodiu:
I need it to send only one signal when the candle is done...


Try this thread

https://www.mql5.com/en/forum/136829/page2