search for: addmacd

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

Did you mean: add_mac
2010 Nov 21
1
abline(h=whatever) not working in candleChart() (in quantmod)?
...ion 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 how to make a straight line constant doing that... I'm sure it shou...