I need help with a partial close structure.
-
I want partial closes in draw down, once a trade is running against me.
The key is, i only want it to happen once the trade is for example 10 pips in profits.
So for the partial close to be valid, the trade should be 10pips in profit from the entry and only if it comes back running against me, i want a 50% partial close at -10 pips draw down against me from Open price.
So if the EA Opens a trade and it rus straight agains me, i dont want any partial close.
Only if the trade reached +10pips profit first and then from there goes against me, then i want a 50% partial close at -10 pips
. -
@tho401 For each trade->pips away use - for negative, use flags to switch on the -10 when trade has reached+10.
-
@jstap i think i got the partial close. I just dont get the flags, so it only closes partials once the +10 pips have been reached first. I would appreciate your help!
image url) -
@tho401 That is what I meant by the partial close, use a bool (true/false) flag, under the +pips away tree turn the flag to true, check above the -pips away and set back to false under.
-
@jstap I dont get it, im stuck with it for 3x weeks now. Could you Show me how its done? i would appreciate it. Im definitely doing something wrong, it doesn't even close partials at all for me with the flags.
-
@tho401 Put your latest project here.
-
@jstap https://fxdreema.com/shared/k99PfzHqe
My logic is, if price is away +650 points from Open then i set the flag to true, so if thats true then it can go to the next Block and close partials at -650 points.
I never made expirence with the true/false falgs, so i dont know if im doing it right or wrong, would appreacite your help.
-
@tho401 Try it like this:

-
@jstap Can you share it so i can look into the blocks, im just confused at this point, sorry XD
thx for your help! -
@tho401 I didn't set the blocks, tree 1 checks for +650 and sets flag to true, tree 2 checks if flag is true then at -650 closes partial and sets the flag back to false.
-
@jstap Like this? https://fxdreema.com/shared/Yz99llh1c
tryed it, but it doesnt close partials.
-
@tho401 Try this https://fxdreema.com/shared/UJhswOYSd I added a buy so you can test on backtest.
-
@jstap THX!
-
it works there is just a small problem, the ea closes partials till minimum lotsize in some cases, but that could be fixed with "once per trade" maybe. i just dont get why it doest happen all the time, just in some cases.
-
@tho401 Your right once per trade may fix but logically as soon as it closes partial the flag should turn false, check all flags are set to the right value.
