Weighted Least Squares Regression Indicator

Şartname

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.

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(30)
Projeler
71
18%
Arabuluculuk
9
22% / 67%
Süresi dolmuş
15
21%
Serbest
Yayınlandı: 2 kod
2
Geliştirici 2
Derecelendirme
(2)
Projeler
2
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
Yayınlandı: 7 makale
3
Geliştirici 3
Derecelendirme
(273)
Projeler
396
63%
Arabuluculuk
70
53% / 26%
Süresi dolmuş
198
50%
Serbest
4
Geliştirici 4
Derecelendirme
(1)
Projeler
2
0%
Arabuluculuk
0
Süresi dolmuş
2
100%
Serbest

Proje bilgisi

Bütçe