Skip to content
Prev 12977 / 15274 Next

incorrectly storing results from `blotter` when using `foreach`

See lines 524-533 and 412-451 in file paramsets.R in quantstrat.

You need to explicitly pass back and store anything you want to get out 
of the foreach loop.  Your foreach loop is using rbind, so you're 
probably getting nothing at all in the return from the foreach, or 
possibly a vector of account names.

addTxn is fast.  There will likely be little gain from using foreach. 
You'd have more luck with a simple strategy by creating an xts object 
suitable for passing to addTxns (plural)

Regards,

Brian
On 11/17/2014 06:22 AM, Nick White wrote: