Coder Social home page Coder Social logo

Add win/loss analysis about pyfolio HOT 7 CLOSED

quantopian avatar quantopian commented on July 17, 2024
Add win/loss analysis

from pyfolio.

Comments (7)

gusgordon avatar gusgordon commented on July 17, 2024

Nvm, just saw discussion in fund room, seems like it is a suboptimal method of analysis

from pyfolio.

twiecki avatar twiecki commented on July 17, 2024

It's still useful and we have the basic code in place from txn.py.

from pyfolio.

justinlent avatar justinlent commented on July 17, 2024

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.

from pyfolio.

justinlent avatar justinlent commented on July 17, 2024

@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

from pyfolio.

twiecki avatar twiecki commented on July 17, 2024

Definitely. Still need to solve the non-0-crossing case but once we do my code should be pretty easy to add here.

from pyfolio.

gusgordon avatar gusgordon commented on July 17, 2024

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.

from pyfolio.

twiecki avatar twiecki commented on July 17, 2024

#210

from pyfolio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.