Jim Dean![]() Sage ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3433 Joined: 3/13/2006 Location: L'ville, GA ![]() | Just look up "Least Squares" or "Linear Regression" in wiki or investopedia, etc. It's a simple way of fitting a straight line to a set of data points, such that the error of the fit is minimized. There's not much more to it than that. The code is something I created ... it applies the math needed to do the LinReg calcs. There is also a set LinReg functions avail in OT's library ... some more useful than others. |