A Novel Loss Function for Deep Learning Based Daily Stock Trading System
- URL: http://arxiv.org/abs/2502.17493v2
- Date: Fri, 07 Nov 2025 23:27:12 GMT
- Title: A Novel Loss Function for Deep Learning Based Daily Stock Trading System
- Authors: Ruoyu Guo, Haochen Qiu, Xuelun Hou,
- Abstract summary: We introduce a return-weighted loss function that will drive top growth while providing the ML models a limited amount of information.<n>Our best models achieve 61.73% annual return on daily rebalancing with an annualized Sharpe Ratio of 1.18 over 1340 testing days from 2019 to 2024, and 37.61% annual return with an annualized Sharpe Ratio of 0.97 over 1360 testing days from 2005 to 2010.
- Score: 0.41762822351723455
- License: http://creativecommons.org/licenses/by/4.0/
- Abstract: Making consistently profitable financial decisions in a continuously evolving and volatile stock market has always been a difficult task. Professionals from different disciplines have developed foundational theories to anticipate price movement and evaluate securities such as the famed Capital Asset Pricing Model (CAPM). In recent years, the role of artificial intelligence (AI) in asset pricing has been growing. Although the black-box nature of deep learning models lacks interpretability, they have continued to solidify their position in the financial industry. We aim to further enhance AI's potential and utility by introducing a return-weighted loss function that will drive top growth while providing the ML models a limited amount of information. Using only publicly accessible stock data (open/close/high/low, trading volume, sector information) and several technical indicators constructed from them, we propose an efficient daily trading system that detects top growth opportunities. Our best models achieve 61.73\% annual return on daily rebalancing with an annualized Sharpe Ratio of 1.18 over 1340 testing days from 2019 to 2024, and 37.61\% annual return with an annualized Sharpe Ratio of 0.97 over 1360 testing days from 2005 to 2010. The main drivers for success, especially independent of any domain knowledge, are the novel return-weighted loss function, the integration of categorical and continuous data, and the ML model architecture. We also demonstrate the superiority of our novel loss function over traditional loss functions via several performance metrics and statistical evidence.
Related papers
- Robust Reinforcement Learning in Finance: Modeling Market Impact with Elliptic Uncertainty Sets [57.179679246370114]
In financial applications, reinforcement learning (RL) agents are commonly trained on historical data, where their actions do not influence prices.<n>During deployment, these agents trade in live markets where their own transactions can shift asset prices, a phenomenon known as market impact.<n>Traditional robust RL approaches address this model misspecification by optimizing the worst-case performance over a set of uncertainties.<n>We develop a novel class of elliptic uncertainty sets, enabling efficient and tractable robust policy evaluation.
arXiv Detail & Related papers (2025-10-22T18:22:25Z) - Trade in Minutes! Rationality-Driven Agentic System for Quantitative Financial Trading [57.28635022507172]
TiMi is a rationality-driven multi-agent system that architecturally decouples strategy development from minute-level deployment.<n>We propose a two-tier analytical paradigm from macro patterns to micro customization, layered programming design for trading bot implementation, and closed-loop optimization driven by mathematical reflection.
arXiv Detail & Related papers (2025-10-06T13:08:55Z) - Increase Alpha: Performance and Risk of an AI-Driven Trading Framework [0.0]
There are inefficiencies in financial markets, with unexploited patterns in price, volume, and cross-sectional relationships.<n>At Increase Alpha, we built a deep-learning framework that maps over 800 U.S. equities into daily directional signals.<n>We evaluate its real-time performance through transparent, industry standard metrics.
arXiv Detail & Related papers (2025-09-20T14:37:02Z) - Finance-Grounded Optimization For Algorithmic Trading [0.0]
We first introduce financially grounded loss functions derived from key quantitative finance metrics, including the Sharpe ratio, Profit-and-Loss (PnL), and Maximum Draw down.<n>Our findings demonstrate that the proposed loss functions, in conjunction with turnover regularization, outperform the traditional mean squared error loss for return prediction tasks.<n>The study shows that financially grounded metrics enhance predictive performance in trading strategies and portfolio optimization.
arXiv Detail & Related papers (2025-09-04T09:18:54Z) - Advancing Exchange Rate Forecasting: Leveraging Machine Learning and AI for Enhanced Accuracy in Global Financial Markets [0.0]
This study leverages historical USD/BDT exchange rate data from 2018 to 2023, sourced from Yahoo Finance.<n>A Long Short-Term Memory (LSTM) neural network is employed, achieving an exceptional accuracy of 99.449%.<n>A Gradient Boosting (GBC) is applied for directional prediction, with backtesting on a $10,000 initial capital revealing a 40.82% profitable trade rate.<n>The study analyzes historical trends, showing a decline in BDT/USD rates from 0.012 to 0.009, and incorporates normalized daily returns to capture volatility.
arXiv Detail & Related papers (2025-06-11T15:22:07Z) - FinTSB: A Comprehensive and Practical Benchmark for Financial Time Series Forecasting [58.70072722290475]
Financial time series (FinTS) record the behavior of human-brain-augmented decision-making.
FinTSB is a comprehensive and practical benchmark for financial time series forecasting.
arXiv Detail & Related papers (2025-02-26T05:19:16Z) - Agent Trading Arena: A Study on Numerical Understanding in LLM-Based Agents [69.58565132975504]
Large language models (LLMs) have demonstrated remarkable capabilities in natural language tasks.<n>We present the Agent Trading Arena, a virtual zero-sum stock market in which LLM-based agents engage in competitive multi-agent trading.
arXiv Detail & Related papers (2025-02-25T08:41:01Z) - HedgeAgents: A Balanced-aware Multi-agent Financial Trading System [20.48571388047213]
Large Language Models (LLMs) and Agent-based models exhibit promising potential in real-time market analysis and trading decisions.
They still experience a significant -20% loss when confronted with rapid declines or frequent fluctuations.
This paper introduces an innovative multi-agent system, HedgeAgents, aimed at bolstering system via hedging robustness'' strategies.
arXiv Detail & Related papers (2025-02-17T04:13:19Z) - AlphaSharpe: LLM-Driven Discovery of Robust Risk-Adjusted Metrics [3.729242965449096]
Financial metrics like the Sharpe ratio are pivotal in evaluating investment performance by balancing risk and return.<n>Traditional metrics often struggle with robustness and generalization, particularly in dynamic and volatile market conditions.<n>This paper introduces AlphaSharpe, a novel framework leveraging large language models (LLMs) to iteratively evolve and optimize financial metrics.
arXiv Detail & Related papers (2025-01-23T11:35:17Z) - AI in Investment Analysis: LLMs for Equity Stock Ratings [0.2916558661202724]
This paper explores the application of Large Language Models (LLMs) to generate multi-horizon stock ratings.
Our study addresses these issues by leveraging LLMs to improve the accuracy and consistency of stock ratings.
Our results show that our benchmark method outperforms traditional stock rating methods when assessed by forward returns.
arXiv Detail & Related papers (2024-10-30T15:06:57Z) - When AI Meets Finance (StockAgent): Large Language Model-based Stock Trading in Simulated Real-world Environments [55.19252983108372]
We have developed a multi-agent AI system called StockAgent, driven by LLMs.
The StockAgent allows users to evaluate the impact of different external factors on investor trading.
It avoids the test set leakage issue present in existing trading simulation systems based on AI Agents.
arXiv Detail & Related papers (2024-07-15T06:49:30Z) - Quantformer: from attention to profit with a quantitative transformer trading strategy [1.6006550105523192]
This work collects more than 5,000,000 rolling data of 4,601 stocks in the Chinese capital market from 2010 to 2019.
The results of this study demonstrated the model's superior performance in predicting stock trends compared with other 100 factor-based quantitative strategies.
arXiv Detail & Related papers (2024-03-30T17:18:00Z) - Joint Latent Topic Discovery and Expectation Modeling for Financial
Markets [45.758436505779386]
We present a groundbreaking framework for financial market analysis.
This approach is the first to jointly model investor expectations and automatically mine latent stock relationships.
Our model consistently achieves an annual return exceeding 10%.
arXiv Detail & Related papers (2023-06-01T01:36:51Z) - Can ChatGPT Forecast Stock Price Movements? Return Predictability and Large Language Models [51.3422222472898]
We document the capability of large language models (LLMs) like ChatGPT to predict stock price movements using news headlines.
We develop a theoretical model incorporating information capacity constraints, underreaction, limits-to-arbitrage, and LLMs.
arXiv Detail & Related papers (2023-04-15T19:22:37Z) - Factor Investing with a Deep Multi-Factor Model [123.52358449455231]
We develop a novel deep multi-factor model that adopts industry neutralization and market neutralization modules with clear financial insights.
Tests on real-world stock market data demonstrate the effectiveness of our deep multi-factor model.
arXiv Detail & Related papers (2022-10-22T14:47:11Z) - DeepVol: Volatility Forecasting from High-Frequency Data with Dilated Causal Convolutions [53.37679435230207]
We propose DeepVol, a model based on Dilated Causal Convolutions that uses high-frequency data to forecast day-ahead volatility.
Our empirical results suggest that the proposed deep learning-based approach effectively learns global features from high-frequency data.
arXiv Detail & Related papers (2022-09-23T16:13:47Z) - Learning Financial Asset-Specific Trading Rules via Deep Reinforcement
Learning [0.6445605125467573]
Various asset trading rules are proposed experimentally based on different technical analysis techniques.
Deep reinforcement learning (DRL) methods are employed to learn the new trading rules for each asset.
The proposed model in this work outperformed the other state-of-the-art models in learning single asset-specific trading rules.
arXiv Detail & Related papers (2020-10-27T10:59:53Z) - Uncertainty-Aware Lookahead Factor Models for Quantitative Investing [25.556824322478935]
We first show through simulation that if we could select stocks via factors calculated on future fundamentals, that our portfolios would far outperform standard factor models.
We propose lookahead factor models which plug these predicted future fundamentals into traditional factors.
In retrospective analysis, we leverage an industry-grade portfolio simulator to show simultaneous improvement in annualized return and Sharpe ratio.
arXiv Detail & Related papers (2020-07-07T00:18:40Z)
This list is automatically generated from the titles and abstracts of the papers in this site.
This site does not guarantee the quality of this site (including all information) and is not responsible for any consequences.