Combining Machine Learning Classifiers for Stock Trading with Effective Feature Extraction

A. K. M. Amanat Ullah, Fahim Imtiaz, Miftah Uddin Md Ihsan, Md. Golam Rabiul Alam, Mahbub Majumdar
7/28/2021
q-fin.TRcs.CEcs.LG

Official code: amanat9/QuantopianThesis (8 stars, Jupyter Notebook, last commit 2023-03-26).

Abstract

The unpredictability and volatility of the stock market render it challenging to make a substantial profit using any generalised scheme. Many previous studies tried different techniques to build a machine learning model, which can make a significant profit in the US stock market by performing live trading.

Show full abstract

However, very few studies have focused on the importance of finding the best features for a particular trading period. Our top approach used the performance to narrow down the features from a total of 148 to about 30. Furthermore, the top 25 features were dynamically selected before each time training our machine learning model. It uses ensemble learning with four classifiers: Gaussian Naive Bayes, Decision Tree, Logistic Regression with L1 regularization, and Stochastic Gradient Descent, to decide whether to go long or short on a particular stock. Our best model performed daily trade between July 2011 and January 2019, generating 54.35% profit. Finally, our work showcased that mixtures of weighted classifiers perform better than any individual predictor of making trading decisions in the stock market.

View on arXivView PDF

Code Implementations(1)

83Jupyter Notebook, PythonFeb 15, 20193 years ago

Similar Papers

Cite this paper

@article{ullah2021combining,
  title  = {Combining Machine Learning Classifiers for Stock Trading with Effective Feature Extraction},
  author = {A. K. M. Amanat Ullah and Fahim Imtiaz and Miftah Uddin Md Ihsan and Md. Golam Rabiul Alam and Mahbub Majumdar},
  year   = {2021},
  eprint = {2107.13148},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2107.13148}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2107.13148.svg)](https://codeofpaper.com/paper/2107.13148)

Discussion