Appearance

Personalize your experience

Mode
Accent Color
Direction
Raff Regression Channel

Raff Regression Channel

Channels

A least-squares fit with each boundary placed at the furthest bar on its own side, so the channel touches both extremes and encloses every bar in the sample. Asymmetric by construction.

Theory & Background

The channel is named for Gilbert Raff, who set out the construction in his work on trend analysis in the early 1990s. It starts from the same least-squares line as an ordinary regression channel, then departs from it in one decisive way: instead of offsetting the fit by a of average dispersion, each boundary is pushed out to thesingle furthest bar on that side.

The consequence is that the channel is guaranteed to contain every bar in the sample, and that its two boundaries are almost never from the fit. That asymmetry is not a flaw to be corrected — it is information. A channel whose upper boundary sits much further from the fit than its lower one is describing a trend whose excursions have been predominantly upward, which is a different market from one with symmetric excursions.

Because the boundaries are defined by extremes rather than by an average, the channel makes a different kind of claim than a standard-deviation channel does. A ±2σ channel says “most bars fall in here”; a Raff channel says “all bars in this sample fell in here, and here is exactly how far the worst one on each side went.” The first is a statement about a , the second a factual statement about a specific stretch of price.

Tool Design & Behavior

The tool takes 2 clicks, which select a . It fits a least-squares line through the chosen over the bars in that range, finds the largest residual above the line and the largest below, and places a boundary at each. A minimum of three bars is needed before a fit exists — two define a line exactly, so their residuals are zero and there is no channel.

The anchors select a sample; they do not the channel. Only the time of each matters, which is why both grips use a resize . Dragging one changes which bars are fitted, not where the lines go — the lines go where the puts them. There is no grip, because the width is a property of the residuals and there is nothing for a to write.

Internally this is the same module as the , differing only in how the band distance is measured — Raff uses max deviation, where the standard channel uses . The control in the properties exposes this, so you can switch a Raff channel to either of the other measures without redrawing it. It is a separate palette entry rather than a setting because the asymmetric, all-bars-enclosed construction is a distinct analytical object, and one users should not have to know to go looking for.

The sample is by time, so panning and zooming cannot change which bars are included. Each boundary end is converted from its own price independently, so the offset stays a constant distance in price rather than in pixels — which matters on a .

Anatomy

furthest abovefurthest belowUpper = max deviationLower = max deviationLeast-squares fitEvery bar in the sample is enclosed
Each boundary is placed by the furthest bar on its own side, so the two offsets differ and every bar is enclosed.
Channel boundary Fitted line Deviation / volatility band Price action Bar that defines a boundary
Fitted line
The least-squares regression through the sample, drawn as the centre line. Tagged “fit” in the price labels.
Upper boundary
The fit plus the largest residual above it. Touches the bar relative to the trend.
Lower boundary
The fit minus the largest residual below it. Touches the bar relative to the trend.
Asymmetry
The two offsets are independent. Their inequality describes which side the trend’s excursions favoured.
Pearson r
How well the line explains the sample, signed like the slope. ±1 is a perfect fit, 0 is none.
r²
The share of variance the trend accounts for. 0.81 means the line explains 81% of the movement.
n
Bars in the sample. An r of 0.98 over four bars says nothing — this is the number that qualifies it.

Visual Configuration

Source
Which bar is fitted: close, open, high, low, HL/2, HLC/3 or OHLC/4. Closes are conventional; HL/2 describes the trading range instead of the settlement .
Band basis
Max deviation (Raff), , or standard error. Max deviation is what makes this the Raff construction — changing it the into a different channel.
Deviation
Multiplier on the measured distance, 0.25 to 5. Default 1 for Raff, which is the true construction; above 1 pushes the boundaries beyond the extremes.
Inner bands
An optional second pair at half the outer distance. Off by default for Raff, since a half-max-deviation line has no standard interpretation.
Fit statistics
Show Pearson r, r², the distance and n while selected or hovered.
Upper / lower / centre / inner band lines
Independent colour, , dash and . Inner bands ship dotted and hairline so they read as the faintest element.
Background
Channel fill with adjustable .
Extend
Run the lines to the left edge, the edge, both, or neither.
Price labels
Print each boundary’s price, tagged with the .
!
Caution:Setting Deviation above 1 scales the extremes outward, so the channel no longer touches its furthest bars and the “encloses everything, touches both edges” property — the whole of the construction — is lost. Leave it at 1 unless you specifically want a padded channel.

Trading Theory & Application

Boundary rejection: because each boundary touched exactly one bar in the sample, it is by definition a level price reached and then retreated from. A return to it is a test of the most extreme behaviour the trend has shown so far, which makes it a defensible entry for a trade back toward the fit — with a stop just beyond, since a break means the trend is doing something it has not done in the sample.

Breakout confirmation: the enclosure property gives the break a clean meaning. Price closing outside a Raff channel is not merely unusual; it is unprecedented within the selected sample. That is a stronger signal than exceeding a standard-deviation , which bars do routinely.

