Live Gekko Not Using Imported Data
#10
(10-05-2018, 04:51 AM)Piff_Sara Wrote:
(07-19-2018, 11:30 PM)mark.sch Wrote: This is a limitation of the Web UI version. The CLI version works as you expect it to work - with db histor
Does the CLI also download automatically time windows that are not present in the db? For example, I started to  run a live trading today (5-10-2018) with a strategy that needs a warm up of 10 days, using 1Day candles. In my database i only got data from 1-09-2018 till 1-10-2018 (hence 4 days are missing). Does the CLI automatically download the 4 missing days up to the 5th of October?

If it's just a few minutes before, I know it fetches them on the fly and stitches the datasets together. Haven't tried it with more than that. What you should do instead is:

1) In your config, under the importer settings, modify the dates so that you have at least the previous 10 days up to now. Note that times are in UTC, so you need to make sure the hours on the end date are properly offset compared to your local date (for instance, since I'm UTC+3, I need to offset by subtracting 3 hours from my local time).
2) Make sure, in your config, that the candleWriter is set to "enabled: true". Otherwise, it will fail when trying to stitch the datasets. Not sure why this is, but it's useful overall, since the setting allows it to record history while it's trading.
3) Run the import first:
Code:
node gekko --config your-config.js --import
4) Run it live:
Code:
node gekko --config your-config.js

Some extra tips:
- Because you're writing the candles, you're essentially importing when trading, so if you ever need to restart the process, you'll already have the db up to date.
- If you're running on a Linux machine through an SSH session, note that node will stop when you exit the terminal session. To make your command run outside of any sessions, run it with nohup like this:
Code:
nohup node gekko --config your-config.js &
The output will be saved in a file called nohup.out, which you can then check to see how Gekko is doing.
- To stop a nohup process, first check for node processes like this:
Code:
ps aux | grep node
You will see your command there with a PID next to it, like "22104". To kill it, run:
Code:
kill 22104
Or, to kill all node processes:
Code:
killall -9 node

Hope that helps!
  Reply


Messages In This Thread
Live Gekko Not Using Imported Data - by faldor - 07-19-2018, 11:09 PM
RE: Live Gekko Not Using Imported Data - by gabbath - 10-05-2018, 09:53 AM

Forum Jump:


Users browsing this thread: