Application of Machine Learning With News Sentiment in Stock Trading Strategies

Tse-Mao Lin, Jing-Long Yu, Jhih-Wei Chen, Chin-Sheng Huang

Abstract


This study empirically tested the feasibility of machine learning in trading strategies using technical indicators and news information as the feature variables for machine learning. Six indicators were adopted in this study, including moving average (MA), moving average convergence/divergence (MACD), relative strength index (RSI), stochastic oscillator (KD), and on-balance volume (OBV), and news sentiment ratio (SR) developed in this study via text mining. Selected machine learning models, including support vector machine (SVM), eXtreme Gradient Boosting (XGBoost), recurrent neural network (RNN), and long short-term memory (LSTM), were also employed for investigation. This study backtested the daily historical data of the constituent stocks in the Taiwan Top 50 ETF from January 1, 2003, to December 31, 2018, using three categories of trading strategies along with conventional and countertrend operations. The following conclusions were drawn after analyzing the performance of these trading strategies via various means: 1. Technical indicators such as MA, MACD, and RSI performed poorly in most cases. 2. Specific parameters were of relative importance to several technical indicators, including MA, MACD, RSI, and OBV. 3. OBV was a technical indicator with a positive impact on trading strategies. 4. The machine learning-based XGBoost models were able to outperform trading strategies with technical indicators under specific scenarios. 5. SR, the news sentiment ratio developed in this study, could not significantly improve the performance of machine learning models. The empirical results of this study suggest that these machine-learning models are capable of analyzing long-term stock price movements to some extent.


Full Text:

PDF


DOI: https://doi.org/10.5430/ijfr.v14n3p1

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

This journal is licensed under a Creative Commons Attribution 4.0 License.


International Journal of Financial Research
ISSN 1923-4023(Print)ISSN 1923-4031(Online)

 

Copyright © Sciedu Press

To make sure that you can receive messages from us, please add the 'Sciedupress.com' domain to your e-mail 'safe list'. If you do not receive e-mail in your 'inbox', check your 'bulk mail' or 'junk mail' folders.