Gab0 / japonicus

Genetic Algorithm for Gekko Trading Bot.
MIT License
283 stars 103 forks source link

Error: config failure #30

Closed xwolfyxNL closed 6 years ago

xwolfyxNL commented 6 years ago

I am getting the following error: https://pastebin.com/akErvRyT I also see in the settings that its looking for a "example-config.js" but I can't find this anywhere and I also wouldn't know what it should contain could you maybe give an example?

Running the command: sudo python3.6 japonicus.py -g -c -w -r

Gab0 commented 6 years ago

can you confirm those dates are inside your dataset ranges? 'backtest': {'daterange': {'from': '2017-09-29 01:40:15', 'to': '2017-10-20 01:40:15'}}

does gekko error report something useful? also, please try -gcw --strat PPO

xwolfyxNL commented 6 years ago

I didn't enter that date and I can't find it in the settings.py, where do I need to set that date? And where can I find the " 'configFilename': 'example-config.js' "? As I don't see it anywhere and I wouldn't know what data I need to put in that file. Could you give an example?

Thanks for your time!

Gab0 commented 6 years ago

man can you backtest on Gekko alone? you just need to have loadable candlestick history data on your gekko. No Settings.py involved. example-config.js is the gekko config file, it's on gekko folder.. put in a path to it it's only for bayesian evolution.

Nophi commented 6 years ago

Hi Gab0, I have the same problem When I launch Japonicus : python3 japonicus.py -gc --strat RSI Here is the return : https://pastebin.com/th1Ke4Wn And in gekko, I have these errors : https://pastebin.com/sAH8JPNZ I have talib 1.0.2.

Thanks

Gab0 commented 6 years ago

At Settings.py there is this 'dataset_source' key:

            'dataset_source': {
                "exchange": "poloniex",
                "currency": 'USDT',
                "asset": 'BTC'
            },

Fill it with your candlestick database specifications or just set 'dataset_source': None, so japonicus auto-selects.. Sorry guys, it might be this .. readmes arent always perfect :3

xwolfyxNL commented 6 years ago

I have set this info but it still searches for poloniex, USDT, BTC. I set mine to this in the settings.py: 'dataset_source': { # dataset_source can be set to None so it searches from any source; "exchange": "gdax", "currency": 'EUR', "asset": 'LTC' }

Nophi commented 6 years ago

Hi, i have test with this config

'dataset_source': { "exchange": "bitfinex", "currency": 'USD', "asset": 'BTC' },

And with 'dataset_source': None,

The result is the same, the problem persists. The date sets are correct.

Thanks

xwolfyxNL commented 6 years ago

@Nophi Where did you set the date sets? as they don't seem to work for me. Example would be appreciated :)

Gab0 commented 6 years ago

Hmm I know this error on root/gekko/node_modules/koa/lib/context.js.... can you list your candlestick databases? I will download those candles of @Nophi; I only use poloniex so something may be wrong.

Nophi commented 6 years ago

My date sets is : 2017-11-27 15_14_29-gekko

And in Japonicus log : 2017-11-27 15_17_27-remote desktop manager srv gekko - ssh

I just config my Settings.py with this parameter :

'dataset_source': { "exchange": "bitfinex", "currency": 'USD', "asset": 'BTC' },

And automatically, it takes good date sets.

xwolfyxNL commented 6 years ago

Jep that works for me 2. Seems it isn't sending the correct settings to the EPOCH's

Gab0 commented 6 years ago

@xwolfyxNL & @Nophi Thanks, u guys... there is an error indeed on candlestick data loading on japonicus... to fix that I need to have a database that is not poloniex USD/BTC myself, please wait :}

Gab0 commented 6 years ago

nevermind... importer is @ 5% but it seems I got it fixed; Just pull and try... or wait for the confirmation in time: on Gekko there is an open pull request about sharpe fix, it's recommended to apply that patch, its important for japonicus results. thanks!

xwolfyxNL commented 6 years ago

It seems to be running now thanks for the help and fix @Gab0

xwolfyxNL commented 6 years ago

@Gab0 It works now only the webinterface doesn't work on 0.0.0.0:5000 and gives the following errors: https://pastebin.com/5gECeheu

Gab0 commented 6 years ago

@xwolfyxNL thats really a bug on the web interface ^^ aside that, the web graphics are somewhat useless right now... they worked fine until japonicus changed to parallel GA; fixes are coming but I need to learn about dash/flask :/

Nophi commented 6 years ago

It works fine with bitfinex, thanks ! I have a same problem with the web interface :) Thanks for your support !

Gab0 commented 6 years ago

So all fixed Even the web interface ;D