Quantopian's community platform is shutting down. Please read this post for more information and download your code.
Back to Community
Adding the volume factor for a longer period based on the modified backtest

Then I add the volume factor in this backtest and let the other code unchanged. The result is as follows: