Close all open trade with the first TP
-
Hi, I would like to close all the open trades when the first open order TP.
Example: let’s assume I have 3 open sales trades, I would like to close all of them when the FIRST open trade reach the TP.
Any suggestions?
Thank you
-
It will depend. I asume all open trades will have different TP, right? That means the shortest TP will activate the general closing. But will they have different entry prices? Other than that I can't see why are you opening 3 trades at the same time with 3 different TP.
-
All the open orders have the same TP, when the first order open reach the TP I want to close all of them.
-
Please don't get me wrong, but I can't see the logic behid that right now. Do you mean?
Step 1. You manually open trade A at price 1.0000 and TP at 1.1000.
Step 2. You manually open trade B at price 1.0025 and TP at 1.1000.
Step 3. You manually open trade C at price 0.9975 and TP at 1.1000.Is this correct? All of them will reach their TP simultaneously because it's the same price for all of them! Is this what you want?
-
@eliecerjesus why not simply give all the orders the same TP, if they are all in the same direction as the first trade?
If for some reason you do not want to do that then I suggest using blocks under the Loop for Trades and Orders heading. For example you could use the "For each closed trade" block set to only look at the most recently closed trade and then the "check how it was closed" block set to by TP and use that to trigger a block to close all open trades. However, I can't see why you don't simply set all the orders to have the same TP.