Close partially at X pips not working well for MT5
-
Hello
I wish to close a trade partially every x pips in loss in mt5,
Example:BUY Lot = 1,
@ -10 pips, close 10% (0.1); lot = 0.9
@ -20 pips, close 10% (0.09; lot = 0.81
@ -30 pips, close 10% (0.081); lot = 0.31 etcusing the examples template in MT5 doesn't work as expected
-
@uchiha You need to add a pink 'once per position' block below that 'For each position' one.
-
Thanks a lot but if you test it you'd see that it does not work as expected.
See the code on the right for the expected behaviour (the problem being it does not work for multiple running trades
-
Still no update on this ? @fxdreema
-
@uchiha Sorry, I didn't see your reply. Why are you specifying 1 on 'every n trade' box? That means all trades will be considered into the loop. You can get exactly the same by not selecting anything. That 'for each position' block is supposed to do that.
-
Thanks for your efforts
changing that has no effect whatsoever, if you do have the time, try and implement it yourself so you see exactly what I am talking about.