-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Would it be possible to add a positive commission? #248
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
Labels
enhancement
New feature or request
Comments
For now, why not amend the line: backtesting.py/backtesting/backtesting.py Line 667 in 73e1534
in you own copy, and try it out. Do report if anything breaks. |
Thanks! |
Did you solve it? Does it work? |
Yeah I changed the line to this and everything worked afterwards, with the results I was expecting. assert -0.1 <= commission < .1, f"commission should be between -10% -> 10%, is {commission}" |
If you PR it with text |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I'm trying to backtest a limit orders based strategy on a crypto exchange named bybit. The problem is that you get rebates when you use limit orders. But I see I can't enter positive commissions (-0.00025). Would it be possible to change this?
The text was updated successfully, but these errors were encountered: