Weighted Least Squares Regression Indicator

Spécifications

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.

Répondu

1
Développeur 1
Évaluation
(30)
Projets
71
18%
Arbitrage
9
22% / 67%
En retard
15
21%
Gratuit
Publié : 2 codes
2
Développeur 2
Évaluation
(2)
Projets
2
0%
Arbitrage
0
En retard
0
Gratuit
Publié : 7 articles
3
Développeur 3
Évaluation
(273)
Projets
396
63%
Arbitrage
70
53% / 26%
En retard
198
50%
Gratuit
4
Développeur 4
Évaluation
(1)
Projets
2
0%
Arbitrage
0
En retard
2
100%
Gratuit

Informations sur le projet

Budget