Need help

 

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.

 

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.