RSI(TTR)
RSI()所属R语言包:TTR
Relative Strength Index
相对强弱指数
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The Relative Strength Index (RSI) calculates a ratio of the recent upward price movements to the absolute price movement. Developed by J. Welles Wilder.
相对强弱指数(RSI)计算出的近期向上价格走势的绝对价格变动的比率。开发由J.威尔斯怀尔德。
用法----------Usage----------
RSI(price, n=14, maType, ...)
参数----------Arguments----------
参数:price
Price series that is coercible to xts or matrix.
价格XTS或矩阵转换成系列。
参数:n
Number of periods for moving averages.
移动平均线的周期数。
参数:maType
Either: <br>(1) A function or a string naming the function to be called, or<br> (2) a list with the first component like (1) above, and additional parameters specified as named components. See Examples.
:参考(1)函数或一个字符串命名的函数被调用,或参考(2)如上述(1)的第一个组件列表,和其他参数指定的命名组件。请参阅示例。
参数:...
Other arguments to be passed to the maType function in case (1) above.
其他参数传递给maType功能的情况下,上述(1)。
Details
详细信息----------Details----------
The RSI calculation is RSI = 100 - 100 / ( 1 + RS ), where RS is the smoothed ratio of 'average gains over 'average' losses. The 'averages' aren't true averages, since they're divided by the value of n not the number of gain/loss periods.
RSI计算RSI = 100 - 100 / ( 1 + RS ),RS是平滑的平均收益超过平均损失比例。的“平均值”是不正确的平均水平,因为他们的价值除以n而不是数量的收益/亏损期。
值----------Value----------
A object of the same class as price or a vector (if try.xts fails) containing the RSI values.
price或向量(try.xts如果失败),包含RSI值相同的类的一个对象。
注意----------Note----------
The RSI is usually interpreted as an overbought/oversold (over 70 / below 30) indicator. Divergence with price may also be useful. For example, if price is making new highs/lows, but RSI is not, it could indicate a reversal.
RSI的超买/超卖(超过70/30以下)的指标通常被解释为。发散的价格也可能是有用的。例如,如果价格创出新高/新低,但RSI不是,它可能表明了逆转。
You can calculate a stochastic RSI by using the function stoch on RSI values.
您可以使用功能stochRSI值计算一个随机RSI。
(作者)----------Author(s)----------
Joshua Ulrich
参考文献----------References----------
http://www.fmlabs.com/reference/RSI.htm<br> http://www.equis.com/Customer/Resources/TAAZ/?c=3&p=100<br> http://linnsoft.com/tour/techind/rsi.htm<br> http://stockcharts.com/education/IndicatorAnalysis/indic_RSI.html<br>
参见----------See Also----------
See EMA, SMA, etc. for moving average options; and note Warning section. See CMO for a variation on RSI.
见EMA,SMA,等移动平均购股权,并注意警告部分。见CMO对RSI的变化。
实例----------Examples----------
data(ttrc)
price <- ttrc[,"Close"]
# Default case[默认情况下,]
rsi <- RSI(price)
# Case of one 'maType' for both MAs[一个maType为MAS的情况下,]
rsiMA1 <- RSI(price, n=14, maType="WMA", wts=ttrc[,"Volume"])
# Case of two different 'maType's for both MAs[两种不同的“maType的情况下,为MAS]
rsiMA2 <- RSI(price, n=14, maType=list(maUp=list(EMA,ratio=1/5),
maDown=list(WMA,wts=1:10)))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|