Reading the asymmetry: the two offsets. A much larger upper offset in a rising channel means the advances have overshot the trend more than the pullbacks have undershot it — buyers pressing hard, with shallow corrections. The reverse pattern in a rising channel — a lower offset — is a that the pullbacks are getting deeper than the rallies are strong.

Trend quality : use Pearson r to decide whether to trade the channel at all. Above roughly 0.9 the trend is orderly and the boundaries are meaningful. Below about 0.6 the line is fitting noise, and a channel drawn around noise will contain every bar without saying anything useful.

How to Draw

  1. 1
    Pick one trend
    Click the start and end of a single move. Only the times matter. Spanning a reversal produces a flat fit with huge deviations and an r near zero.
  2. 2
    Check r before anything else
    If Pearson r is weak, the channel is describing noise. Adjust the anchors to isolate a cleaner stretch rather than trying to interpret the boundaries.
  3. 3
    Read the asymmetry
    Look at where each boundary touches. Those two bars are the trend’s most extreme moments, and the difference in their distances is the channel’s main insight.
  4. 4
    Leave Deviation at 1
    That is the Raff construction. Raising it pads the channel and breaks the enclosure property.
  5. 5
    Extend to project
    Set Extend to to carry the boundaries forward as levels for the next test, remembering they are extrapolated from the selected bars only.

Interpretation

  • Every bar inside the channel is guaranteed, not observed — it is how the boundaries were constructed. So containment is not evidence the channel is working.
  • The bar that touches each boundary is the informative part. Check when it printed: an extreme set at the start of the sample describes a trend that has since settled, one set at the end describes a trend still pushing.
  • A very wide channel with a strong r means an orderly trend with swings around it; a narrow one with strong r means a tight, disciplined trend.
  • Adding bars to the sample can only widen the channel or leave it unchanged, never narrow it, because a new extreme replaces the old one and a lesser bar does not. Widening on is therefore expected and not a signal.
  • A single outlier bar — a gap or a spike — sets a boundary the rest of the sample never approached. This construction is more sensitive to outliers than any other channel here, by design.

Advanced Techniques

Raff against on the same sample: draw both over identical anchors. The gap between the Raff boundary and the 2σ boundary measures how much of the channel’s comes from outliers rather than from sustained dispersion. A gap says one or two bars are doing all the work.

Switching to standard error: standard error divides by the of the , so it tightens as the sample grows. It describes confidence in the rather than the spread of price around it, which is the when the question is “how well do I know this slope?” rather than “how far does price stray?”

Sequential channels: draw Raff channels over consecutive equal-length stretches of the same trend. Rising r values mean the trend is becoming more orderly; falling ones mean it is deteriorating, often before the price action makes that obvious.

Common Mistakes

!
Caution:Do not treat enclosure as validation. The channel contains every bar because that is how it was built — it would do so on random . Pearson r and n are the figures that say whether the trend is real.
!
Caution:Do not expect the boundaries to be from the fit. They are not supposed to be, and a channel that looks lopsided is reporting a real property of the sample rather than a error.
ℹ
Note:Dragging an does not move a line. It changes the sample, and the fit and both boundaries are recomputed — which can move everything at once if the anchor crosses the bar that was setting an extreme.

References & Further Reading

Related articles

  • Dual Regression Channel

    Charts / Drawing Tools / Channels

    Two independent least-squares fits over the same bars — one through the highs, one through the lows. The only fitted channel whose boundaries need not be…

  • ATR Channel

    Charts / Drawing Tools / Channels

    A least-squares trend line with boundaries a multiple of average true range away on each side. A volatility channel over a range you select — it answers how…

  • Disjoint Channel

    Charts / Drawing Tools / Channels

    Two boundaries that start out parallel and can then be pulled apart. Neither the slopes nor the time extents are tied together, so the tool draws anything…

  • Envelope Channel

    Charts / Drawing Tools / Channels

    A hand-placed base line with boundaries a fixed percentage of price above and below it. The only channel whose width scales with the instrument, which makes…

  • Flat Top/Bottom Channel

    Charts / Drawing Tools / Channels

    One sloped boundary and one horizontal boundary. Place the flat line above the slope for a flat top (ascending triangle, bullish bias) or below it for a…

  • Parallel Channel

    Charts / Drawing Tools / Channels

    A trend-correction tool formed by two parallel trend lines. Price oscillates between dynamic support and resistance, offering repeated mean-reversion…

  • Price Channel

    Charts / Drawing Tools / Channels

    The highest high and the lowest low of a range you select, drawn as two horizontal levels. A Donchian channel over a window you chose rather than a rolling…

  • Regression Trend

    Charts / Drawing Tools / Channels

    A linear regression line with symmetrical standard deviation bands. Unlike subjective trend lines, the regression channel is mathematically determined from…

  • Andrews' Pitchfork

    Charts / Drawing Tools / Pitchforks

    A three-point trend-channel study. A central median line projects the equilibrium of a move while two parallel tines act as dynamic support and resistance.

Browse all knowledge base articles →