Well...
int start(){ while(!IsStopped()){ static int orderCount; if(orderCount != OrdersTotal()){ SendMail("Trade Activity", "Trade Activity"); orderCount = OrdersTotal(); } Sleep(16); } return (0); }
sparky29:
Looking for ea that will alert me when ever an order is placed on MT4, Looking for an email alert as soon as a trade is exicuted on my MT4
that you for your help
that you for your help
phy:
Thank you alot, is there any way to find out what the order was, buy sell and what price was? it will help me a lot.
Well...
int start(){ while(!IsStopped()){ static int orderCount; if(orderCount != OrdersTotal()){ SendMail("Trade Activity", "Trade Activity"); orderCount = OrdersTotal(); } Sleep(16); } return (0); }
I believe you might need to add something like this... Symbol() will tell you what pair it is...
int start(){
while(!IsStopped()){
static int orderCount;
if(orderCount != OrdersTotal()){
SendMail("Enter " + Symbol(), "Trade Activity");
orderCount = OrdersTotal();
}
Sleep(16);
}
return (0);
}
But the problem is that the code only count the total number of open trades your in and if its more then, then it sends an e-mail so if you have it loaded on say 5 pairs it will send 5 e-mails when you enter one trade...
I hope this is some kind of help.
By the way did you ever find an EA that worked?
poiterwilson:
By the way did you ever find an EA that worked?
By the way did you ever find an EA that worked?
I asked the same question in another topic.
trivates:
I asked the same question in another topic.
Don't double post and don't hijack threads
I asked the same question in another topic.
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
that you for your help