Discussion about this post

User's avatar
Mike Van's avatar

Why do you use a log here: portfolio_df['returns'] = np.log(portfolio_df['portfolio'] / portfolio_df['portfolio'].shift(1))

From what I see, portfolio_df['portfolio'] is essentially the dot product of (daily close & johansen eigenvector) right?

Expand full comment
dmitry's avatar

Isn't it backtest on train data period?

Expand full comment

No posts