Linear Reg Line
Author: redliontrader
Creation Date: 9/15/2008 7:08 PM
profile picture


I want to take 50 Closes and draw a linear regression line through them.

The first point on the line is the LinearRegressionValue or 50 -> 1. Then point is the LinearRegressionValue of 1->50.
I then want to plot the StDeviations of LR for this line.

The moving LR functions give me the endpoint, but not the start point.

Any suggestions?
profile picture


Hope this example could be helpful:
Please log in to see this code.
profile picture


Thank you.

Looks good.

profile picture


This is a great post!
This website uses cookies to improve your experience. We'll assume you're ok with that, but you can opt-out if you wish (Read more).