OPEN-SOURCE SCRIPT
ATR Trailing Stop Pro

Title:
ATR Trailing Stop Pro — Long & Short | Close/Wick Filter | Alerts | Risk %
Description:
A fully-featured ATR-based trailing stop anchored to a specific entry date and price — built for traders who want to manage an open position with a clean, rules-based stop rather than a signal generator.
Unlike generic ATR stop indicators that run on every bar from the beginning of the chart, this one starts exactly where your trade did.
Features
🔴 Long & Short — trails upward for longs, downward for shorts
📅 Entry date & price — set your exact entry point; leave price at 0 to use the day's close automatically
📊 ATR-based trailing — stop only ever moves in your favour, never against you
🕯️ Close vs wick stop-out — choose whether a close below the stop triggers it, or any wick (reduces false exits on volatile assets like BTC/crypto)
🏷️ Chart labels — marks your entry price and stop-out point directly on the chart
📋 Info table — live overlay showing entry price, current stop level, risk % from entry, and trade direction
🔔 Built-in alert — set it once and get notified when your stop is hit without watching the chart
How to use
Add the indicator to a daily chart
Open settings and enter your entry year, month, day
Enter your entry price or leave at 0 to use that day's close
Select Long or Short
Adjust the ATR multiplier to suit your risk tolerance (higher = wider stop, less noise)
Toggle Close mode on if you want to avoid getting stopped out by intraday wicks
Set an alert on the indicator for hands-off monitoring
Works on any asset — stocks, crypto, forex, commodities. Designed and tested on Bitcoin daily. For best results use on the 1D timeframe.
ATR Trailing Stop Pro — Long & Short | Close/Wick Filter | Alerts | Risk %
Description:
A fully-featured ATR-based trailing stop anchored to a specific entry date and price — built for traders who want to manage an open position with a clean, rules-based stop rather than a signal generator.
Unlike generic ATR stop indicators that run on every bar from the beginning of the chart, this one starts exactly where your trade did.
Features
🔴 Long & Short — trails upward for longs, downward for shorts
📅 Entry date & price — set your exact entry point; leave price at 0 to use the day's close automatically
📊 ATR-based trailing — stop only ever moves in your favour, never against you
🕯️ Close vs wick stop-out — choose whether a close below the stop triggers it, or any wick (reduces false exits on volatile assets like BTC/crypto)
🏷️ Chart labels — marks your entry price and stop-out point directly on the chart
📋 Info table — live overlay showing entry price, current stop level, risk % from entry, and trade direction
🔔 Built-in alert — set it once and get notified when your stop is hit without watching the chart
How to use
Add the indicator to a daily chart
Open settings and enter your entry year, month, day
Enter your entry price or leave at 0 to use that day's close
Select Long or Short
Adjust the ATR multiplier to suit your risk tolerance (higher = wider stop, less noise)
Toggle Close mode on if you want to avoid getting stopped out by intraday wicks
Set an alert on the indicator for hands-off monitoring
Works on any asset — stocks, crypto, forex, commodities. Designed and tested on Bitcoin daily. For best results use on the 1D timeframe.
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.