Git Product home page Git Product logo

Comments (5)

PaulSquires avatar PaulSquires commented on May 23, 2024 1

This will involve:

  • Change the descriptions of each of the individual closed positions in the list. Instead of displaying the ticker name, we would display the description of the closed leg.
    • Maybe something like -2 Jan19 170 PUT, or -2 Jan 19, 2024 170 PUT, or -2 170P 2024-01-19, or similar.
  • Change the bottom tab name from "Closed Trades" to "Closed Positions".

from tradetracker.

PaulSquires avatar PaulSquires commented on May 23, 2024

The logic in the program is that as long as a trade is open, it is not counted as a "closed trade". So, for example, if you have an original trade set up as a 100 shares purchased and then sell 20, then the trade is still open with 80 shares remaining.

Looks like this approach does not work well for "Trades" that have revolving purchases and sales that result in a trade never being closed. Kind of like the Wheel Strategy with Options - the trade could conceivably stay open forever.

Looks like another area that I will have to change in order to recognize revenue whenever a leg is fully closed rather than the trade itself.

from tradetracker.

PaulSquires avatar PaulSquires commented on May 23, 2024

This is now partially implemented (for AVERAGE COST only) Work still needs to be done when FIFO COST is being used. It looks like that this functionality will only be available to stock/futures rather than options. I attempted to implement for options but there are several roadblocks that I could not overcome.

from tradetracker.

PaulSquires avatar PaulSquires commented on May 23, 2024

A lot of work done on implementing FIFO COSTING. Should now be feature complete. Testing remains.

from tradetracker.

PaulSquires avatar PaulSquires commented on May 23, 2024

This is implemented for SHARES and FUTURES trades but not for individual OPTIONS trades (due to technical reasons).

from tradetracker.

Related Issues (18)

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.