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

deleted

1 response
    context.long_weight = 1.0  
    context.short_weight = 1.0  

fyi 2x lev -- ignore me if that is by design...

def before_trading_start(context, data):  
    record(lev = context.account.leverage)