-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add win/loss analysis #24
Comments
Nvm, just saw discussion in fund room, seems like it is a suboptimal method of analysis |
It's still useful and we have the basic code in place from txn.py. |
FWIW, though slightly different, the Omega Ratio which I added a couple of days ago is (Total Profits) / (Total Losses) which is loosely related to this. |
@twiecki I just flagged this one as 'high priority' since I think it is related to a lot of our recent discussions about computing batting averages of strategies, as well as how to define a trading decisions, etc., which I think is something fairly high on our list. If you think this particular issue is different, feel free to re-prioritize |
Definitely. Still need to solve the non-0-crossing case but once we do my code should be pretty easy to add here. |
This would take commission costs into account, right? e.g. if I buy at $1, sell at $2, but it cost me $2 for the transactions I would have a net loss of $1 and this would be a "loss". I'm pretty sure we take transaction costs into account for everything in pyfolio but just clarifying. |
Might be useful to have a breakdown of win/loss percentage
The text was updated successfully, but these errors were encountered: