Adaptive Chandelier Exit+ [MAB]Adaptive Chandelier Exit+ is a self-optimizing ATR-based trailing stop that dynamically adjusts to market conditions.
Instead of relying on a fixed ATR multiplier like the traditional Chandelier Exit, this indicator continuously evaluates multiple multiplier values and automatically selects the one that has been performing best on recent price action — delivering a trailing stop that adapts to volatility, trend strength, and structure in real time.
🔶 HOW IT WORKS
The standard Chandelier Exit uses a fixed ATR multiplier to determine trailing stops, which can be too tight in volatile trends or too loose in consolidating markets. Adaptive Chandelier Exit+ solves this by testing a range of ATR multipliers simultaneously.
Each multiplier generates its own trailing stop and trend state. These are continuously scored using an exponential performance model that evaluates how well each configuration aligns with directional price movement.
On every bar:
The highest-performing multiplier is selected
That multiplier is smoothed using an EMA to prevent sudden shifts
The final trailing stop is calculated using this smoothed optimal multiplier
This creates a stop level that is not static, but continuously optimized based on recent market behavior.
🔶 USAGE
🔹 Stop & Trend State
Teal trailing stop — Bullish trend active. Price is above the stop, and the indicator is tracking upward movement.
Red trailing stop — Bearish trend active. Price is below the stop, and the indicator is tracking downward movement.
The stop dynamically adjusts based on both volatility and trend efficiency, making it suitable for trailing positions or defining market bias.
🔹 Trade Signals
Teal triangle (▲) below bar — Bullish signal. Trend flips from bearish to bullish as price closes above the adaptive stop.
Red triangle (▼) above bar — Bearish signal. Trend flips from bullish to bearish as price closes below the adaptive stop.
Because the multiplier is selected based on recent performance and smoothed before application, signals reflect a stop level that has been validated against current market conditions — not a fixed parameter.
🔶 SETTINGS
🔹 Core Settings
ATR Length — Lookback period used for ATR calculation and highest high / lowest low reference. Controls how reactive the stop is to price movement.
🔹 Multiplier Range
Min ATR Multiplier — The smallest multiplier included in the test range. Produces tighter stops.
Max ATR Multiplier — The largest multiplier included in the test range. Produces wider stops.
Multiplier Step — Increment between tested multipliers. Smaller steps improve precision but increase computation.
🔹 Smoothing
Multiplier Smooth Length — EMA length applied to the selected best multiplier before calculating the final stop. Prevents abrupt jumps when the optimal multiplier changes between bars. Higher values result in smoother, slower adjustments.
🔶 NOTES
Suitable for all markets and timeframes.
Can be used as a trailing stop, trend filter, or dynamic support/resistance level.
Works especially well in trending environments where volatility shifts over time.
Adaptive logic helps reduce premature stop-outs compared to fixed ATR systems.
Past performance of any selected multiplier does not guarantee future results — always apply proper risk management.
Индикатор Pine Script®















