[R-SIG-Finance] quantstrat
Brian G. Peterson
brian at braverock.com
Sat Jan 8 23:05:20 CET 2011
On 01/08/2011 03:54 PM, Stephen Choularton wrote:
> Can anyone advise me how to resolve this?
try this:
stock.str <- getSymbols(stock.str,from=initDate+1)
which should drop the hat for you.
the hat isn't a valid R variable name.
Also note, per the blotter documentation, that your first trade should
occur *after* the initDate.
Cheers,
- Brian
--
Brian G. Peterson
http://braverock.com/brian/
Ph: 773-459-4973
IM: bgpbraverock
More information about the R-SIG-Finance
mailing list