OPEN-SOURCE SCRIPT
Tightening Trailing Stop Loss

A utility tool to independently simulate a Trailing Stop based on ATR and Recent Candle Structure. It's most helpful if you only want something to independently trail a Stop and nothing else. For example, if you decide where to enter via a discretionary system, but like trailing Stops via code.
It's used by changing the 'Start Date' to the date where you wish to enter. It'll then display a Stop and Trail it, until it intersects with a candle. The Indicator will hide itself when it intersects with a candle to avoid cluttering the chart. It only moves in the direction of risk, so that means that, when set, it'll never increase the risk of your trade, unlike simple ATR bands. However, it does require resetting manually for each trade.
By Default, it uses a 10 Period RMA ATR, which is set 0.5 ATR away from the Low/High of the recent candle structure. It'll tighten each candle by multiplying it's value with .95, meaning it always tightens a little. All of these can be changed in the settings to match your preferred method of Setting/Trailing Stops
It's used by changing the 'Start Date' to the date where you wish to enter. It'll then display a Stop and Trail it, until it intersects with a candle. The Indicator will hide itself when it intersects with a candle to avoid cluttering the chart. It only moves in the direction of risk, so that means that, when set, it'll never increase the risk of your trade, unlike simple ATR bands. However, it does require resetting manually for each trade.
By Default, it uses a 10 Period RMA ATR, which is set 0.5 ATR away from the Low/High of the recent candle structure. It'll tighten each candle by multiplying it's value with .95, meaning it always tightens a little. All of these can be changed in the settings to match your preferred method of Setting/Trailing Stops
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.