samuelhei

Relative Projected Ema

I realized that I can use my PEMA indicator (www.tradingview.com/v/WuSuwa50/) as ocillator too, so I created this indicator.

Good to compare top and bottom (get divergences), and oversold and overbought areas (like RSI).

If you liked, send me a small amout of bitcoin to 1NR9tyn8tAn6nuQzosaZ2SkfT38PLxN5mf it will encorage me to create other indicators open source.
開源腳本

本著真正的TradingView精神,該腳本的作者將其開源發布,以便交易者可以理解和驗證它。為作者喝彩吧!您可以免費使用它,但在出版物中重複使用此代碼受網站規則的約束。 您可以收藏它以在圖表上使用。

免責聲明

這些資訊和出版物並不意味著也不構成TradingView提供或認可的金融、投資、交易或其他類型的意見或建議。請在使用條款閱讀更多資訊。

想在圖表上使用此腳本?
study("Relative PEMA","R_PEMA")

src = close

ema2 = ema(src, input(100,"EMA 1"))
ema1 = ema(src, input(200,"EMA 2"))

dif = ema2- ema1
max = ema2 + 6*dif
min = ema1 - 2*dif

zero = min > max ? max : min
cem = min > max ? min : max

value = src < zero ? 0 : src > cem ? 100 : ((src - zero)/(cem-zero))*100


plot(value, color=navy)
band1 = hline(70)
band0 = hline(30)

fill(band1, band0, color=navy, transp=90)