Trailing Stop based on ATR
-
Hay guys I searched through forum looked at many different topics but in the end failed to make a working Trailing Stop Loss based on ATR if anyone could help would be fantastic as I'm completely stuck on this for hours now.
This is how mine looks like

This is how it should look like

Trailing stop should be after priced reached 2*ATR, and Stop loss should be moved to 1.5 ATR stop loss
I'm still learning and sorry I know this has been brought up few times but I failed to implement them. Any help would be much appreciated.
-
Try this:

-
Thank you so much you showed me the right direction. There we still few issues but I managed to get it all just right. Once I put candle ID from buy candle into variable and extracted it in trailing stop everything jumped into place.
Here is a pix works the same as NNFX for C1entry only boys, maybe will prevent future topics.

-
Impressive work. Thank you for sharing.
-
Can anyone explain how to get the ATR Candle ID? What do you type in the variables tab?
-
@nykz1 You can try an 'int' or 'double' type.
-
@l-andorrà No i understand that part, i don't understand how to get the initial ATR value.
-
@nykz1 Do you mean the value of ATR at the exact moment the order is open?
-
@l-andorrà Yes. On Day-1 i open a trade, the tailing stop is (1.5 * ATR), the problem is, as the trade progresses, the ATR changes, for instance, on Day-7 it becomes (1.5 * Day-7 ATR), i want it to remain (1.5 * Day-1 ATR) throughout the entire trade.
-
@nykz1 Ok. That is exactly what variable ATR_C1 is doing. That value is stored there and it is a number in pips. What you need to do now is use it in the trailing stop block. However, instead fo using the Custom(price fraction) option as per the image above you should select the 'fixed pips' option and then embed the ATR_C1 below it.
-
Maybe you can add once per trade block under each trade so that ATR is updated only once
