-
Notifications
You must be signed in to change notification settings - Fork 327
New issue
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
Completely Rewritten as a Library #24
base: master
Are you sure you want to change the base?
Conversation
This reverts commit b09e227.
moved random matrix factor to util, since its not a strategy.
Started removing hardcoding now all strategies in the strategy folder are considered. used for loops in eiten removed strategy manager
separating calculation methods from plot methods in backtest. changed default data timeframe to 1 day.
corrected typo
migrates all vectorization to dataframes drastically improves speed.
removed all invalid stocks from dataframe
better back/forward testing
This is some excellent stuff @silvavn - do you mind running some tests just to make sure everything works. Someone else previously submitted a PR and said that they'd run all the tests. The code broke immediately after I merged the PR. |
Hi I've got this errore when testing your PR: |
Hi, where do I find this library and how to install it? |
I have completely re-written the code as a library instead of writing a CLI.
I did that because, in my humble opinion, it is more useful to use Eiten in data analysis by integrating it into pipelines and notebooks. Taking this approach, the next step would be making it a package and releasing it on PyPi.
Features:
Eiten now gracefully ignores companies that does not fit the timeline size (in the future I would like to just fill the gaps)
We can now use any future estimator desired and compare its performance
We can use any kind of covariance matrix calculation, including those from Scikit Learn
Portfolio weights are now normalized and correspond to percentages (we can just multiply by some number and output a portfolio)
Testing is now completely vectorized
And we can easily evaluate our portfolios
Disclaimer: I haven't developed unit tests. I have changed the GA a bit. This is not finance advice (obviously).