glaz

EMA RSI Adaptive

341
MT4 indicator ported to pinescript the original code is here
www.forex-tsd.com/me...ving-average-86.html
開源腳本

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

免責聲明

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

想在圖表上使用此腳本?
//By Glaz
study("EMA RSI Adaptive",overlay=true)
EmaPeriod = input(14)
RsiPeriod = input(14)
Price = close

docol = input(false,title="Color Change")
RSvoltl = abs(rsi(close,RsiPeriod)-50)+1.0
multi   = (5.0+100.0/RsiPeriod)/(0.06+0.92*RSvoltl+0.02*pow(RSvoltl,2))
pdsx    = multi*EmaPeriod
alpha   = 2.0 /(1.0+pdsx)
ema = nz(ema[1])+alpha*(sma(close,EmaPeriod)-nz(ema[1]))

col = docol ? ema > ema[1] ? #0094FF : #FF006E : #0094FF
plot(ema,color=col)