Hello! I am new to Quantconnect. I made a code to short when the VIX index is at or above 40 and wait 10 days to buy back the SPY once the VIX index falls below 40. I am experiencing trouble with my longs and shorts. In my code, I write:

self.SetHoldings("SPY", -1)

However, when I look at the equity short ratio, it is at 0.5 and not 1. Sometimes, it even goes below -1. Similarly, my long ratio is supposed to drop down to 0, however it decreases only to 0.36. Can anyone help me with this problem? How do I get my equity short ratio to be 1? Thank you for your help!