TradingCharts

Regression Trend

Treat the regression midline as fair value for the period — price at the upper band is statistically stretched, at the lower band statistically cheap.

What it draws

Fits a linear regression line through all bars in a selected time range and draws parallel bands above and below it at a set number of standard deviations (commonly ±2). It shows the statistical best-fit trend and how stretched price is relative to it.

How to draw it

  1. Pick Regression Trend from the left toolbar (Channels group).
  2. Two points: click the start bar and the end bar of the range; the regression line and deviation bands are computed automatically over that span.

How traders use it

  • Treat the regression midline as fair value for the period — price at the upper band is statistically stretched, at the lower band statistically cheap.
  • In a trend, buy pullbacks toward the midline or lower band and exit near the upper band, in the direction of the regression slope.
  • Watch the slope itself: a flattening regression line over successive redraws signals the trend is losing force.
  • A sustained close outside the ±2σ band flags either an overextension likely to mean-revert or the start of a new, faster trend — let the next few bars decide.

Settings reference

Double-click the drawing (or use its floating toolbar → gear) to open settings:

Setting Control Possible values Default Effect
Color color any color (theme color picker) #05B878 Color of the regression base line and channel boundaries.
Line Width select 1px | 2px | 3px | 4px 2px Stroke thickness of the drawing’s lines and outlines.
Line Style select Solid | Dashed | Dotted Solid Dash pattern used for the drawing’s lines.
Fill Color color any color #05B878 Fill color of the regression channel.
Fill Opacity slider 0–100 5 Opacity of the regression channel fill.
Std Dev select 1σ | 2σ | 3σ 1σ Standard-deviation multiplier for the channel width around the linear-regression line.
[Tab] Text — Text checkbox + textarea on/off, with a multiline text box for the label content off (on when the drawing already carries text) Enables an attached text label on the drawing; typing in the box auto-enables it and updates the label live.
[Tab] Text — Text Color color any color same as the drawing’s line color Color of the attached text label.
[Tab] Text — Font Size select 8, 10, 11, 12, 14, 16, 18, 20, 24, 28, 32, 36, 48, 64, 72 14 Point size of the attached label text.
[Tab] Text — Bold checkbox on/off (B toggle button) off Renders the label in bold.
[Tab] Text — Italic checkbox on/off (I toggle button) off Renders the label in italics.
[Tab] Text — Word Wrap checkbox on/off off Wraps long label text onto multiple lines instead of one long line.
[Tab] Text — Text alignment (vertical) select Top | Middle | Bottom Top Vertical placement of the label relative to the drawing.
[Tab] Text — Text alignment (horizontal) select Left | Center | Right Center Horizontal placement of the label relative to the drawing.
[Tab] Coordinates number + datetime one row per anchor point: price (number, step 0.05) and local date/time the drawing’s current anchor values Edits anchor geometry numerically — changing a point’s price or time moves the drawing live on the chart.
[Tab] Visibility checkbox + number range interval buckets: Ticks; Seconds 1–59; Minutes 1–59; Hours 1–24; Days 1–366; Weeks 1–52; Months 1–12; Ranges (each bucket has an on/off checkbox, most also a from–to range) visible on all intervals Per-timeframe visibility rules — untick a bucket to hide the drawing on those chart resolutions, or narrow the from–to range within a bucket.

Editing & managing

  • Move / adjust: drag the drawing or any anchor handle; magnet mode snaps points to OHLC values.
  • Clone / lock / hide / delete from the floating toolbar or right-click menu.
  • Templates: save the current style from the settings dialog and reapply it to new drawings.
  • Every action is undoable (⌘Z / Ctrl+Z).

Watch out for

  • The whole channel is recomputed from the chosen window, so moving the start point changes every line — it describes the selected past and does not by itself forecast the future.