Open Metatrader and look for these key words
"ordersend(..... "
That is where the order is being place. So underneath that statement, place a
Print("You are out of Money", AccountFreeMargin());
[/code]
Make sure you include the semi-colon, too. So this would print "you are out of money" and then it would print the variable AccountFreeMargin().
I believe you can add as many variables as you want by just adding a comma each time but I'm just speculating.
In your case, I guess you would put
[code]
Print("Order placed by system");
So each time it would print Order placed by system or whatever your system name is. I think it should work but I'm still unsure myself even.
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
Hello Everyone,
I am running several EAs on my MT4 and I cannot tell by looking at the Open Positions or the Statement, Which EAs were responsible for which trades.
Can some one help me by writing a code to show the EA's signature on each trade on the statement?
Thanks guys.