DeviaVir / zenbot

Zenbot is a command-line cryptocurrency trading bot using Node.js and MongoDB.
MIT License
8.22k stars 2.04k forks source link

Modelfile /home/.../tools/zenbot/none does not exist. #1278

Open firepol opened 6 years ago

firepol commented 6 years ago

Testing zenbot unstable branch (just updated) on ubuntu:

I did train first:

./zenbot.sh train cexio.XRP-USD --days_training 30 --period 10m

Then I renamed the model to cexio_10m.json and run:

./zenbot.sh sim cexio.XRP-USD --strategy forex_analytics ./models/cexio_10m.json --period 10m Modelfile /home/../zenbot/none does not exist.

As you can see I get an error that the model doest not exist, but it exists...

I did try actually running the command using the super long model name and I was thinking the name had some invalid characters.

defkev commented 6 years ago

...none does not exist

He's not parsing your modelfile arg causing it to fall back to the default, which is none

Does it work using the absolute path? e.g. /home/whatever/zenbot/models/cexio_10m.json

firepol commented 6 years ago

Even with the full path, same error: Modelfile /home/myuser/tools/zenbot/none does not exist.

Looks like a bug to me, see model in attachment... the json looks good, isn't it?

cexio_10m.json.txt

defkev commented 6 years ago

As suspected, modelfile doesn't get parsed.

Use --modelfile ./models/whatever.json like:

./zenbot.sh sim cexio.XRP-USD --strategy forex_analytics --modelfile ./models/cexio_10m.json --period 10m