In quantmod
, when I using add_BBands()
to add Bollinger Bands
, it's show no Close
column . But Close
really in the dataframe . How to fix it ? Thanks!
library(quantmod)
library(TTR)
data(ttrc)
chartSeries(ttrc ,TA=c(add_BBands()))
The error message as below:
Error in Cl(xdata) :
subscript out of bounds: no column name containing "Close"