phy :
Some functions are disable in test mode. This may be one.
Some functions are disable in test mode. This may be one.
Yes, this is described in article Testing Features and Limits in MetaTrader 4:
Some functions are processed/passed without output
These are Sleep(), Alert(), SendMail(), PlaySound(), MessageBox(), WindowFind(), WindowHandle(), WindowIsVisible()
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
I have placed a SendMail in my expert advisor code to alert me that a trade has been taken. I set up the email in the Tools/Option/Emil tab. I did a test and it works great going to my cell phone. Then I ran a strategy test on the expert advisor to give it a try. The EA took four trades during the test but I received no emails. Following is my code. Please help.
SendMail("Buy order ", Symbol() + " at " + Ask + " Stop=" + StopLoss + " TP " + TakeProfit);
OrderSend(Symbol(),OP_BUY,Lots,Ask,Slippage,StopLoss,TakeProfit,Order_Comment,Magic,0,Order_Arrow_Color);
Thanks,
Glen