Git Product home page Git Product logo

Comments (4)

jbglattfelder avatar jbglattfelder commented on August 17, 2024

The motivation is that we never want to decascade the initial position. It is closed when the PNL condition is satisfied.

from code.

mailfilter888 avatar mailfilter888 commented on August 17, 2024

Do you know whether the PNL takes into account the transaction costs before reaching the target? For example, if commission was $7 plus there was swap fees of $4 would it take these into account if the profit target was $10 ie the total would need to be $21 gross profit to have a net profit for the EA target of $10?

Otherwise if a position is held onto for a long period (under the model some runners could be held onto for months or years) the swap could cause the profit to be eroded or go into negative.
Thanks

from code.

jbglattfelder avatar jbglattfelder commented on August 17, 2024

So this is a toy model where the only transaction fees are the spread you pay. But yes, if you hook this up to a specific exchange that charges fees, you would need to factor that in.

Note however that in the "limit orders" version of the algo you don't pay any spread fees:
https://github.com/AntonVonGolub/Code/tree/master/LimitOrders

from code.

ZDavid avatar ZDavid commented on August 17, 2024

from code.

Related Issues (19)

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.