Posted By: DdlV
polyfit order 1 - coeff[1] sign is reversed? - 09/25/13 18:55
Latest play topic has been polyfit. Starting simple with order 1 (straight line), the intercept returned as coeff[0] seems correct, but it appears the slope returned as coeff[1] has opposite sign. When the price curve goes up, the slope is negative, and vice versa. It's also opposite from what is returned by LinearRegSlope, which appears to be correct. Please check this, and if it's a bug also verify that the coeff[n]'s for higher order have the correct sign - I'll get there someday!
Thanks.
Thanks.