how to close manually opened trade by EA ??
-
Hi
i just want to know how to close manually opened trade by EA after reaching the profit pips
thank you
-
@basharshatat Magic number 0 is manually opened, in many blocks you can select manually opened:

-
Or, if the EA will only be used to work with manual trades, instead of setting this in every block, just set the magic number to 0 globally from here:

This is actually that strange MagicStart input of the EA. -
@jstap thank you alot but am just confused about what should i use to close the trade after reaching the profit .... is it a condition with loops or trade statistics or what exactly i need to use to give order to close the trade.... i plan for somthing very simple but unfortunately i cant reach it
-
@basharshatat If the magic number is set to 0 then all trades opened either by you on the terminal or by the ea will be closed when conditions are met, if closing trades when a profit amount is reached use the close profitable trades block.
-
@fxdreema thank you a lot but i just want to know what should i use to give order to close the trade when it reaches the profit pips
-
Please can someone give me a guide on how to create an EA that I can use to close trades that I manually open?
-
Two blocks. A 'pass' block on top and a 'close trades' block below. Then use Magic number 0 every time you use it and voila!