Comments (9)
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.
Probably should have mentioned this was for Windows; whoops :P
from gekko.
Use the npm 'colors'. It works well via ssh.
from gekko.
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 without the colors module:
from gekko.
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.
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.
I think a quick fix for this is to reference to your variable like (variable + "").red
for example.
from gekko.
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.
Should be log.info('ADVICE is to', (what + "").red, meta);
then
from gekko.
Related Issues (20)
- Ichimoku indicator
- Error with papertrader and tradebot HOT 1
- How to exit from a strategy ? HOT 2
- Binance: can't have BTC as currency and USDT as asset? How to accumulate USDT? HOT 1
- Reconciliation of overlapping datasets HOT 1
- Candle Tick drifts if API fails to return data for X minutes (Kraken) HOT 1
- [Trade Bot Error] Not able to run trade bots with kraken HOT 40
- Access previous EMA HOT 1
- Cant install on windows HOT 3
- Instantly crashing when using data set. (TypeError: done is not a function) HOT 1
- Windows WSL Related Setup HOT 1
- Unable to Import data HOT 1
- TypeError: _.last(...).join is not a function HOT 1
- Original BBRSI HOT 1
- error with new install HOT 2
- Too long Insufficient data available. Age: N of 90 HOT 1
- Cannot trade on coinfalcon HOT 1
- Error: non-error thrown: ERROR: Talib is not enabled HOT 1
- Unable to see the functionality of any page HOT 2
- Sqlite issue, Gekko no finding sqlite on live trader start attempt. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gekko.