OPEN-SOURCE SCRIPT

Helme-Nikias Weighted Burg AR-SE Extra. of Price [Loxx]

업데이트됨
Helme-Nikias Weighted Burg AR-SE Extra. of Price [Loxx] is an indicator that uses an autoregressive spectral estimation called the Weighted Burg Algorithm, but unlike the usual WB algo, this one uses Helme-Nikias weighting. This method is commonly used in speech modeling and speech prediction engines. This is a linear method of forecasting data. You'll notice that this method uses a different weighting calculation vs Weighted Burg method. This new weighting is the following:

w = math.pow(array.get(x, i - 1), 2), the squared lag of the source parameter

and

w += math.pow(array.get(x, i), 2), the sum of the squared source parameter

This take place of the rectangular, hamming and parabolic weighting used in the Weighted Burg method

Also, this method includes Levinson–Durbin algorithm. as was already discussed previously in the following indicator:

Levinson-Durbin Autocorrelation Extrapolation of Price [Loxx]
Levinson-Durbin Autocorrelation Extrapolation of Price [Loxx]


What is Helme-Nikias Weighted Burg Autoregressive Spectral Estimate Extrapolation of price?
In this paper a new stable modification of the weighted Burg technique for autoregressive (AR) spectral estimation is introduced based on data-adaptive weights that are proportional to the common power of the forward and backward AR process realizations. It is shown that AR spectra of short length sinusoidal signals generated by the new approach do not exhibit phase dependence or line-splitting. Further, it is demonstrated that improvements in resolution may be so obtained relative to other weighted Burg algorithms. The method suggested here is shown to resolve two closely-spaced peaks of dynamic range 24 dB whereas the modified Burg schemes employing rectangular, Hamming or "optimum" parabolic windows fail.

Data inputs
  • Source Settings: -Loxx's Expanded Source Types. You typically use "open" since open has already closed on the current active bar
  • LastBar - bar where to start the prediction
  • PastBars - how many bars back to model
  • LPOrder - order of linear prediction model; 0 to 1
  • FutBars - how many bars you want to forward predict


Things to know
  • Normally, a simple moving average is calculated on source data. I've expanded this to 38 different averaging methods using Loxx's Moving Avreages.
  • This indicator repaints


Further reading
A high-resolution modified Burg algorithm for spectral estimation

Related Indicators
Levinson-Durbin Autocorrelation Extrapolation of Price [Loxx]
Levinson-Durbin Autocorrelation Extrapolation of Price [Loxx]


Weighted Burg AR Spectral Estimate Extrapolation of Price [Loxx]
Weighted Burg AR Spectral Estimate Extrapolation of Price [Loxx]
릴리즈 노트
Fixed calculation error.
릴리즈 노트
Changed plot to line and cleaned up coordinate drawing functions.
스냅샷
릴리즈 노트
Coordinate cleanup.
릴리즈 노트
Updated drawing functions
릴리즈 노트
Increased lookback range to max of 2000 bars. Future bar draws are limited to math.min(array output calcs, FutBars) settings. All settings work now.
릴리즈 노트
Updated lines calculations
autoregressiveBURGforecastforecastinghelmenikiaspredictionspectralestimateTrend Analysisweightedburg

오픈 소스 스크립트

진정한 TradingView 정신에 따라, 이 스크립트의 저자는 트레이더들이 이해하고 검증할 수 있도록 오픈 소스로 공개했습니다. 저자에게 박수를 보냅니다! 이 코드는 무료로 사용할 수 있지만, 출판물에서 이 코드를 재사용하는 것은 하우스 룰에 의해 관리됩니다. 님은 즐겨찾기로 이 스크립트를 차트에서 쓸 수 있습니다.

차트에 이 스크립트를 사용하시겠습니까?


Public Telegram Group, t.me/algxtrading_public

VIP Membership Info: patreon.com/algxtrading/membership
또한 다음에서도:

면책사항