Stuck fetching pre-roll data
When starting using crossover_vwap, the bot never actually starts.
node zenbot.js trade gdax.BTC-USD --strategy=crossover_vwap
I have over 500 hours of data in my cloud environment and running other strategies but this one seems to be stuck. Simulations run fine.
If i go into the trade.js file and remove the days variable and set it to 1, it runs right away. Maybe a bad calculation I will try to calculate some debug logs.
What are your other parameters? I believe the default needs 108 periods before it has enough data to start, so no signals will happen. Though that shouldn't prevent it from starting at all though, just means you won't see buy/sell signals until the indicators start appearing.
Recently gdax has been taking much longer than it previously was. It now takes maybe at least 5x as long to gather the same amount of data in days. I don't know if this is due to gdax limiting getting trade history, or just due to the very high volume recently coming into gdax and other exchanges which would be causing much more data to be created.
I have 687+ hours fetched and it just doesn't move on from pre-roll data from gdax. Have tried period=120m. Anyone using this successfully on gdax?
Noticed the same thing, definitely a bug.
Same thing here. Going on forever.
The days calculation fails on trade.js. https://github.com/carlos8f/zenbot/blob/master/commands/trade.js#L313
For some reason, it is returning NaN when doing the calculation. To get past it until I can look at it more, change this line to what you need. 1 day should work but if you are trading a larger period, you need to make it bigger. https://github.com/carlos8f/zenbot/blob/master/commands/trade.js#L335
Current
var backfiller = spawn(path.resolve(__dirname, '..', zenbot_cmd), ['backfill', so.selector, '--days', days])
Fix
var backfiller = spawn(path.resolve(__dirname, '..', zenbot_cmd), ['backfill', so.selector, '--days', 1])
Mine also stuck fetching for days when running strategy crossover_vwap.
I found out that a min_periods need to be specified.
Correct:
./zenbot.sh trade --paper --strategy=crossover_vwap --min_periods=100
The days calculation fails on trade.js. https://github.com/carlos8f/zenbot/blob/master/commands/trade.js#L313
For some reason, it is returning NaN when doing the calculation. To get past it until I can look at it more, change this line to what you need. 1 day should work but if you are trading a larger period, you need to make it bigger. https://github.com/carlos8f/zenbot/blob/master/commands/trade.js#L335
Current
var backfiller = spawn(path.resolve(__dirname, '..', zenbot_cmd), ['backfill', so.selector, '--days', days])Fix
var backfiller = spawn(path.resolve(__dirname, '..', zenbot_cmd), ['backfill', so.selector, '--days', 1])
I changed the settings as you mentioned and I noticed that backfill is running in pre-roll phase. However, trade command does not take into account the pre-roll data then signals are not computed (yet?). I use a period of 1h . I will wait one additional day to see whether signals are fired. For information, it happened with Binance exchange.