Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Short logic with legal leverage

My algorithm is below.

I have solely long positions and have managed to keep a legal leverage with that.

However, when i tried to start shorting, leverage was crazy.

So how do I monitor and maintain leverage in shorts (i.e. tracking shorts, cash, etc.)

3 responses

any help?

You can borrow code/logic from here

hmmmm, can someone explain what that is?

srry, relatively new at quantopian