You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
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!!!