A deep Q-learning based algorithmic trading system for commodity futures markets

被引:1
|
作者
Massahi, Mahdi [1 ]
Mahootchi, Masoud [1 ]
机构
[1] Amirkabir Univ Technol, Dept Ind Engn & Management Syst, 424 Hafez Ave, Tehran, Iran
关键词
Algorithmic trading; Commodity futures market; Deep Q-learning; Double Deep Q-learning; Market simulator; HIGH-FREQUENCY; STRATEGIES; GP;
D O I
10.1016/j.eswa.2023.121711
中图分类号
TP18 [人工智能理论];
学科分类号
081104 ; 0812 ; 0835 ; 1405 ;
摘要
Nowadays, investors seek more sophisticated decision-making tools that maximize their profit from investing in the financial markets by suitably determining the optimal position, trading time, price, and volume. This paper proposes a novel intraday algorithmic trading system for volatile commodity futures markets based on a Deep Q-network (DQN) algorithm and its robust double-version (DDQN). The higher volatility, leverage property, and more liquidity in futures contracts give investors more opportunity to take advantage of speculative behaviors with a relatively small amount of capital; however, the volatility brings more difficulties in the learning phase. As an essential prerequisite to training and evaluating any trading algorithm in the futures market, we develop a simulator to replicate a real futures exchange market environment that executes recommended trading signals by handling the clearing and margin management and the pre-order checking mechanisms. Moreover, this study provides a new definition of the continuous state and action spaces that match the futures market's characteristics. To address the curse of dimensionality, we utilize a multi-agent architecture equipped with the Gated Recurrent Unit (GRU) networks to approximate the Q-values functions. The experimental results demonstrate that implementing the proposed trading algorithms (especially the DDQN) into the actual intraday data of gold coin futures contracts significantly outperforms the benchmarks in terms of return, risk, and risk-adjusted return.
引用
收藏
页数:15
相关论文
共 50 条
  • [1] Algorithmic quoting, trading, and market quality in agricultural commodity futures markets
    Hu, Zhepeng
    Teresa, Serra
    Garcia, Philip
    APPLIED ECONOMICS, 2020, 52 (58) : 6277 - 6291
  • [2] Algorithmic Forex Trading Using Q-learning
    Zahrah, Hasna Haifa
    Tirtawangsa, Jimmy
    ARTIFICIAL INTELLIGENCE APPLICATIONS AND INNOVATIONS, AIAI 2023, PT I, 2023, 675 : 24 - 35
  • [3] Machine Learning and Algorithmic Pairs Trading in Futures Markets
    Baek, Seungho
    Glambosky, Mina
    Oh, Seok Hee
    Lee, Jeong
    SUSTAINABILITY, 2020, 12 (17)
  • [4] Analysis of Algorithmic Trading with Q-Learning in the Forex Market
    Grover, Aruquipa A.
    Gabriel, Rojas S.
    2021 INTERNATIONAL CONFERENCE ON EMERGING SMART COMPUTING AND INFORMATICS (ESCI), 2021, : 73 - 77
  • [5] Trading ETFs with Deep Q-Learning Algorithm
    Hong, Shao-Yan
    Liu, Chien-Hung
    Chen, Woei-Kae
    You, Shingchern D.
    2020 IEEE INTERNATIONAL CONFERENCE ON CONSUMER ELECTRONICS - TAIWAN (ICCE-TAIWAN), 2020,
  • [6] How trading in commodity futures option markets impacts commodity futures prices
    Luo, Xingguo
    Lin, Yuting
    Yu, Xiaoli
    He, Feng
    JOURNAL OF FUTURES MARKETS, 2021, 41 (08) : 1333 - 1347
  • [7] An Evaluation of Pairs Trading in Commodity Futures Markets
    Shen, Li
    Shen, Kun
    Yi, Chao
    Chen, Yixin
    2020 IEEE INTERNATIONAL CONFERENCE ON BIG DATA (BIG DATA), 2020, : 5457 - 5462
  • [8] Trading Strategy of the Cryptocurrency Market Based on Deep Q-Learning Agents
    Huang, Chester S. J.
    Su, Yu-Sheng
    APPLIED ARTIFICIAL INTELLIGENCE, 2024, 38 (01)
  • [9] A Q-learning agent for automated trading in equity stock markets
    Chakole, Jagdish Bhagwan
    Kolhe, Mugdha S.
    Mahapurush, Grishma D.
    Yadav, Anushka
    Kurhekar, Manish P.
    EXPERT SYSTEMS WITH APPLICATIONS, 2021, 163 (163)
  • [10] Trading Activity and Rate of Convergence in Commodity Futures Markets
    Bosch, David
    Pradkhan, Elina
    JOURNAL OF FUTURES MARKETS, 2017, 37 (09) : 930 - 938