PROTECTED SOURCE SCRIPT
Telah dikemas kini

PpSignal Non lag ALMA

3 056
The zero lag exponential moving average (ZLEMA) indicator was created by John Ehlers and Ric Way.[1]

As is the case with the double exponential moving average (DEMA) and the triple exponential moving average (TEMA) and as indicated by the name, the aim is to eliminate the inherent lag associated to all trend following indicators which average a price over time.

The formula for a given N-Day period and for a given data series is:[2][3]

{\displaystyle {\textit {Lag}}={(Period-1)/2}} {\textit {Lag}}={(Period-1)/2}
{\displaystyle {\textit {EmaData}}={Data+(Data-Data(Lagdaysago))}} {\displaystyle {\textit {EmaData}}={Data+(Data-Data(Lagdaysago))}}
{\displaystyle {\textit {ZLEMA}}={EMA(EmaData,Period)}} {\textit {ZLEMA}}={EMA(EmaData,Period)}
The idea is do a regular exponential moving average (EMA) calculation but on a de-lagged data instead of doing it on the regular data. Data is de-lagged by removing the data from "lag" days ago thus removing (or attempting to) the cumulative effect of the moving average.

we use alma ma for calculate this script
Nota Keluaran
we added alarm and mtf
Nota Keluaran
we added slope

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.