-
Notifications
You must be signed in to change notification settings - Fork 4k
Crash when Gekko has full history on second day #172
Comments
Gekko need to be able to retrieve history from a source (like bitcharts). I've been running for 3 days, and can't make a trade b/c I can't be at terminal exactly every 24 hours to catch this error, and restart. A watchdog module would be a hack to this problem. A wait time of 24 is a bit much to ask a user to wait to use the software. |
The bug only happens when the history becomes full and when that happens on the day after startup day. If you have full history this bug won't crash Gekko anymore. If you want a stable Gekko go for the master branch, this is a new version with known bugs that we are currently in the process of writing. If you don't like the hacky solution please fix the bug yourself or wait until this is stable because I have not been able to solve it yet. The master branch also fetches Bitcoincharts.
This software is currently not focused or intended as end user software, eg. I'm working on a hosted service that watches all markets and does not require you to save up history or leave something running (platform is built on top of Gekko). In the future we might host pre recorded data so it can fetch on startup. |
I am testing a config option. I am fetching historical data and the gecko being able to pull the pair from the exchange store I built. Still testing but starting to collect data. |
@askmike thanks for the reply. You seemed a little steamed from my hack comment. it shouldn't be me where you place your energy. I'm just a messenger / tester / programmer / user. My comments are not reflective of your application, just your attitude towards, in your words.. "Bugs" - I don't want to flame - I just wanted to share & contribute what I can to gekko. Thanks boxxa. |
haven't seen this on my setup - is this only an issue if the the 'collecting history' process spans midnight or is >24 hours? |
I'd love for Gekko to have some shared history, perhaps hosted as a simple JSON somewhere to pull from? |
@djmuk it only happens sometimes when you require a history which will be complete on the next second day (UTC) since startup. Instead of reducing the historySize it would be more wise to run Gekko with the advisor disabled for a couple of days and when you have time enable it with a full history and restart. @Superpencil we have some ideas for this already. The hard thing is trusting the dataprovider. |
@mike would a (temporary) workaround be to collect the history in smaller chunks - say up to 6 hours or so - or collect history up to midnight and then restart? |
No the best workaround would be to first run Gekko without a trading advisor to save up history, and after a few days restart it with. This bug can only happen on full history, an event only triggered with a trading advisor enabled and it won't happen on start (since start day == day on full history). If you want to run it for 6 hours just before midnight UTC you can still encounter this error. that said I am pretty sure I almost got this bug. |
I'm just recently seeing this bug after moving from 'master' to 'candle-rewrite'. 'master' was running Ok for days, but 'candle-rewrite' stops after just an hour or so. I've reduced the history significantly and it crashes with the NaN values. |
@cummingsrob the
That said, are you sure Gekko stops on that branch? Could you update to last commit and check again? |
I'm sure it was that branch. I'll update in a bit. I don't know how I got on that branch in the first place. I'm relatively new to Git. I'm not a programmer, but I'll try to help out how ever I can. |
fixed! |
it appears we don't load the second day in correctly.
debug log:
The text was updated successfully, but these errors were encountered: