Here's the code I came up with:
PHP Code:
//---- input parameters
extern double priceAlert;
<snip>
int start() {
double priceClose = Close[0];
if (priceClose >= priceAlert) {
SendMail("Price Alert", "Price Reached target price of : " + priceAlert);
}
return(0);
}
So my question will also be: Will the EA send mail only during forward testing and not on simulation/back testing
using MT4's testing?
And will it also recognize the price I set to "priceAlert"?
Again, I'm still new and hope you'd spare some of your time to answer my questions.
Best regards,
East