Raff Regression Channel
Raff Regression Channel
The trend defined precisely — bounded by where price actually went.
The Raff Regression Channel (RRC) plots a linear regression line over a selected price range and constructs parallel channel boundaries not from statistical deviation, but from the single furthest price point — high or low — from the regression line within that range. The result is a channel that is always anchored to real price extremes, making it tighter and more structurally meaningful than a standard deviation envelope.
Channel & Range Definition
Two methods are available for defining the regression range.
Auto (Market Structure) determines the range automatically using a built-in ZigZag algorithm, anchoring the channel to the most recent significant swing. ZigZag deviation and depth are configurable, giving control over how sensitive the pivot detection is.
Interactive (Anchored Range) allows precise manual definition by selecting a start and end time directly on the chart via TradingView's interactive input — useful for studying a specific market phase, earnings period, or structural move in isolation.
The channel extends beyond the defined range as a dashed projection, carrying the slope forward to show where the structure points if the trend persists.
Standard Deviation Lines
An optional overlay adds parallel standard deviation lines above and below the regression baseline, providing a statistical envelope alongside the Raff channel boundaries. Useful for comparing price extremes (Raff) against statistical dispersion (standard deviation) within the same range.
ZigZag Indicator
The underlying ZigZag used for Auto mode can be displayed on the chart independently — configurable in color, style, and width. Displaying it alongside the channel makes the pivot-anchoring logic transparent and helps validate the structural range being analyzed.
Linear Regression Curve
A continuous rolling linear regression curve runs across the full chart alongside the channel, providing a real-time trend reference that updates bar by bar rather than being fixed to the selected range.
Alerts
Built-in alerts fire when price crosses the upper or lower Raff channel extension lines, the regression baseline extension, or the standard deviation extension lines — covering both the confirmed range and the projected continuation beyond it.