Skip to content

How to run portfolio optimization backtest with model forecasts? #139

Answered by enzbus
mtomic-quant asked this question in Q&A
Discussion options

You must be logged in to vote

I think if you were starting from SinglePeriodOptimization (which you should anyways) it would be clearer to you how it's done.

The datetime indexes are used to provide data for many times of execution, so you can back-test the policy. If you simply want one execution (e.g., for using Cvxportfolio online) you may as well pass a bunch of Series indexed by the assets names. This is all explained in the passing data manual section.

For multi-period optimization policies, if you want to pass data, the datetimes for which the predictions are made are not used, only the concept of "how many steps ahead" is used. So you have dataframes that are all indexed by the time of execution, and each pred…

Replies: 3 comments 14 replies

Comment options

You must be logged in to vote
6 replies
@mtomic-quant
Comment options

@enzbus
Comment options

@enzbus
Comment options

@mtomic-quant
Comment options

@enzbus
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
8 replies
@enzbus
Comment options

@mtomic-quant
Comment options

@enzbus
Comment options

Answer selected by mtomic-quant
@mtomic-quant
Comment options

@enzbus
Comment options

@mtomic-quant
Comment options

@enzbus
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants