All indicators

Rolling Segment

By LuxAlgoMar 17, 2026

Static chart image

Rolling Segment plots a segmented trend line that deliberately refuses to behave like a moving average: it fixes a linear slope (kin to a linear regression fit) and holds it frozen until the market state changes. Green segments mark bullish conditions, red segments bearish, and a gradient fill between price and the line shows how far the move has stretched from its reference path.

State means two things: trend direction and speed mode. The ATR scaling the slope refreshes only when a reversal confirms, when a speed-mode change triggers, or on the initial calculation, which is why segments stay straight and readable.

How to Trade the Rolling Segment?

  • Segment color: green for bullish, red for bearish, the simplest trend-bias filter available.
  • Triangle markers: a bullish triangle prints below the segment when a new uptrend begins, a bearish one above it when a downtrend takes over, each confirmed by an ATR-scaled move against the prior trend.
  • Fast mode engaging: price stretching past the Fast Threshold flips the line steeper, evidence momentum is genuinely expanding.
  • Persistent overextension: if price keeps pulling away even after Fast mode engages, the move may be overheating; watch for pullback or mean-reversion risk.

A flattening segment signals a market without direction relative to its volatility, a cue to stand down on trend entries until expansion returns.

Rolling Segment Settings

  • Fast Slope Length: slope speed during strong trends; lower values track momentum more aggressively.
  • Slow Slope Length: slope in normal conditions; higher values keep the line flatter and calmer.
  • ATR Length: lookback for the ATR that scales both the slope and the thresholds.
  • Fast Slope Threshold (ATR Multiplier): how far price must run from the segment before Fast mode engages.
  • Reverse Threshold (ATR Multiplier): how far price must move against the trend before a reversal confirms.

Frequently Asked Questions

Free indicator

Get free access to this indicator on the platforms below.

TradingView
NinjaTrader
MetaTrader 4/5
Original indicatorBuilt in-house by LuxAlgo

The Library is free. Quant makes it yours.

Pull any concept or indicator into Quant: rebuild it, retune it, or turn it into a backtested strategy of your own.