Bluephantom

Trailing Stop Loss Multiple of ATR

This is a simple trailing stop loss line for long and short positions.

It is calculated as a multiple of the ATR instead of a percentage.

You are able to change the multiple and the ATR length.

It can be used as a guide to where you should consider putting in your stop loss on a trade and to where you should move your stop loss to as the days go by.

This indicator is experimental. Use at your own risk.
Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in a publication is governed by House Rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Comments

Bro this is not getting added there is some error can you please fix it up
Reply
This will not add to my chart because of integer error in line 4. if I change the 1.4 to a whole number, then it will add (i did at local code level). Not sure why this will not allow for 1.5 anymore
Reply
Script not working? :(
Reply
this isnt working for some reason..
Reply
is there something wrong with the script?
Reply
@Bluephantom
how to get 5 deicmals point for forex ? currently only got 2 decimals points
Reply
THANK YOU!!!! THANK YOU!!! I'm going to profit from this!! $$$ :)
Reply
burgercrisis mightytrader
@mightytrader, did you?
+2 Reply