If you mean linear regression: You can either use the "polyfit" function, or the standard "LinearReg" indicators in the ta-lib.