Next Article in Journal
Micromechanics-Based Strength Criterion for Root-Reinforced Soil
Next Article in Special Issue
Regime-Dependent Graph Neural Networks for Enhanced Volatility Prediction in Financial Markets
Previous Article in Journal
Certain Geometric Investigations of Three Normalized Bessel-Type Functions of a Complex Variable
Previous Article in Special Issue
Explainable Machine Learning Financial Econometrics for Digital Inclusive Finance Impact on Rural Labor Market
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Label-Driven Optimization of Trading Models Across Indices and Stocks: Maximizing Percentage Profitability

by
Abdulmohssen S. AlRashedy
* and
Hassan I. Mathkour
Department of Computer Science, College of Computer and Information Sciences, King Saud University, Riyadh 11451, Saudi Arabia
*
Author to whom correspondence should be addressed.
Mathematics 2025, 13(23), 3889; https://doi.org/10.3390/math13233889
Submission received: 8 November 2025 / Revised: 29 November 2025 / Accepted: 3 December 2025 / Published: 4 December 2025
(This article belongs to the Special Issue Financial Econometrics and Machine Learning)

Abstract

Short-term trading presents a high-dimensional prediction problem, where the profitability of trading signals depends not only on model accuracy but also on how financial labels are defined and aligned with market dynamics. Traditional approaches often apply uniform modeling choices across assets, overlooking the asset-specific nature of volatility, liquidity, and market response. In this work, we introduce a structured, label-aware machine learning pipeline aimed at maximizing short-term trading profitability across four major benchmarks: S&P 500 (SPX), NASDAQ-100 (NDX), Dow Jones Industrial Average (DJI), and the Tadāwul All-Share Index (TASI and twelve of their most actively traded constituents). Our solution systematically evaluates all combinations of six model types (logistic regression, support vector machines, random forest, XGBoost, 1-D CNN, and LSTM), eight look-ahead labeling windows (3 to 10 days), and four feature subset sizes (44, 26, 17, 8 variables) derived through Random Forest permutation-importance ranking. Backtests are conducted using realistic long/flat simulations with zero commission, optimizing for Percentage Profit and Profit Factor on a 2005–2021 train/2022–2024 test split. The central contribution of the framework is a labeling-aware search mechanism that assigns to each asset its optimal combination of model type, look-ahead horizon, and feature subset based on out-of-sample profitability. Empirical results show that while XGBoost performs best on average, CNN and LSTM achieve standout gains on highly volatile tech stocks. The optimal look-ahead window varies by market from 3-day signals on liquid U.S. shares to 6–10-day signals on the less-liquid TASI universe. This joint model–label–feature optimization avoids one-size-fits-all assumptions and yields transferable configurations that cut grid-search cost when deploying from index level to constituent stocks, improving data efficiency, enhancing robustness, and supporting more adaptive portfolio construction in short-horizon trading strategies.
Keywords: markets; label horizon; machine learning; model selection; short-term trading markets; label horizon; machine learning; model selection; short-term trading

Share and Cite

MDPI and ACS Style

AlRashedy, A.S.; Mathkour, H.I. Label-Driven Optimization of Trading Models Across Indices and Stocks: Maximizing Percentage Profitability. Mathematics 2025, 13, 3889. https://doi.org/10.3390/math13233889

AMA Style

AlRashedy AS, Mathkour HI. Label-Driven Optimization of Trading Models Across Indices and Stocks: Maximizing Percentage Profitability. Mathematics. 2025; 13(23):3889. https://doi.org/10.3390/math13233889

Chicago/Turabian Style

AlRashedy, Abdulmohssen S., and Hassan I. Mathkour. 2025. "Label-Driven Optimization of Trading Models Across Indices and Stocks: Maximizing Percentage Profitability" Mathematics 13, no. 23: 3889. https://doi.org/10.3390/math13233889

APA Style

AlRashedy, A. S., & Mathkour, H. I. (2025). Label-Driven Optimization of Trading Models Across Indices and Stocks: Maximizing Percentage Profitability. Mathematics, 13(23), 3889. https://doi.org/10.3390/math13233889

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop