Stable_Camel

RSI-EMA Indicator

This indicator calculates and plots 2 separate EMAs of the RSI. The default settings below work great on SPX/SPY daily chart. General rule is if an EMA is above 50, the stock's near term outlook is bullish. If an EMA is below 50, the near term outlook is bearish. Personally, I like to use a fast EMA as a buy signal and a slow EMA as a sell signal.

Default settings:

RSI = 50
EMA1 = 100
EMA2 = 200

Kory Hoang (stably.io)
开源脚本

本着真正的TradingView精神,该脚本的作者将其开源发布,以便交易者可以理解和验证它。为作者喝彩!您可以免费使用它,但在出版物中重复使用此代码受网站规则的约束。 您可以收藏它以在图表上使用。

免责声明

这些信息和出版物并不意味着也不构成TradingView提供或认可的金融、投资、交易或其它类型的建议或背书。请在使用条款阅读更多信息。

想在图表上使用此脚本?
study(title="marsi", shorttitle="marsi", overlay=false)

basis = rsi(close, input(50))

ma1 = ema(basis, input(100))
ma2 = ema(basis, input(200))

oversold = input(40)
overbought = input(60)

plot(ma1, title="RSI EMA1", color=blue)
plot(ma2, title="RSI EMA2", style=line, color=green)

obhist = ma1 >= overbought ? ma1 : overbought
oshist = ma1 <= oversold ? ma1 : oversold

plot(obhist, title="Overbought Highligth", style=histogram, color=maroon, histbase=overbought)
plot(oshist, title="Oversold Highligth", style=histogram, color=green, histbase=oversold)

i1 = hline(oversold, title="Oversold Level", color=white)
i2 = hline(overbought, title="Overbought Level", color=white)

fill(i1, i2, color=olive, transp=100)

hline(50, title="50 Level", color=white)