We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ab-trader, first of all, thanks for the addons !
I noticed that backtrader_addons/analyzers/trade_list.py can give a divide by 0 error :
line 78, in notify_trade pbar = pnl / barlen ZeroDivisionError: float division by zero
I guess this happen when entry and exit occur in the same bar. Looks like checking barlen for 0 value would be safer
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Ab-trader, first of all, thanks for the addons !
I noticed that backtrader_addons/analyzers/trade_list.py can give a divide by 0 error :
I guess this happen when entry and exit occur in the same bar.
Looks like checking barlen for 0 value would be safer
The text was updated successfully, but these errors were encountered: