PROTECTED SOURCE SCRIPT
Double Bottom Strategy (Long Only, ATR Trailing Stop + Alerts)

This script implements a long-only breakout strategy based on the recognition of a Double Bottom price pattern, enhanced with a 50 EMA trend filter and a dynamic ATR-based trailing stop. It is suitable for traders looking to capture reversals in trending markets using a structured pattern-based entry system.
🧠 Key Features:
Double Bottom Detection: Identifies double bottom structures using pivot lows with configurable tolerance.
ATR-Based Trailing Stop: Manages exits using a trailing stop calculated from Average True Range (ATR), dynamically adjusting to market volatility.
EMA Filter (Optional): Filters trades to only go long when price is above the 50 EMA (trend confirmation).
Alerts: Real-time alerts on entry and exit, formatted in JSON for webhook compatibility.
Backtest Range Controls: Customize historical testing period with start and end dates.
✅ Recommended Markets:
Gold (XAUUSD)
S&P 500 (SPX, ES)
Nasdaq (NDX, NQ)
Stocks (Equities)
⚠️ Not recommended for Forex due to differing behavior and noise levels in currency markets.
🛠️ User Guidance:
Tune the pivot period, tolerance, and ATR settings for best performance on your chosen asset.
Backtest thoroughly over your selected date range to assess historical effectiveness.
Use small position sizes initially to test viability in live or simulated environments.
🧠 Key Features:
Double Bottom Detection: Identifies double bottom structures using pivot lows with configurable tolerance.
ATR-Based Trailing Stop: Manages exits using a trailing stop calculated from Average True Range (ATR), dynamically adjusting to market volatility.
EMA Filter (Optional): Filters trades to only go long when price is above the 50 EMA (trend confirmation).
Alerts: Real-time alerts on entry and exit, formatted in JSON for webhook compatibility.
Backtest Range Controls: Customize historical testing period with start and end dates.
✅ Recommended Markets:
Gold (XAUUSD)
S&P 500 (SPX, ES)
Nasdaq (NDX, NQ)
Stocks (Equities)
⚠️ Not recommended for Forex due to differing behavior and noise levels in currency markets.
🛠️ User Guidance:
Tune the pivot period, tolerance, and ATR settings for best performance on your chosen asset.
Backtest thoroughly over your selected date range to assess historical effectiveness.
Use small position sizes initially to test viability in live or simulated environments.
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。
受保護腳本
此腳本以閉源形式發佈。 不過,您可以自由且不受任何限制地使用它 — 在此處了解更多資訊。
免責聲明
這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。