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
In traderclient, 'pprofit' of client.bills()['tx'] is wrong.
Steps to reproduce the behavior:
Recorrect this calculation error.
{'sec': '600600.XSHG', 'entry_time': '2022-07-19T15:00:00', 'exit_time': '2022-08-01T10:00:00', 'entry_price': 95.12607186174652, 'exit_price': 106.390005664908, 'shares': 23.1, 'fee': 0.25, 'profit': 259.9468708530302, 'pprofit': 11.253111292338968, 'window': 10}]
backtest version: backtesting==0.4.8
The text was updated successfully, but these errors were encountered:
🐞 fix: calculation error in client.bills
d116385
#22
zillionare
No branches or pull requests
Describe the bug
In traderclient, 'pprofit' of client.bills()['tx'] is wrong.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Recorrect this calculation error.
Screenshots
{'sec': '600600.XSHG',
'entry_time': '2022-07-19T15:00:00',
'exit_time': '2022-08-01T10:00:00',
'entry_price': 95.12607186174652,
'exit_price': 106.390005664908,
'shares': 23.1,
'fee': 0.25,
'profit': 259.9468708530302,
'pprofit': 11.253111292338968,
'window': 10}]
Version
backtest version:
backtesting==0.4.8
The text was updated successfully, but these errors were encountered: