+1 (307) 227-6611

Free risk tools

Linear regression channel calculator

The straight line that fits the closes best, how steep it is, and how well it fits.

Free, no sign-up On sale: Desk and Desk + Signals. See the plans

  • Free
  • No sign-up
  • Nothing you type is stored

The closes

Oldest first, split by commas or spaces.
20 to 100 is common; the last closes are used.

The line

Over the last 20 closes the line is rising by 3.50 a bar (0.15%), and R² is 0.65: a loose trend.

The last close
2,395.20 against the line's 2,375.87: 1.3 deviations above the line, inside the channel.
The channel
One deviation is 14.91. If the line held, it would be at 2,379.37 on the next bar.
Read it with care
The line fits the past closes after the fact; a new bar can bend it, and a high R² on a few closes means little.

The line and its channel on the last bar and one bar ahead.

LevelLast barNext bar
+2 deviations2,405.692,409.19
+1 deviation2,390.782,394.28
The line2,375.872,379.37
-1 deviation2,360.962,364.46
-2 deviations2,346.052,349.55

Education only, not investment advice. The answer comes from the numbers you typed in, not from your account or the market. Simulated results are hypothetical and have limits: real trading has slippage, gaps, changing results and emotions. Trading leveraged products can lose money quickly, including all of it. Risk warning

Want this check on every trade?

Educational only, not financial advice; trading involves risk.

A trend you can measure

A linear regression line is the straight line through the closes with the smallest squared misses. Its slope says how fast the price has been moving per bar, R² says how much of the movement the line explains (1 is a perfect line, 0 is none), and the deviation of the closes around it sets a channel.

A close at the edge of the channel is far from the trend; some traders fade it, others take it as the trend speeding up. Compare it with the moving average calculator and the Bollinger bands calculator, and size the trade with the position size calculator.

Not advice. Arithmetic on the closes you type; a line through the past is not a forecast.

Next tools

All free tools

Pricing

Three ways in. Pick yours.

Baroq never holds your money and never trades for you. Educational only, not financial advice; trading involves risk.

Test your trading idea free

No spam. Unsubscribe anytime.

Educational only, not financial advice; trading involves risk.

or join us on Telegram