technical-indicators
technical-indicators copied to clipboard
linear regression has wrong starting point Y value
There was a wrong assumption made that the trend line will start at the same point as the original dataset. It needs to be computed using the calculated linear equation of the trend line, just as the last point is being computed. See my pull request for the fix.