[R-SIG-Finance] Blotter package - problem with example.

Brian G. Peterson brian at braverock.com
Mon Mar 1 17:14:02 CET 2010


Mark Breman wrote:
> Hi kafkaz,
>
> I also have this problem with the 0 size transactions if I run the
> demo(longtrend).
>
> It looks like there is a small bug in the longtrend.R script in the demo
> directory. The account is not initialized with a beginning equity.
>
> replace the line:
> initAcct(ltaccount,portfolios='longtrend', initDate=initDate)
>
> with:
> initAcct(ltaccount,portfolios='longtrend', initDate=initDate, initEq=initEq)
>
> Save the modification and run "demo(longtrend) again. This solved it for me.
>   

Thanks Mark (and Daniel and kafkaz for the confirmation).  I've updated 
the demo code and committed the changes to svn on R-Forge.

Regards,

  - Brian

-- 
Brian G. Peterson
http://braverock.com/brian/
Ph: 773-459-4973
IM: bgpbraverock



More information about the R-SIG-Finance mailing list