Comments (6)
I think both libraries you suggest are interesting and I like the tear sheet concept from Pyfolio and it would be good to link this to a bt object but then you’d want to ensure empirical was used throughout bt to avoid inconsistent risk calculations.
I don’t know if the portfolio optimisation functionality etc. sits naturally in these libraries so perhaps ffn should use empyrical for the generic functions where relevant?
There seems to be lots of interesting functionality in Quantopian not exposed in Zipline too which I’d be interested in seeing but not necessarily adding.
I very much like the simplicity of bt and challenging to maintain this and evolve the library at the same time. Perhaps experiment in a second branch?
from ffn.
I chose bt because of the high readability and elegant code structure. Empyrical seems to share that simplicity.
Pyfoilio seems not to completely cover the functionality of ffn, though, and I having written custom data getters, will I still be able to use them? ffn is also easy to overload / hack.
Pyfolio seems to have some odd choices. For instance, pyfolio/risk.py seems to be entirely equity-specific.
from ffn.
I haven't looked at these libraries, so hard to comment right now. That being said, I'm all for not re-inventing the wheel, especially if there is a large community around another library. If the other libraries are more active, then it may just be a question of adding the missing functionality via PRs.
from ffn.
@atisharma I wouldn't replace anything that messes up your code. In fact, let me try out the libraries some more to understand the what the differences would be. I was just throwing out the idea because the libraries seem to be similar.
from ffn.
Totally agree on keeping it consistent and that optimization doesn't really fit in empyrical. I think creating a second branch of bt that uses empyrical calculations is a good idea.
from ffn.
I just tried to use some tools from empyrical and I gave up after a couple of hours. It just seemed like more work than what it was worth. Instead, I decided to start using more numpy functions like power and replacing pandas std() with numpy std(,ddof=1).
We can revisit this if someone has a different opinion.
from ffn.
Related Issues (20)
- ffn plot on pycharm HOT 1
- TypeError: string indices must be integers HOT 4
- TypeError: string indices must be integers HOT 1
- divide by zero encountered in true_divide
- Cannot fetch data
- Is ffn still working?
- Basic example on fetching data fails with TypeError (Python 3.11 and 3.11.2) both on Macos and Linux Ubuntu 22.04 HOT 1
- How can I correct this error? HOT 2
- Ulcer Index not according to definiton (miscalculation)
- ImportError: cannot import name 'Panel' from 'pandas'
- Add yfinance.pdr_override() to readme example
- yfinance dependency triggers import fail in downstream project
- Code improvement _erc_weights_slsqp > fitness function
- TypeError from ufunc `isinf` in `calc_inv_vol_weights`
- importing ffn is changing matplotlib settings
- in python 11,there are some warnings about ffn HOT 1
- Please give a way to define a custom data source
- Shorts?
- Storing Statistics into Excel HOT 1
- Does the library support dividends? HOT 1
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 ffn.