New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Grid strategy not working #282
Comments
yes, you should get trades, I am checking it |
I downloaded your config and run backtest it and here is my output:
|
I can see the arbitrages were triggered:
|
@arthurwolf just to confirm: are you using the latest main branch version? |
I checked the logs, it looks like you're using older version? |
I used this command as per the documentation: That does not install the latest version? (thanks a lot for answering/helping, so appreciated! any help you provide, I'll strive to transform into PRs improving documentation as I can) |
I checked, and https://raw.githubusercontent.com/c9s/bbgo/main/scripts/setup-grid.sh has a line: version=v1.15.4 but the github page says the latest version is 1.18.0 So I'm presuming that's the issue here. I'll try changing the script, running it again, and see if it solves the issue. |
It is now saying this: I do not understand what it is saying/asking, and requiring to press "y" means I can not automate execution, is there any way to fix this? Does this mean that for backtesting, I should use a separate database (and therefore .env file)? I know how to do that, but how will it know I'm using a separate one/not display the message? |
I have been running the command some more, and 1/2 to 1/3 of executions produce this error: (edit: it seems to happen exactly half of the time in a switch: happens, doesn't, happens, doesn't, happens etc...)
[...]
|
the mutex issue is now fixed in 47f1eaf |
The script is updated to v1.18.0 in commit d2ceb99 |
@c9s thank you very much! I'm not yet able to compile myself, so my only way to get this change is through a release, do you know when is the next time you plan on making a release? |
No matter what I do, I can't get the grid strategy to generate trades (in backtesting).
I filled/synced the data correctly using:
./bbgo backtest --exchange binance -v --sync --sync-only --sync-from 2021-11-20 --config grid.yaml
My grid.yaml is like this:
And I run it with the following command:
./bbgo backtest --exchange binance --sync-from 2021-11-01 --config grid.yaml --base-asset-baseline
And I get the following result:
Adding -v to the command, here are the initial lines (before the screen is filled with "k-line closed" lines):
I should get trades, with these same parameters, other bots (Kucoin's UI, and a modified zenbot) generate trades, but for some reason I can't get any trades to happen here.
Am I doing something wrong with the parameters or the config somehow ?
I'm using MySQL for the backend.
Any help would be extremely welcome, and whatever the solution is, I'll create a PR with the answer to add it to the documentation (if adequate).
Thanks a lot in advance!
The text was updated successfully, but these errors were encountered: