How to modify one order in a block if another one hit target?
-
If I have created one BUY order & one SELL order without any condition and If one of them has achieved the Take Profit, I need to reduce the take profit of the remaining one in the same block.
So question is How to Modify the TP of one trade when another trade hit its TP? -

I have done till here. But Confused which one I need to put as No.4. Any one here to help me for this?
-
@faiz43 "Check trade count == 1" and then "Once per trades" and then this "modify stops"
-
@roar Thanks very much for your quick response. I checked the with the above. But it is directly changing the TP&SL of my first position once I open the position.
What my requirement is I need to change based on my TP.
For Eg.
I open 1 BUY & 1 SELL Each having TP 60 & SL 120
My BUY hits TP of 120.
Now I need to modify the TP and SL of my SELL to 50 each from the ask/bid price.If I use "COUNT" option it will not consider my SL hit trades.
Can you please help on this
-
@faiz43 You can better control those mechanics from the On Trade tab, using a suitable activation:

-
@roar Can I keep blocks in both tabs? in "On Trade" and Tab an in "On Tick" Tab?
-
Yes, any EA can run blocks on all tabs simultaneously.
-
@l-andorrà I have tried this, But its not working. can you please look at below and find where I have mistaken? I gave BUY NOW SELL NOW blocks in "On Timer" Tab and remaining on "ON Trade" tab. Positions are taken as per "On Timer" Tab, but none of the blocks in "On Trade" tabs wroking. Please help

-
If you opened an order, it cannot be a pending orders any more. You need to substitute that 'For each pending' block for a 'For each order' block.