Minimum SL pips
-
Hello,
Is it possible to make the Stop Loss to be at least 10 pips?
My EA is tunned in a way that to find the stop loss it must scan the last 6 candles and then add +3pips to the lowest/highest price (image below). But in some cases the SL gets very tight (only 3, 4 or 5 pips). What I need is to tell the EA that, when the SL is lower than 10pips, it must adjust to be 10pips minimum.
Thank you for any help

-
@renatojjs You need to create a separate block structure like this:

-
@l-andorrà thank you!
Do you know if there's a way to open the trade right away with 10pip SL rather than open the trade and only then change the SL value?
-
@renatojjs Sure. You can always do this:

-
@l-andorrà thank you!
Now I'm with another problem. I got two blocks for the "For Each Trade": One that changes the SL to a minimum of 9pips and another one telling that when the price reaches 1R it move the SL to breakeven plus 1.5pips
The problem now is when I run it of mt4 its it's making a loop between this 2 conditions: When price reaches 1R it move the SL to breakeven but then the other block spots that and make the SL 9pips again.
Is there a way to change the SL to 9pip one time only to not be in this loop?
Thank you for all the help


-
@renatojjs You should create two separate block trees, one for each pourpose. Then you can switch off the second one (the right column in your example) by default and switch it on only when the left onw has been executed.