A reinforcement learning algorithm for trading commodities

被引:0
|
作者
Giorgi, Federico [1 ]
Herzel, Stefano [1 ]
Pigato, Paolo [1 ]
机构
[1] Univ Roma Tor Vergata, Dept Econ & Finance, Rome, Italy
关键词
commodities; portfolio optimization; reinforcement learning; SARSA; threshold models;
D O I
10.1002/asmb.2825
中图分类号
C93 [管理学]; O22 [运筹学];
学科分类号
070105 ; 12 ; 1201 ; 1202 ; 120202 ;
摘要
We propose a reinforcement learning (RL) algorithm for generating a trading strategy in a realistic setting, that includes transaction costs and factors driving the asset dynamics. We benchmark our algorithm against the analytical optimal solution, available when factors are linear and transaction costs are quadratic, showing that RL is able to mimic the optimal strategy. Then we consider a more realistic setting, including non-linear dynamics, that better describes the WTI spot prices time series. For these more general dynamics, an optimal strategy is not known and RL becomes a viable alternative. We show that on synthetic data generated from WTI spot prices, the RL agent outperforms a trader that linearizes the model to apply the theoretical optimal strategy.
引用
收藏
页码:373 / 388
页数:16
相关论文
共 50 条
  • [1] A Simple Reinforcement Learning Algorithm for Stock Trading
    Fiorini, Pierre M.
    Fiorini, Pierce-Gabriel
    [J]. PROCEEDINGS OF THE 11TH IEEE INTERNATIONAL CONFERENCE ON INTELLIGENT DATA ACQUISITION AND ADVANCED COMPUTING SYSTEMS: TECHNOLOGY AND APPLICATIONS (IDAACS'2021), VOL 2, 2021, : 824 - 830
  • [2] Nonlinear relationships in soybean commodities Pairs trading-test by deep reinforcement learning
    Liu, Jianhe
    Lu, Luze
    Zong, Xiangyu
    Xie, Baao
    [J]. FINANCE RESEARCH LETTERS, 2023, 58
  • [3] Reinforcement learning for trading
    Moody, J
    Saffell, M
    [J]. ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS 11, 1999, 11 : 917 - 923
  • [4] Using a Genetic Algorithm to Improve Recurrent Reinforcement Learning for Equity Trading
    Zhang, Jin
    Maringer, Dietmar
    [J]. COMPUTATIONAL ECONOMICS, 2016, 47 (04) : 551 - 567
  • [5] A Futures Quantitative Trading Strategy Based on a Deep Reinforcement Learning Algorithm
    Chen, Xuemei
    Guo, Haoran
    [J]. 2023 IEEE 8TH INTERNATIONAL CONFERENCE ON BIG DATA ANALYTICS, ICBDA, 2023, : 175 - 179
  • [6] Using a Genetic Algorithm to Improve Recurrent Reinforcement Learning for Equity Trading
    Jin Zhang
    Dietmar Maringer
    [J]. Computational Economics, 2016, 47 : 551 - 567
  • [7] Reinforcement Learning in Stock Trading
    Quang-Vinh Dang
    [J]. ADVANCED COMPUTATIONAL METHODS FOR KNOWLEDGE ENGINEERING (ICCSAMA 2019), 2020, 1121 : 311 - 322
  • [8] Reinforcement Learning for Quantitative Trading
    Sun, Shuo
    Wang, Rundong
    An, Bo
    [J]. ACM TRANSACTIONS ON INTELLIGENT SYSTEMS AND TECHNOLOGY, 2023, 14 (03)
  • [9] Reinforcement Learning for Options Trading
    Wen, Wen
    Yuan, Yuyu
    Yang, Jincui
    [J]. APPLIED SCIENCES-BASEL, 2021, 11 (23):
  • [10] A parallel multi-module deep reinforcement learning algorithm for stock trading
    Ma, Cong
    Zhang, Jiangshe
    Liu, Junmin
    Ji, Lizhen
    Gao, Fei
    [J]. NEUROCOMPUTING, 2021, 449 : 290 - 302