Hi,
My algo fails Contest entry because of too much leverage. When I plot Leverage to special data, I see that I get a value of 2 for a day which has this portfolio. When I look at the portfolio, i have roughly equal dollar amounts in longs, shorts and cash. I would expect a leverage value of <1 since the shorts are less than cash. How does Quantopian arrive at a leverage value of 1.99 on this day?