Close trade using ticket number
-
Hi fxdreema
If i have several trades running, when conditions are met, i would like to isolate one trade using it's ticket number and close it.
Is this possible?
I can't see how to input the ticket number into close trades, or islolate just one trade in Close Trades to the one that I want to close without the whole lot closing.
Regards
Andy
-
From where do you get that ticket number?

-
Am using 'For Each Trade', filtering with 'Profitable 1st', then using 'Formula' to obtain the relevant ticket number and assigning a Variable to it, in this case Variable1.
Thanks.
-
"For Each Trade" already loaded that trade and it can be closed immediately, just use "close" (one of the pink blocks)
-
I am using multiple trades from multiple pairs, if I wanted to close the 3rd best profitable trade I can filter that but when I use ' close trade'.. All trades get closed. Can the ticket number alone be imputed into 'close trade'?
-
Ahh, just realised which box you are referring to, yep, that should work. Will try when I get home,
Cheers.