Extrapolator

0
(0)
姓名:
Extrapolator [ ]
作者: gpwr (2008.12.25 08:18)
評分: 9.5
已下載: 14839
下載:
Extrapolator 1
Extrapolator.mq4 (14.7 KB) 看法

描述:

The indicator is based on several methods that can be chosen by the Method input variable:

方法 1: Fourier's extrapolation; the frequencies are calculated using the Quinn-Fernandes Algorithm

方法 2: Autocorrelation Method

方法 3: Weighted Burg Method

方法 4: Burg Method with Helme-Nikias weighting function

方法 5: Itakura-Saito (geometric) 方法

方法 6: Modified covariance method

Methods 2-6 are the methods of linear prediction. The linear prediction is based on finding the future values as the linear functions of the past values. Assume that we have a number of prices x[0]..X[n-1] where the higher index is compliant with the recent price. The prediction of the future price x[n] 計算為

X[n] = -Sum(A[我]*X[n-i], i=1..p)

where a[i=1..p] - coefficients of the model, p - order of the model. The listed methods 2-6 find the coefficients a[] by decreasing the mean-root-square error on the training last n-p bars. 當然, we can reach the zero error of prediction if we directly solve the set of equations mentioned above with n=2*p by the Levinson-Durbin method. Such method of prediction is called Prony Method. Its disadvantage is the instability during the prediction of the future values of the series. That's way this method has not been included.

The other input parameters are:

LastBar - the number of the last bar in the past data

PastBars - the number of past bars used for the prediction of the future values

LPOrder - the order of the linear model as a fraction from the number of the past bars (0..1)

FutBars - the number of future bars in the prediction

HarmNo - the maximum number of frequencies for the Method 1 (0 means all frequencies)

FreqTOL - the imprecision of the frequeincies calculation for the Method 1 (if it is >0.001 it can't converge)

BurgWin - the number of the weighting function for the Method 2 (0=Rectangular 1=Hamming 2=Parabolic)

指標繪製兩條線: the blue line shows the prices of the model on the training bars, the red line shows the predicted future prices.

例子:

方法 1 (the extrapolation of Fourier series)

Extrapolator 2

方法 3 (Burg's method)

Extrapolator 3

方法 6 (Modified Covariance Method)

Extrapolator 4

Petition:

If somebody will be successful in developing a profitable EA based on this indicator I ask to share his/her ideas via the e-mail specified inside the code.

這篇文章有多有用?

點擊一顆星即可對其進行評分!

平均評分 0 / 5. 計票數: 0

目前還沒有投票! 成為第一個評價這篇文章的人.

很抱歉這篇文章對您沒有用!

讓我們改進這篇文章!

告訴我們如何改進這篇文章?



作者: 外匯維基團隊
我們是一支經驗豐富的外匯交易員團隊 [2000-2023] 致力於以我們自己的方式生活的人. 我們的主要目標是實現財務獨立和自由, 我們追求自我教育並在外匯市場上獲得豐富的經驗,以此作為實現自我可持續生活方式的手段.