Can I use close trade and close partially in the same ea
-
Hi,
I am having a hard time getting this to cooperate. I am trying to include take partial profit at 100 pips on each original trade than let the rest run until it hit target or a close trade signal. Below is the ea I have

-
And what's your exact problem? Does it close your trades partially or not?
-
Yes, it closes partial, but it closes partial after partial. Instead of partial one time and letting the remainder position play out.
-
For that, you should add a "once per position/order" pink block

If that block is not added, each time that the condition "pips away from open-price" is true, it happens a trade "close (partially)".
-
Also, this "pips away from open-price" block has a parameter called "Open Price belongs to..." that changes the behavior of this block in this situation. Here is an example, and in this example I don't use this "once per..." block:
https://fxdreema.com/demo/mt4-loop-partial-close (unfortunately at the moment of writing the pink blocks in the example doesn't work, but I will probably fix this soon after posting this)