PROTECTED SOURCE SCRIPT
Telah dikemas kini

Simplified ATR Trailing Stop (Long & Short, Custom TF + Stop)

42
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.
Nota Keluaran
**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.
Nota Keluaran
Fixed some bugs.
Nota Keluaran
Removed some of the advanced options. Making them private.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.