The green blob is what you asked R to plot. c(PSEC, ARCC)
is the same as rbind(PSEC, ARCC)
, which creates a single OHLCVA object with two observations per index value (one for PSEC, one for ARCC). You said you tried addTA
, but it "didn't work". Saying something "doesn't work" does not help people help you, especially when you don't even show the code that "doesn't work".
Here's a chartSeries
call that uses addTA
, and a corresponding chart_Series
version. Note that chart_Series
automatically handles the y-axis range for you.
> chartSeries(Cl(PSEC), TA="addTA(Cl(ARCC), on=1)")
> chart_Series(Cl(PSEC), TA="add_TA(Cl(ARCC), on=1)")