Closed ynzheng closed 5 years ago
I can not reproduce your error, backtesting is working for me.
Please ensure you are running the latest version of WolfBot and paste your log file here. It seems WolfBot is unable to load the /config dir with the files. Does the dropdown menu on the configuration page show config files?
the configuration page works fine
yn@hostdoc:~/github.com/ekliptor/bot/build$ node app.js --debug --config=Noop --trader=RealTimeTrader --noUpdate --noBrowser
2018-10-17 19:42:03 - warn: Uncaught Exception
2018-10-17 19:42:03 - warn: {"message":"listen EADDRINUSE :::8331","stack":"Error: listen EADDRINUSE :::8331\n at Server.setupListenHandle [as _listen2] (net.js:1286:14)\n at listenInCluster (net.js:1334:12)\n at Server.listen (net.js:1421:7)\n at Object.
I can see that you are running multiple bots on the same port because of the EADDRINUSE :::8332 error. You should use the -p1234 argument on startup to assign different ports.
Other than that I don't see an error related to missing config files. What operating system are you using? I also just published the latest version of my packages apputils and bit-models. Please run yarn install again to ensure you have the latest versions and try again.
infact I am runing only one bots on debian 9.5 with the latest version ( 8713760..aaed072 master)
anyway I will delete all and rebuild again to see and let you khnow here.thanks
node -v v10.11.0
yarn -v 1.10.1
mongo --version MongoDB shell version v4.0.2 git version: fc1573ba18aee42f97a3bb13b67af7d837826b47 OpenSSL version: OpenSSL 1.1.0f 25 May 2017 allocator: tcmalloc modules: none build environment: distmod: debian92 distarch: x86_64 target_arch: x86_64
tsc -v Version 3.1.1
uname -a Linux hostdoc 4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u4 (2018-08-21) x86_64 GNU/Linux
webpack --version 4.20.2
cat /etc/debian_version 9.5
I am running it on debian too, so it's really strange. But the EADDRINUSE :::8332
error from you log above definitely means that the port was in use. So if you only run 1 WolfBot, you didn't shut it down.
I have no idea why your Backtester doesn't show config files, especially since you see them on the configuration page. You could debug this yourself by checking what the Promise of ConfigEditor.listConfigFiles()
in BacktestingUpdater.ts
line 87 returns.
now i see an error in your log related to the Backtesting view: {"message":"configLocal_1.currencyImportMap is not iterable","stack":"TypeError: configLocal_1.currencyImportMap is not iterable\n at BacktestingUpdater.getCurrencyPairImportMap (/home/yn/github.com/ekliptor/WolfBot/src/WebSocket/BacktestingUpdater.ts:327:25)\
I updated the configLocal-sample.ts. Please use the new one and try again, the error should be gone
it works great! well done!
let me test more ...
thanks
backtesting(few days) takes some hours without any information on webpage...
can this backtesting run only on bash command with log and verbose info?
If you click on the blue arrow in the lower right corner you will see a the log with the current progress. i might add a progress bar for imports some time later
also you can start it from console: https://forum.wolfbot.org/threads/importing-large-amounts-of-trades-for-backtesting.4/#post-8
that's another advantage of the cloud version: imported trades are already available
2018-10-18 15:47:30 - error: Importing multiple currency pairs from Binance is not supported
doest the cloud version support Binance And Huobipro?
Import and backtesting can always only be done 1 currency at a time (the exchange also has API rate limits).
the cloud version currently has the currency pairs listed here pre imported: https://forum.wolfbot.org/threads/backtesting.20/#post-37
But if you are interested in popular pairs of Binance I can add them to the auto import of the cloud version
after installation and boot with "node app.js --debug --config=Noop --trader=RealTimeTrader --noUpdate --noBrowser"
following steps in https://forum.wolfbot.org/threads/backtesting.20/#lg=post-37&slide=1
"Go to the "Backtesting" page and select ...." no Backtesting Configuration can be choosed ,cos it `s empty
:(