Rolling Segment
By LuxAlgoMar 17, 2026
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 on Vela
Run it on Vela. Go further with a paid plan.
- Up to 500 strategy alerts, with webhook automation
- Up to 10× the chart history of Free
- Orderflow lookback up to full history
- Up to 100,000 monthly credits for Quant to customize it
- Futures data alongside crypto, stocks, forex and commodities
Also works on
Related indicators
All 8 Linear Regression indicatorsRun it on Vela. Make it yours with Quant.
Open this indicator free on Vela, our next-generation charting platform. Then ask Quant, our coding agent built into Vela, to retune it or turn it into a backtested strategy of your own.





