I need another pair of eyes please -- cannot SendMail....

 

Guys,

I have an indicator that I want to alert me by text message when a signal occurs. I have an extern bool Send_Texts = true; in the header and the following that never emails me. My Options Email TEST works perfectly, so I wonder if the SendMail ever executes:

int start()

{

for(i = 0; i <3000 ; i++) //iBars(Symbol(),TimeFrame)

{

ii = iBarShift(Symbol(), Period(), iTime(Symbol(),TimeFrame,i), true);

/* lots of code here */

ObjectCreate(ArrowName, OBJ_ARROW, 0, Time[ii], PriceLocation);
ObjectSet(ArrowName, OBJPROP_ARROWCODE, SYMBOL_ARROWDOWN);
ObjectSet(ArrowName, OBJPROP_COLOR, OrangeRed);
if (Send_Texts && i == 0) SendMail("Do a trade");

}

}

I get the arrows on my chart and I would think I'd get an arrow created in bar 0 but maybe I'm wrong for some reason.

Thanks for the help!!!

 

Please use this to post code . . . it makes it easier to read.

 
SendMail takes two variables . . not one, I would have thought that would have produced an error at compile time . .