Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Test C, 10-securities

Way riskier (10 securities instead of 5 at a time) QCU.

    #Other parameters  
    context.top_n_roe_to_buy = 50 #First sort by ROE  
    context.relative_momentum_lookback = 126 #Momentum lookback  
    context.momentum_skip_days = 10  
    context.top_n_relative_momentum_to_buy = 10 #Number to buy