Hi All
I just ran a previously shared algorithm that ranks stocks based on earnings yield and creates a Long-Short portfolio. I modified the algorithm to only include the stock leg and weights stocks by respective market capitalization.
However, I observe that the leverage doesn't stay at 0.5 (intended) and shoots to 1.1 in certain cases(around GFC). Attached is the backtest that details the algorithm. If someone has any idea about the leverage breakdown, please share the insights.
Shiv