Calculation of LinearReg and LinearRegSlope
Author: ruediger78
Creation Date: 2/23/2013 11:28 PM
profile picture



I am writing a C#-Program which should calculate the LinearRegSlope in the same way as wealthLab does. I cant find the exact calculation of Linear regSlope and LinearReg anywhere. Could you please tell me how WealthLab calculates it?
profile picture


Unfortunately, the Wiki articles for LinearReg and LinearRegSlope are not too verbose on its calculation. Against my own habit, I'd suggest that you reference the WealthLab.Indicators.dll in your project to be able to use the LinearReg/LinearRegSlope series, and thus their values in your program would match Wealth-Lab's precisely.