Referring to Lecture 38 - Example: Long-Short Equity Algorithm, I tried to switch the longs to shorts and shorts to longs on lines 121 and 122, but when I ran the backtest, it didn't change anything. The resulting backtest was the same which can't be right. I basically just wanted to invert the original strategy and bet against it in the backtest just to see what happens.
I tried changing this...
longs = combined_factor.top(TOTAL_POSITIONS//2, mask=universe)
shorts = combined_factor.bottom(TOTAL_POSITIONS//2, mask=universe)
to this...
shorts = combined_factor.top(TOTAL_POSITIONS//2, mask=universe)
longs = combined_factor.bottom(TOTAL_POSITIONS//2, mask=universe)