Weighted Least Squares Regression Indicator

Indicators Libraries

Specification

This indicator should plot a line based on the endpoints of a linear regression line calculated over the last n price points/bars. (Example: http://tuckerreport.com/indicators/angle-measure/) The result is a "moving linear regression" line.

However, in this indicator, the calculation of the linear regression line for each set of data points should involve different weights given to different data points, similar to an exponential moving average.

The "indicator" should be presented in the form of a function, to be added to MovingAverages.mqh (as "WLSQOnBuffer()", similar to for example "ExponentialMAOnBuffer()").

Weight function and regression formula provided upon request.

Responded

1
Developer 1
Rating
(30)
Projects
71
18%
Arbitration
9
22% / 67%
Overdue
15
21%
Free
2
Developer 2
Rating
(2)
Projects
2
0%
Arbitration
0
Overdue
0
Free
3
Developer 3
Rating
(272)
Projects
394
63%
Arbitration
70
53% / 26%
Overdue
198
50%
Free
4
Developer 4
Rating
(1)
Projects
2
0%
Arbitration
0
Overdue
2
100%
Free

Project information

Budget