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.
Trading & investing are risky and many will lose money in connection with trading and investing activities. All content on this site is not intended to, and should not be, construed as financial advice. Decisions to buy, sell, hold or trade in securities, commodities and other investments involve risk and are best made based on the advice of qualified financial professionals. Past performance does not guarantee future results.
Hypothetical or Simulated performance results have certain limitations. Unlike an actual performance record, simulated results do not represent actual trading. Also, since the trades have not been executed, the results may have under-or-over compensated for the impact, if any, of certain market factors, including, but not limited to, lack of liquidity. Simulated trading programs in general are designed with the benefit of hindsight, and are based on historical information. No representation is being made that any account will or is likely to achieve profit or losses similar to those shown.
Testimonials appearing on this website may not be representative of other clients or customers and is not a guarantee of future performance or success.
As a provider of technical analysis tools and strategies, we do not have access to the personal trading accounts or brokerage statements of our customers. As a result, we have no reason to believe our customers perform better or worse than traders as a whole based on any content, tool, or platform feature we provide.
Charts used on this site are by TradingView in which the majority of our technical indicators are built on. TradingView® is a registered trademark of TradingView, Inc. www.TradingView.com TradingView® has no affiliation with the owner, developer, or provider of the Services described herein.
Market data is provided by CBOE, CME Group, BarChart, Massive, CoinAPI. Select U.S. equities data is provided through Massive. CBOE BZX real-time U.S. equities data is licensed from CBOE and provided through BarChart. Real-time futures data is licensed from CME Group and provided through BarChart. Select cryptocurrency data, including major coins, is provided through CoinAPI. All data is provided “as is” and should be verified independently for trading purposes.
This does not represent our full Disclaimer. Please read our full disclaimer.
© 2026 LuxAlgo Global, LLC.

