Setting the SL to break even once the price goes 1X the ATR in your favor
-
Hey, Im almost done building my first EA everything is working right except I cant seem to move my SL to break even once the price goes 1X the ATR my favor. I tried using the break even point (for each trade) block but I cant seem to make it work and then went thru some Forum posts and came up with this https://fxdreema.com/shared/L4imctyOc but it dosent seem to work either. Can someone help? Thanks.
-
You need to change this block's setting:

-
thanks for replying! I changed it and it still dosent seem to work
-
@digru Hi. your modify stop is incorrect. ATR cant gives you any price for change stop.
do you need to remove SL or just change it to a new price?
-
@xfire said in Setting the SL to break even once the price goes 1X the ATR in your favor:
TR cant gives
i need to move SL to break even
-
try this one but before this block set exactly "For each trade" block.
-

-
thanks for your help but it still dosent work if you have the time i could share the file with you so you can check it out
-
@digru it is a sample and I checked and working perfectly. i changed SL to 0 (open trade price) and remove TP .if you put 0 in SL or TP actually removed from open trade
i think you can try with "For each trade" block and should be working
-
@Xfire Im sorry but I didnt quite understood how I can apply the screenshot you sent me to my case given that I cant make a condition block with the ATR because its relative to price reaching the amount of pips the ATR represents once the position opened. So for example if when I open a buy position the ATR is =30 once the position goes 30pips up I want to modify my stop loss to break even. I also didnt understood what you wrote and in which blocks im suposed to change my SL to 0 and remove TP. Sorry Im a beginner if you could try to explain it again it would be appreciated.
-
You always can use the 'on Trade' tab to do that.
-
@l-andorrà yes thats what im using
-
@digru "Modify Stops" block changed the open position to SL 0, I don't know what is your strategy just I want to show you how you can change SL in an open position,
if you have problem with your strategy please share your project here -
I figured it out using completly different blocks thanks anyways guys!!!
-
@DiGru Can you share a link to what worked for you? I am trying to do the same thing. Thanks!
