Giter Club home page Giter Club logo

Comments (1)

askmike avatar askmike commented on May 25, 2024

Right now you can only configure EMA which is a trend watching method, if you follow this advice you don't care about at what prices you changed your position (bought or sold) but when a trend is changing. The logic is pretty simple:

  • If there is an upwards trend and you buy now, you can sell whenever the trend is not going up anymore (and end up with more $ than you started out with).
  • If there is an downwards trend and you sell now, you can buy whenever the trend is not going down anymore (and end up with more BTC then you started with).

The hard part is figuring out trends that are in the future.

If you only sold when in profit you could end up ignoring all the trends (imagine buying in at 900$), instead of getting some loss back your would still be holding on to your coins stubbornly.


You can implement a new method besides EMA which behaves the way you want, you can take a look at how to implement a method by looking at the EMA example.

from gekko.

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.