Finance, Markets and Valuation (Jan 2020)

Forecasting stock market trend: a comparison of machine learning algorithms

  • Cervelló-Royo, Roberto,
  • Guijarro, Francisco

DOI
https://doi.org/10.46503/NLUF8557
Journal volume & issue
Vol. 6, no. 1
pp. 37 – 49

Abstract

Read online

Forecasting the direction of stocks markets has become a popular research topic in recent years. Different approaches have been applied by researchers to address the prediction of market trends by considering technical indicators and chart patterns from technical analysis. This paper compares the performance of four machine learning algorithms to validate the forecasting ability of popular technical indicators in the technological NASDAQ index. Since the mathematical formulas used in the calculation of technical indicators comprise historical prices they will be related to the past trend of the market. We assume that forecasting performance increases when the trend is computed on a longer time horizon. Our results suggest that the random forest outperforms the other machine learning algorithms considered in our research, being able to forecast the 10-days ahead market trend, with an average accuracy of 80%.

Keywords