[R-SIG-Finance] EndEquity lower than initEq despite positive p/l

G See gsee000 at gmail.com
Thu May 12 02:13:21 CEST 2011

Slightly newer version of my demo attached

On Wed, May 11, 2011 at 6:10 PM, Brian G. Peterson <brian at braverock.com>wrote:

> yes, the fix made it in.  Change your strategy to not specify the Dates
> grouping at all.  Let the function take care of itself.  Or take a look
> at the 'pairs_trade' demo in quantstrat contributed by Garrett See for a
> more sophisticated treatment.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20110511/951e663d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: quantstrat_pair_trade_6b.r
Type: text/x-r
Size: 11223 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-finance/attachments/20110511/951e663d/attachment.bin>

More information about the R-SIG-Finance mailing list