Comments (4)
I also changed to use https://github.com/Lumiwealth/quantstats_lumi
No all problems i had with the original library are fixed, check it out.
from quantstats.
Bump
from quantstats.
Try this:
qs.reports.html(returns_df.sharpe, "SPY", rf=0.000066, output = "..path../Strategy Tearsheets/strategy_report.html", compunded=False)
Note also that some others are now maintaining @ https://github.com/Lumiwealth/quantstats_lumi
from quantstats.
Thank you @DannyMartens - the compound = False has not changed much.
I have also tried installing quantstats_lumi as well and I am comparing the results with quantstats.
I can see for now that Lumi overestimates (circa 10%) the Sharpe Ratio of the other library quantstats - anyway I seem to understand the Lumi version is better maintained? Anyway, this difference does not bother me too much
Can you please let me know what is the right way of entering the Risk Free value in the report.html?
If we have a US 10 yrs at 4.61% as of now, in the html.report function I am using the Avg RF Daily Returns which according to my calculations (for my time window of observation) would be 0.000066, so I am entering 0.000066 as below:
qs.reports.html(returns_df.sharpe, "SPY", rf=0.000066, output = "/Users/.../Strategy Tearsheets/strategy_report.html")
Is this the right way to use RF rate here?
from quantstats.
Related Issues (20)
- Deprecated code in stats.py expected_return() HOT 1
- Calculation of 3Y and 5Y annualized return date lag HOT 1
- report.py's cagr function doesn't include the days per year options HOT 1
- Fix kelly_criterion formula for investment scenario HOT 1
- draw visuals in plotly HOT 1
- Jupyter import issue: `magic(...)` is deprecated HOT 1
- Generate full html_report but save as image
- Datetime issue
- "Strategy" HOT 2
- is _qtd bug ? HOT 1
- utils.make_index : TypeError: unsupported operand type(s) for +: 'float' and 'str' HOT 8
- Quantstats.plot Cannot Generate Plot HOT 1
- Errors in calculating drawdowns? HOT 2
- CAGR calculations HOT 2
- Issue with cagr function in stats HOT 2
- TypeError: pivot() takes 1 positional argument but 4 were given in quantstats.reports.html HOT 1
- monthly returns plot do not shouw the returns num in figure HOT 4
- Suggestion for Improving the CAGR Calculation in Your Package HOT 3
- AttributeError: module 'numpy' has no attribute 'product' HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from quantstats.