Close only one trade
-
How do I go about closing one trade. I am opening two and want to close one of them under certain circunsatances.
I have tried to use "close trade" and "close less profitable trade" but both of them get closed.
Thanks,
Dwight
-
What is specific for that one trade that you want to close?
-
(Found what was going on)..
I have conditions for the close... The EA closes the first trade... but the conditions are still true, so it closes the second trade too.
In this case, it would be the last one I opened.

I enter the trade with two entries, each at 1/2 of the amount that I would ideally use. Then, when one of the indicators has turned down (or up), I want to close one of them. If I must pick which one, then I would pick the most recent one. I actulally do not care which is closed.
Dwight
-
Here is how to close a single trade: https://fxdreema.com/shared/1Jqspfcib (I just sent this example to someone else, so I'm using it the same here)
The condition is whatever it needs to be. Maybe you can use "Once per bar" or some other way to limit the execution of these pink blocks.
-
Thank you... Very informative.