Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Min leverage (0.8x)

Hi, I'm new in Quantopian and I'm working in a trading algorthim with RSI, my code works well but the min leverage is below than 0.8, how I can fix that?
I have read lots of posts and I didn't find something that can help me

1 response

I haven't looked carefully at your code but if you set:

MAX_SHORT_POSITION_SIZE = 0.01  
MAX_LONG_POSITION_SIZE = 0.01  

You need at least 100 long and 100 short positions to use all your available leverage. I'd double check that the pipeline output is giving me enough stocks to reach that target (100 long/100 short).