Volatility Trail
Jun 9, 2026

The Volatility Trail indicator provides a Hull-anchored trend trailing system that utilizes ATR-scaled ratcheting mechanics to define trend states and communicate momentum conviction through adaptive visual layers.
Usage
The Usage section describes how the script can be used to identify trend direction and momentum quality. The indicator functions by locking in price progress using a one-directional ratchet that only flips when price closes through the trail level in the opposing direction.
- Trend Identification: A bullish state is active when the trail is below price (Green), and a bearish state is active when the trail is above price (Red). Upward triangles (▲) and downward triangles (▼) mark the initial trend flip.
- Conviction Scoring: Users can toggle between different candle coloring modes to visualize momentum. "Distance" mode brightens candles as price extends further from the trail, while "Acceleration" mode highlights candles when the trail itself is advancing rapidly.
- Retest Opportunities: Small diamonds (◆) appear when price approaches the trail boundary without crossing it. These markers identify potential continuation points within an established trend after a cooling-off period from the initial signal.
- Visual Analysis: The gradient cloud radiating from the trail toward price serves as a spatial reference; a deep cloud suggests strong trend separation, while a thinning cloud indicates potential compression or a pending retest.
Details
The indicator is built upon a low-lag Hull Moving Average (HMA) baseline. This baseline is used to derive upper and lower volatility bands based on the Average True Range (ATR).
The core logic employs a "ratchet" mechanism: during an uptrend, the trail can only move up (the maximum of the current lower band or the previous trail), and during a downtrend, it can only move down. This prevents the trailing stop from retreating against the trade. For visualization, the trail is smoothed via an EMA, though signal calculations remain anchored to the raw data to preserve timing accuracy. The candle scoring engine uses a power transformation to filter out low-conviction noise, ensuring that only significant price extensions or trail accelerations saturate the candle colors.
Settings
Trail Engine
- Hull Length: The lookback period for the Hull Moving Average. Lower values increase responsiveness to price changes.
- ATR Length: The lookback period for calculating volatility.
- ATR Factor: The multiplier applied to the ATR to set the trail distance. Increasing this provides more "room" for price to breathe before a trend flip occurs.
- Source: The price input used for calculations (Close, HL2, HLC3, or OHLC4).
- Trail Smoothing: Adjusts the EMA smoothing applied to the visual trail line.
Cloud & Candles
- Show Gradient Cloud: Toggles the multi-layered visual field between the trail and price.
- Color Candles: Enables or disables the momentum-based candle intensity coloring.
- Candle Color Mode: Selects the logic for coloring (Distance, Acceleration, or Both).
- Acceleration Lookback: Determines the window used to measure how fast the trail is advancing.
- Bullish/Bearish: Customizable color inputs for the trend states.
Signals
- Show Buy/Sell: Toggles the display of trend flip triangles.
- Retest Diamonds: Enables markers for price interaction within the trail's retest zone.
- Retest Cooldown: The minimum number of bars required between consecutive retest signals.
- Signal Buffer: The number of bars that must pass after a trend flip before retest diamonds are allowed to appear.
FAQ
How do I interpret the candle brightness? Brightness represents conviction. Depending on your settings, brighter candles indicate either price is significantly extended from the trail or the trend is accelerating. Dimmer candles suggest a lack of momentum or proximity to the trailing stop.
What is the benefit of the Hull Moving Average in this tool? The Hull Moving Average is designed to reduce lag while maintaining smoothness, allowing the trailing ratchet to stay closer to price action than standard simple or exponential moving averages.
How can I access Volatility Trail? You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
Free indicator
Get free access to this indicator on the platforms below.
Unlock the entire LuxAlgo Library
Every indicator, every strategy, full charts, and complete access to Quant — our AI agent.