search for: candlechart

Displaying 1 result from an estimated 1 matches for "candlechart".

2010 Nov 21
1
abline(h=whatever) not working in candleChart() (in quantmod)?
...fun playing with the graphing in quantmod-- very nice! I am writing a function to calculate (and hopefully plot) support and resistance lines, but the usual plot call of "abline(h=value)" does not seem to work. Here's my code: require(quantmod) AAPL<-getYahooData("AAPL") candleChart(AAPL,subset="last 3 months",theme="white") addMACD() abline(h=290,col="red") The same sequence works fine if I'm just using a plain vanilla "plot" call, however. What am I missing? Do I need to call the line as a technical study using addTA? Not sure h...