Giter Club home page Giter Club logo

Comments (9)

askmike avatar askmike commented on May 23, 2024

Great idea, I'll look into this.

I myself am not really the use case for this, as I am mostly running Gekko on a vps and the colors don't really work through SSH (so it's going to be configurable).

What I always do is output a live running Gekko to a file (howto) and use grep to search for specific actions across all output. But this sounds like an awesome improvement.

from gekko.

illutian avatar illutian commented on May 23, 2024

Probably should have mentioned this was for Windows; whoops :P

from gekko.

yayscripting avatar yayscripting commented on May 23, 2024

Use the npm 'colors'. It works well via ssh.

from gekko.

DeveloperUX avatar DeveloperUX commented on May 23, 2024

I think this is also a great improvement for those running Gekko from the command line. I tried to add it but for some reason it breaks something (not sure what exactly).

Seems like every time I add the colors the advice prints out fine but Gekko does not make any Real Trades. See screenshots below:

Gekko with the Colors module added:
gekko-colors-broken

Gekko without the colors module:
gekko-no-colors-works

from gekko.

illutian avatar illutian commented on May 23, 2024

Hmm, might be the .[color] changes the actual 'variable name'.

I didn't test this with Trading enabled. The markets in too much flux right now to allow for a 15min delay between actions.

from gekko.

DeveloperUX avatar DeveloperUX commented on May 23, 2024

Yea it looks like that's what's happening. I changed all references to the strings 'BUY', 'SELL', and 'HOLD' to integer values. I only convert them to string when actually printing out to the console.

from gekko.

yayscripting avatar yayscripting commented on May 23, 2024

I think a quick fix for this is to reference to your variable like (variable + "").red for example.

from gekko.

askmike avatar askmike commented on May 23, 2024

Internally Gekko uses the advice string to check what to do. If you want colors in your logging it should be added either in the logging module or to the part where Gekko logs advice.

from gekko.

yayscripting avatar yayscripting commented on May 23, 2024

Should be log.info('ADVICE is to', (what + "").red, meta); then

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.