We investigate different and opposite characteristics of momentum and mean reversion trading strategies. By identifying and analyzing the trends, we attempt to trade with respective strategy when they are advantageous to optimize the alpha.
You can uncomment different parts of the code and alter values to test different things.