Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[R-Forge #1125] add capital/equity-aware order sizing function #35

Open
joshuaulrich opened this issue May 13, 2016 · 0 comments
Open

Comments

@joshuaulrich
Copy link
Collaborator

Submitted by: Brian Peterson
Assigned to: Joshua Ulrich
R-Forge link

quantstrat currently has two default order sizing functions:

osNoOp (no operation, tests for errors only, otherwise returns the quantity requested)

osMaxPos (allows leveling into positions up to some maximum position)

We should add a function of functions to do order sizing based on account equity.

At it's simplest, I think that this would do sizing based on either initEQ (stored as an attr in the Account), or on the current endEq (if it has been updated by a call to updateAcct)

I suppose several other options could make sense, like handling weights to apply. This could then be used for either true weight-based allocation (think portfolio optimization ala PortfolioAnalytics or LSPM), or for volatility weighting (per the original Turtles strategy, or similar).

Cheers,

  • Brian
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant