SCM

Forum: help

Monitor Forum | Start New Thread Start New Thread
RE: updatePortf Error [ Reply ]
By: John Smith on 2016-08-12 16:24
[forum:43421]
Thanks. It's working now. It was due to a corrupt data field in my xts object causing the xts object to be chars instead of double.

RE: updatePortf Error [ Reply ]
By: Brian Peterson on 2016-08-11 18:56
[forum:43419]
This isn't a reproducible example, so it is hard to tell.

Dates should be an xts ISO-8601 range, or NULL. You need to have market data available for all the instruments in your portfolio.

You'll also get a warning if there are no transactions, but I suspect your problem is the Dates.

updatePortf Error [ Reply ]
By: John Smith on 2016-08-11 18:28
[forum:43418]
When I execute updatePortf, I receive an error: "Error: unsupported type".

initPortf(strategy, c("MMM") )
initAcct(strategy, portfolios=strategy, initEq=100000)
updatePortf(strategy,Dates=currentTimeStamp)

currentTimeStamp is "2005-03-29 18:00:00 CST"

What am I missing? Thanks



Thanks to:
Vienna University of Economics and Business Powered By FusionForge