Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Leverage Issue

I've been playing around and I've come up with this. I copied this from another algo a while back, but I have leverage issues.

1 response

This beat the original by over 2 percentage points in profit per dollars activated. If anyone is interested in why, please ask.

Ni hao Hao. What happens if you return context.leverage to the original value of 1.5? (In the original, that caused the amount put at risk to hit over 4 times the starting capital).