Grid positions SL is not working properly
-
Hi.
I have a problem with my EA putting on SL for trades. On grid mode when the price keeps moving in a direction the EA places new position every (X) pips. each position has a fix SL. the problem is that sometimes it does place the SL for the latest position and sometimes it places the SL only for the first position in a grid. that is quite strange. it's like 50 - 70 % of the times it is working ok but for around 30 % it does not and it undermines the reliability significantly. I share the the grid part of the project so it may clarify something that I am missing
https://fxdreema.com/shared/czkjS2x4e -
Short note first. Blocks 137, 5 and 12 are redundant. You can remove them. You should use a pink 'once per trade') block immediately above those 'buy/sell now' blocks.
-
@l-andorrà said in Grid positions SL is not working properly:
once per trade'
thanks, I'll try that to see how it goes.
-
@l-andorrà I've done the modifications you have recommended. in strategy tester in looks like it is working ok. would you please tell what is the reason to put the 'once per trade' before buy and sell blocks in the blocks. just for learning purposes I don't understand what that block does there. thanks
-
That block stops the loop created by the pink 'for each trade' block on top. Loops are executed every single tick and that means every tick the loop is recalculated. You do not want that to happen. You need just one only calculation per trade, not per tick.
-
@l-andorrà Got it. thank you so much for your explanation
