How to close all positions and pending orders?
-
Hi everyone! I would like to ask how to close all running positions and pending orders if the initial position was closed (hitting TP or hitting BE) I can't seem to find a way to make this work.
Your suggestion is greatly appreciated

-
on trade tb - purple trade closed block set to sl/tp - close block - delete pendings block
-
@jstap Thanks! Another thing that I forgot to mention is my initial position's stop loss is automatically adjusted to a few pips (in profit) away from its open price using the BE block. I, however kind of confused as the BE block identifies all the open position and apply my BE rule to all position even those that are intended to be closed once TP or SL (Break even) got tagged.
-
You can separate it with Group No.
-
@biztet I haven't touched that part of creating a group. How to create a group? Is it "create area" and assigning a group #?
-
@jstap By utilizing this, should I migrate my blocks inside "on Tick" to "on Trade" or the specific blocks inside "on Trade" would work seamlessly with my blocks created inside "on Tick"?
-
@tradingforward23 That definitely depends on your current structure. Can you please share the link to it.
-
Thank you to all who respond to my question. I have found a way to close the positions once my breakeven or take profit is hit

-
In response to my previous message, I was confused, I thought that I managed to effectively use the "close position" block to close all opened position after TP or BE is hit. I was wrong. Here's a link to my project: https://fxdreema.com/shared/pydIRQVRb
Kindly check the "on Tick" tab and "on Trade" tab and please let me know what can I do to effectively use the "close position" block.
Any suggestion is welcome

-
add a purple position closed block to the top of the tree on the on trade tab
-
@jstap Thanks man! I appreciate it. It worked!

-
