Weighted Least Squares Regression Indicator

Tarea técnica

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.

Han respondido

1
Desarrollador 1
Evaluación
(30)
Proyectos
71
18%
Arbitraje
9
22% / 67%
Caducado
15
21%
Libre
2
Desarrollador 2
Evaluación
(2)
Proyectos
2
0%
Arbitraje
0
Caducado
0
Libre
3
Desarrollador 3
Evaluación
(272)
Proyectos
394
63%
Arbitraje
70
53% / 26%
Caducado
198
50%
Libre
4
Desarrollador 4
Evaluación
(1)
Proyectos
2
0%
Arbitraje
0
Caducado
2
100%
Libre

Información sobre el proyecto

Presupuesto