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
Hi,
It's good to see the stats include SQN. According to https://evilspeculator.com/tools-section/concepts/:
SQN = root(n) * expectancy / stdev(R)
but I suspect it's not correctly calculated:
backtesting.py/backtesting/_stats.py
Line 139 in 77f4c46
as it's not using the result of expectancy:
Line 138 in 77f4c46
Unless I am missing something?
Thanks!
The text was updated successfully, but these errors were encountered:
If we look slightly higher up:
Lines 72 to 73 in 77f4c46
returns
pl
I see Van Tharp mentions expectancy and R-multiples (reward/risk), which are percent-based, but I modeled it after backtrader and thought those pnl were absolute values: https://github.com/mementum/backtrader/blob/e2674b1690f6366e08646d8cfd44af7bb71b3970/backtrader/analyzers/sqn.py#L75-L78
pnl
I guess we might be using the wrong values then. 😬
Sorry, something went wrong.
No branches or pull requests
Hi,
It's good to see the stats include SQN. According to https://evilspeculator.com/tools-section/concepts/:
but I suspect it's not correctly calculated:
backtesting.py/backtesting/_stats.py
Line 139 in 77f4c46
as it's not using the result of expectancy:
backtesting.py/backtesting/_stats.py
Line 138 in 77f4c46
Unless I am missing something?
Thanks!
The text was updated successfully, but these errors were encountered: