PROTECTED SOURCE SCRIPT
已更新 Simplified ATR Trailing Stop (Long & Short, Custom TF + Stop)

This indicator plots a dynamic ATR-based trailing stop that adapts to price volatility and keeps you protected whether you’re trading long or short. It’s lightweight, customisable, and designed for traders who want clean risk management without unnecessary complexity.
✨ Key Features:
📅 Custom Entry Date & Price – choose the exact day you want the trailing stop to begin, or let it auto-start from the close.
🔀 Long or Short Mode – flip between bullish and bearish trade setups.
⏱️ Custom Timeframe Support – calculate ATR stops on any higher/lower timeframe (from 10m to 1M) for maximum flexibility.
📏 ATR-Based Logic – trailing stop adjusts dynamically using a multiplier of ATR, keeping stops adaptive to volatility.
🎯 Custom First-Day Stop – set a different ATR factor for day one to handle entries more cautiously.
✅ Stop Trigger Mode – choose between:
Stop on Wick Breach (default intraday aggressiveness)
Stop on Candle Close (extra confirmation, fewer false stops).
📊 How to Use:
Set your entry date and price (or leave price = 0 to use that day’s close).
Select trade direction (Long or Short).
Pick your ATR period, multiplier, and timeframe.
Watch the trailing stop line update automatically until it’s breached.
This tool is great for swing traders, intraday strategists, and anyone who wants a simple yet powerful trailing stop that adapts to price volatility.
✨ Key Features:
📅 Custom Entry Date & Price – choose the exact day you want the trailing stop to begin, or let it auto-start from the close.
🔀 Long or Short Mode – flip between bullish and bearish trade setups.
⏱️ Custom Timeframe Support – calculate ATR stops on any higher/lower timeframe (from 10m to 1M) for maximum flexibility.
📏 ATR-Based Logic – trailing stop adjusts dynamically using a multiplier of ATR, keeping stops adaptive to volatility.
🎯 Custom First-Day Stop – set a different ATR factor for day one to handle entries more cautiously.
✅ Stop Trigger Mode – choose between:
Stop on Wick Breach (default intraday aggressiveness)
Stop on Candle Close (extra confirmation, fewer false stops).
📊 How to Use:
Set your entry date and price (or leave price = 0 to use that day’s close).
Select trade direction (Long or Short).
Pick your ATR period, multiplier, and timeframe.
Watch the trailing stop line update automatically until it’s breached.
This tool is great for swing traders, intraday strategists, and anyone who wants a simple yet powerful trailing stop that adapts to price volatility.
版本注释
**Advanced ATR Trailing Stop (Long/Short + Pyramid + Breakeven + Stats Table)**This indicator provides a comprehensive **ATR-based trailing stop system** for both **long and short trades**, with advanced features designed to manage risk and lock in profits:
**Key Features:**
* **Custom Entry Date & Price:** Set the exact date and price for your trade entry.
* **Flexible ATR Trailing Stops:** Automatically calculates trailing stops based on ATR, with adjustable multipliers.
* **First-Day Custom Multiplier:** Give your trade extra room on the first day using a custom ATR multiplier.
* **Pyramiding / Transition Points:** Define up to two pyramid points where trailing stops tighten automatically as price moves in your favor.
* Example: Move 4 ATRs in profit → stop = high - 3 ATRs.
* Move 6 ATRs in profit → stop = high - 2.5 ATRs.
* **Breakeven Stop:** Automatically move your stop to breakeven when price reaches a defined ATR distance in your favor.
* **Stop Trigger Options:** Choose whether the stop triggers on intrabar touch or only on candle close beyond the stop.
* **Custom Timeframe Support:** Calculate ATR and stops on any custom timeframe.
* **Visual Cues:**
* Colored trailing stops: red/green/orange/yellow depending on pyramid stage.
* Single-bar breakeven marker.
* **Stats Table:** See current trade stats at a glance:
* Entry price, trailing stop, ATR distance to stop, breakeven, pyramid status, trade direction, and stop status.
* Table position and text size are fully customizable.
**Use Cases:**
* Perfect for swing traders and intraday traders who want a **dynamic trailing stop system**.
* Helps **lock in profits and reduce losses** automatically as price moves in your favor.
* Provides **clear visual guidance** on stop levels, pyramid transitions, and breakeven points.
**Customization Options:**
* Adjust ATR length and multipliers
* Set pyramid thresholds and multipliers
* Enable or disable breakeven stops
* Select table position and text size
**Disclaimer:** This indicator is for educational purposes and trade management assistance. Always use proper risk management.
版本注释
Fixed some bugs.版本注释
Removed some of the advanced options. Making them private.受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用它,没有任何限制 — 在此处了解更多信息。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。
受保护脚本
此脚本以闭源形式发布。 但是,您可以自由使用它,没有任何限制 — 在此处了解更多信息。
免责声明
这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。