-
Notifications
You must be signed in to change notification settings - Fork 258
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
MarketData <> prepare_data #86
Comments
No, is the other way round, right now only the methods inside marketsimulator are being used and I'm building outside of it their replacements with some improvements. Everything is tested (both old and new). I didn't touch the old pieces as I am building the new so no disruption there. The new pieces (marketdata etc.) are 100% tested but not currently plugged in the main api. Git branches are an overkill for this project at the moment. |
Also, sorry I didn't mean to sound dismissive of your comment, you're right that it's not great to have code duplication in the master branch (I wrote the new stuff on Monday and I thought to merge earlier but will probably have to wait for the weekend). I can share what I have in mind. |
BTW, the default UX will be like what is in the examples now, i.e.
(This is not the syntax now.) |
Ah, it's my bad then, I didn't realize that MarketData was new and should have checked the history not just the current code. |
Follow-up question on multiprocessing - can you help me understand how you envision a fully multiprocessing compatible backtest, as it was my understanding that backtesting on time |
Multiprocessing is used when doing multiple backtests (which will be largely automated once we make the hyperparameter optimization as part of the simulator logic). This was already implemented in old cvxportfolio (branch 0.0.X) and used in the example notebooks. It gets trickier with thicker classes, which is the reason why I'm refactoring the simulator logic now. Also we used to use an external |
BTW, the above is true for optimization-based strategies, for toy strategies easier parallelization might work. Everything in |
Seems there is a deprecation in progress:
cvxportfolio/cvxportfolio/simulator.py
Line 206 in df69302
is being deprecated in favor of
cvxportfolio/cvxportfolio/simulator.py
Line 555 in df69302
Is this intended to be a full deprecation? If so I would note the below (understand some of these are WIP):
add_cash_column
andremove_missing_recent
are not carried over - should they be?serve_data_policy
andserve_data_simulator
would be deprecated - looks like this would impact on how the variousCostSimulator
's would work - as compute_cost relies oncurrent_prices, current_and_past_volumes, current_and_past_returns
right?Apologies if I keep bumping onto these things because I'm pulling from the "bleeding edge" but as a general note, I'd say there are a fair amount of WIP elements in the
master
branch such that it becomes a bit hard to collaborate / stably use the latest pull. Obviously I'm glomming onto the repo unannounced, but I'd be an advocate for higher standards for pushing tomaster
(more than happy to collaborate on what they'd be).The text was updated successfully, but these errors were encountered: