OPEN-SOURCE SCRIPT

ZLEMA RSI [scimitar25]

40
Zero-Lag Exponential Moving Average RSI

Disclaimer
The following indicator should not be used as any investing or trading advice and is for educational purposes only.

Description
The Zero-Lag Exponential Moving Average RSI (ZLEMA RSI) is a trend following indicator that combines the lag-reducing ZLEMA with an RSI to create an oscillator.

Indicator Information
ZLEMA RSI is calculated in three steps.

1. Calculate lag period
Pine Script®
lag = math.floor((length - 1) / 2)


2. Calculate EMA to form our Zero-Lag EMA
Pine Script®
zlema = ta.ema(src + (src - src[lag]), length = length)


3. Finishing off our calculations we apply our RSI.
Pine Script®
rsi = ta.rsi(zlema, length = rsiLength)


Display Options
Pine Script®
mode = input.string(defval = "Base", title = "Display Mode Options", options = ["Base", "TPI"])


The indicator features a display options Base and TPI. Base is the default option and displays the oscillator value. TPI mode displays the source data with the color indicator up or down trend. This mode is easier for determining time-coherency for your TPIs.

Cheers,

scimitar25

면책사항

해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.