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

I have been trying to control leverage from a pipeline and I have not been successful in a couple of methods but here is some sample code of how I controlled my leverage. It is based off a pipeline and then uses intraday data to determine which stocks are best to buy.