Close all positions
-
Hello Everyone,
Hope you all are well.I want to close all the trades and pending orders on a ceratin drawdown percent of balance.
And I have done this as below picture but it not making any difference

-
Does any expert help me please where I am doing wrong ?
-
try No Trade instead of If trade block
-
So I need to use 2 different blocks
if trade for closing trades on profit and
No trade for closing over loss percentage, right ? -
No change by the way, I tried this too now.
-
first use a comment block to see that your DD calculate currectly or not...and for a currect DD you need to close position at the beginning. then create a robot to calculate your DD and dont open another trade... that is why I said just use no trade!!
-
I dont think so it gonna work this way, I already calculated the profit percentage correctly which work fine and loss percentage formula a similar way. and if we place close position before DD calculation how do close position work ?
-
@jstap @l-andorrà can you please help me in this ?
-
I won't build it for you, but tell me what you are doing and I will help you.
-
@jstap , Thank you for coming in, How are you doing friend ? I believe you will have a solution to it.
I want to use both percentage modes for closing at profit and loss.
for example if global profit is 1% of balance then close all trades and same way when global loss is 1% of balance then close all trades.Profit tree is working fine but I didnt understand how to do it for loss tree.
I have done this thing but it didnt work

-
Please revert
-
am using an indicator to make make my bot but i want it to close all the open postions when a new signal comes in how do i do that