View Single Post
  #2 (permalink)  
Old 04-15-2006, 02:39 PM
eastmaels eastmaels is offline
Junior Member
 
Join Date: Feb 2006
Posts: 10
eastmaels is on a distinguished road
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

Last edited by eastmaels; 04-15-2006 at 02:43 PM.
Reply With Quote