Skip to content

using getSymbols() with variable symbols

3 messages · manojit_roy at comcast.net, Joshua Ulrich, Robert Iquiapaza

#
On Tue, Dec 3, 2013 at 12:04 PM, <manojit_roy at comcast.net> wrote:
Read ?getSymbols and run the examples.  Pay special attention to the
auto.assign arg.

Best,
--
Joshua Ulrich  |  about.me/joshuaulrich
FOSS Trading  |  www.fosstrading.com
#
This works (use auto.assign=FALSE in getSymbols)

Robert

require(quantmod)
symbol.list <- c("LSCC","LSI","LSTR","LTBR","LTON","LTRE","LTRX","LTXC")
 for(i in 1:8){#i=1
      symbol <- getSymbols(symbol.list[i],auto.assign=FALSE)
      ticker <- last(symbol,'12 months')
      barChart(ticker)
}

2013/12/3  <manojit_roy at comcast.net>: