{"title":"Deep Q network with action retention for going long and short selling","authors":"Qizhou Sun , Yain-Whar Si","doi":"10.1016/j.asoc.2025.113252","DOIUrl":null,"url":null,"abstract":"<div><div>In computer-simulated games, the primary objective of adopting reinforcement learning is to achieve victory by attaining the highest hand-crafted reward, considering the optimal state-value functions across the promising trajectories. However, in the context of algorithmic trading, there is no clear goal for hand-crafting an extremely high reward for the state-value function. Besides, the exploration and exploitation of the reinforcement learning could generate a high number of unexpected <em>buy</em> and <em>sell</em> actions. These actions could lead to overlapped transactions which cannot provide a fair reward function. In order to alleviate these problems, we propose a novel trading algorithm named Deep Q Network with Action Retention (DQN-AR). Firstly, the action retention mechanism is proposed to avoid the overlapped transactions. Secondly, the divide-and-conquer approach is employed to break down the profit maximization goal into several sub-goals, with the aim of optimizing the annualized returns from all transactions throughout the entire trading period. Thirdly, we evaluate the effectiveness of the proposed approach by implementing the DQN-AR model for both long and short selling in algorithmic trading. In the experiments, we compare DQN-AR with DQN, Gated-DQN (GDQN), Simple Moving Average (SMA) and Dual Moving Average Crossover (DMAC). The experimental result shows that DQN-AR is superior to DQN, GDQN, SMA and DMAC and achieves the state-of-art trading performance both for long and short positions. In summary, our DQN-AR achieves 15.4% higher profit on average than the second top competitor approach for the long position and 101.03% higher on average for the short position.</div></div>","PeriodicalId":50737,"journal":{"name":"Applied Soft Computing","volume":"178 ","pages":"Article 113252"},"PeriodicalIF":7.2000,"publicationDate":"2025-05-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Applied Soft Computing","FirstCategoryId":"94","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S1568494625005630","RegionNum":1,"RegionCategory":"计算机科学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"COMPUTER SCIENCE, ARTIFICIAL INTELLIGENCE","Score":null,"Total":0}
引用次数: 0
Abstract
In computer-simulated games, the primary objective of adopting reinforcement learning is to achieve victory by attaining the highest hand-crafted reward, considering the optimal state-value functions across the promising trajectories. However, in the context of algorithmic trading, there is no clear goal for hand-crafting an extremely high reward for the state-value function. Besides, the exploration and exploitation of the reinforcement learning could generate a high number of unexpected buy and sell actions. These actions could lead to overlapped transactions which cannot provide a fair reward function. In order to alleviate these problems, we propose a novel trading algorithm named Deep Q Network with Action Retention (DQN-AR). Firstly, the action retention mechanism is proposed to avoid the overlapped transactions. Secondly, the divide-and-conquer approach is employed to break down the profit maximization goal into several sub-goals, with the aim of optimizing the annualized returns from all transactions throughout the entire trading period. Thirdly, we evaluate the effectiveness of the proposed approach by implementing the DQN-AR model for both long and short selling in algorithmic trading. In the experiments, we compare DQN-AR with DQN, Gated-DQN (GDQN), Simple Moving Average (SMA) and Dual Moving Average Crossover (DMAC). The experimental result shows that DQN-AR is superior to DQN, GDQN, SMA and DMAC and achieves the state-of-art trading performance both for long and short positions. In summary, our DQN-AR achieves 15.4% higher profit on average than the second top competitor approach for the long position and 101.03% higher on average for the short position.
期刊介绍:
Applied Soft Computing is an international journal promoting an integrated view of soft computing to solve real life problems.The focus is to publish the highest quality research in application and convergence of the areas of Fuzzy Logic, Neural Networks, Evolutionary Computing, Rough Sets and other similar techniques to address real world complexities.
Applied Soft Computing is a rolling publication: articles are published as soon as the editor-in-chief has accepted them. Therefore, the web site will continuously be updated with new articles and the publication time will be short.