How to tell my bot to close all opened position once it has gotten to a certain profit percentage
-
i want to add a feature that allows my robot close all positions once the total profit of the running trades is up to a certain equity percentage.. Please help me if you can help me achive this
below is shared link of my already created robot that i want to add the feature to:
shared link: https://fxdreema.com/shared/OTHyImXyb
-
Above no position - check profit (period of time) set to < value - in a separate tree check profit (period of time) set to > value - close trades, if you want to close all if value reached - separate tree at the start of the day, take balance or equity / 100 * by you % value
-
@jstap Thanks for replying but i really didn't understand it..
Please, can you do an example for me and send me the shared link so i could study it
-
@jstap I want it to be recurring... the idea is to create a robot that buys and sells when a bullish and bearish candle closes respectively and then it closes all trades if profit is made maybe a certain percentage of the equity or value.
after it closes, it could still continue trading that way for all day
even if its possible, i would also like to make it in a way that it keeps track of trades opened in each pair/asset and then closes all trade in that asset/pair when there is a certain profit made on the trades from that pair/asset while still holding other trades from other pair/asset
-
@jstap Here is the shared link: https://fxdreema.com/shared/HfDl80KE
Help me design it as it should be and drop me the shared link. I really will appreciate that..
Thanks alot
-
@Humble_Fx You can do something like this, for example to close all trades when equity is 3% in profit right now:

-
What Landorra has shown does work, I don't use it because there is no start time, what you have is what I mean, what is not working?
-
@l-andorrà Thanks a lot,
Do i just leave it as a separate tree or i need to connect it to the main bot tree?
-
@jstap Okay.
So what i have now is good?
-
If you want to stop EA from taking new trades if day profit is reached
-
@l-andorrà I did it but i still need some help.
I want my bot to open a new position once a candle closes be it bear or bull
it should open new buy position anytime a candle closes bullish and open a sell trades anytime a candle closes bearish.
can i achieve it?
-
@jstap I want my bot to open a new position once a candle closes be it bear or bull
it should open new buy position anytime a candle closes bullish and open a sell trades anytime a candle closes bearish.
can i achieve it?
-
@Humble_Fx It needs to be a separate tree AFTER all the previous ones have been executed in 'on tick' tab.