[R-SIG-Finance] quantstrat example stragey error

Immanuel mane.desk at googlemail.com
Sat Feb 26 18:03:03 CET 2011


Hello all,

I just run the examples from the quantstrat package and
received following error for every example:
----------
[1] "2007-02-26 IBM 100 @ 96.91"
Error in if (getPosQty(Portfolio = portfolio, Symbol = symbol, Date =
timestamp) ==  :
  argument is of length zero
In addition: Warning messages:
1: In max(i) : no non-missing arguments to max; returning -Inf
2: In `[.xts`(PosData, index(PosData) < Date) :
  Incompatible methods ("Ops.POSIXt", "Ops.Date") for "<"
[1] "strat execution time:"
Time difference of 0.2813089 secs
[1] "updatePortf execution time:"
Time difference of 0.2385919 secs
Warning message:
In max(i) : no non-missing arguments to max; returning -Inf
----------

any ideas?

thanks,
Immanuel



More information about the R-SIG-Finance mailing list