Volatility Trend Score
Jan 9, 2026

The Volatility Trend Score indicator is a comprehensive trend-strength and regime-evaluation tool designed to measure directional persistence by accounting for market volatility. Unlike standard trend tools that only indicate direction, this script quantifies how consistently a trend structure holds up relative to volatility-scaled trailing levels, providing a continuous score of trend quality.
Usage
The Volatility Trend Score can be used as a primary trend filter or a trade management layer. The indicator outputs a continuous score that reflects market conviction:
- Trend Filtering: Traders can restrict long entries to periods where the score is above the defined Long Threshold, ensuring they only trade high-conviction regimes.
- Regime Identification: High positive values indicate strong bullish persistence, while values near zero suggest indecision or range-bound behavior.
- Trade Management: The volatility-adjusted trailing line on the chart can serve as a dynamic stop-loss or a reference for market structure.
- Exit Strategy: A rapid decay in the score while price remains high can signal a loss of trend pressure, allowing traders to scale out before a full trend reversal.
Details
The indicator operates on two core components: a volatility-adjusted trailing structure and a rolling persistence score.
- Trailing Structure: Using ATR, the script calculates a "ratchet" trailing line. This line only moves upward when the lower ATR band rises above the previous trail and downward when the upper ATR band drops below it. This mechanism prevents the trail from oscillating during minor noise, forcing it to represent meaningful structural changes.
- Persistence Scoring: The script runs a loop over a configurable lookback window, comparing the current trailing value to its historical values. If the current trail is higher than a past value, it adds to the score; if lower, it subtracts. This confirms if the market is actually advancing through volatility or simply oscillating.
Settings
Core Calculation Settings
- Average True Range Period: Sets the lookback for the ATR calculation. Higher values create a smoother, less reactive volatility estimate.
- Factor: A multiplier for the ATR band size. Increasing this filters more noise and produces more stable, slower-moving regimes.
- For Loop Start/End: Defines the window for the persistence test. A longer range requires sustained trend movement to reach high scores, while a shorter range is more tactical and responsive.
Signals Settings
- Long Threshold: The score level required to trigger and maintain a bullish regime bias.
- Short Threshold: The level at which a crossunder triggers a breakdown or bearish transition.
- Show Long and Short Signals On Chart: Toggles visual labels for regime flips.
Plotting and Coloring
- Show On Chart: Toggles the visibility of the trailing structure line on the price action.
- Paint Candles to Trend: Changes candle colors to match the current trend regime.
- Background Color: Enables or disables background shading based on the active trend state.
FAQ
How do I access Volatility Trend Score?
You can get access on the LuxAlgo Library for charting platforms like TradingView, MetaTrader (MT4/MT5), and NinjaTrader for free.
What is the difference between the score and the trailing line?
The trailing line is a price-level structure used to define support/resistance based on volatility, while the score is a derivative of that line that quantifies the strength and persistence of the trend over time.
Can this indicator be used for crypto trading?
Yes, the indicator is specifically designed to handle high-volatility environments like crypto. Because it anchors its structure to ATR, it normalizes trend detection regardless of whether the asset is in a high or low-volatility phase.
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.