Applying Machine Learning to Trading Strategies: Using Logistic Regression to Build Momentum-Based Trading Strategies