0

我想将水平线添加到可以包含在 ChartSeries 图表中的 addRSI 函数中。

当我打电话

getSymbols("VELO.CO")
p <- na.omit(VELO.CO)

name <- ""
chartSeries(p,name = 'Price Development of Asset - Date top-right')
chartSeries(p,subset = fivemonths,name = 'OBV, RSI, MACD Chart, and 50 & 200 
day EMA')
addOBV(col='white')
addRSI()
addMACD()
addBBands()

这给了我一个很好的图表,上面包含了所有的指标。但是,我想知道是否可以在图表的 RSI 部分的 70 和 30 水平上添加水平线?

4

1 回答 1

0
chart_Series(p,name = 'Price Development of Asset - Date top-right')

add_RSI()

您可以使用“新的”quantmod 绘图功能并自动获得 30/70 线。注意函数中的下划线。

于 2017-10-03T22:28:10.877 回答