Paper: arXiv 2407.16103

Abstract

Cryptocurrency is a cryptography-based digital asset with extremely volatile prices. Around USD 70 billion worth of cryptocurrency is traded daily on exchanges. Trading cryptocurrency is difficult due to the inherent volatility of the crypto market. This study investigates whether Reinforcement Learning (RL) can enhance decision-making in cryptocurrency algorithmic trading compared to traditional methods. In order to address this question, we combined reinforcement learning with a statistical arbitrage trading technique, pair trading, which exploits the price difference between statistically correlated assets. We constructed RL environments and trained RL agents to determine when and how to trade pairs of cryptocurrencies. We developed new reward shaping and observation/action spaces for reinforcement learning. We performed experiments with the developed reinforcement learner on pairs of BTC-GBP and BTC-EUR data separated by 1 min intervals (n=263,520). The traditional non-RL pair trading technique achieved an annualized profit of 8.33%, while the proposed RL-based pair trading technique achieved annualized profits from 9.94% to 31.53%, depending upon the RL learner. Our results show that RL can significantly outperform manual and traditional pair trading techniques when applied to volatile markets such as~cryptocurrencies.

Complexity vs Empirical Score

  • Math Complexity: 6.5/10
  • Empirical Rigor: 7.0/10
  • Quadrant: Holy Grail — high math complexity, high empirical rigor

Why this score: The paper employs advanced mathematics including MDP formulation, reward shaping, and statistical arbitrage concepts, while demonstrating empirical rigor through backtesting on large-scale cryptocurrency datasets (263,520 data points) and reporting annualized profit metrics.

Research Flowchart

  flowchart TD
  A["Research Goal:<br>RL vs Traditional Methods<br>for Crypto Pair Trading"] --> B["Data Collection:<br>BTC-GBP & BTC-EUR Data<br>1-min intervals, n=263,520"]
  B --> C["Methodology:<br>Construct RL Environment<br>Define Reward/Action Spaces"]
  C --> D["Training:<br>Train RL Agents<br>(RL Learners)"]
  D --> E["Comparison:<br>RL vs Traditional<br>Pair Trading"]
  E --> F["Outcome:<br>RL Outperformance:<br>9.94% - 31.53% vs 8.33%"]
  style F fill:#d4edda,stroke:#155724

Cited References (175)

  1. Deep Reinforcement Learning Strategies in Finance : Insights into Asset Holding , Trading Behavior , and Purchase Diversity (2024) — link
  2. Deep Reinforcement Learning for Active High Frequency Trading (2023) — link
  3. Shapify.me (2024) — link
  4. Statistics: Fourth international student edition (2020)
  5. Optimal Portfolio Management When Stocks Are Driven by Mean Reverting Processes (2019) — link
  6. Generalized Stochastic Arbitrage Opportunities (2024) — link
  7. Differential Evolution – A Simple and Efficient Heuristic for global Optimization over Continuous Spaces (1997) — link
  8. Constructing cointegrated cryptocurrency portfolios for statistical arbitrage (2019) — link
and 167 more
  1. On the Theory of the Brownian Motion (1930) — link
  2. Machine Learning - Based Pairs Trading Strategy with Multivariate (2022) — link
  3. Evolutionary multi-objective optimization for multivariate pairs trading (2019) — link
  4. Stochastic optimization is (almost) as easy as deterministic optimization \textbar IEEE Conference Publication \textbar IEEE Xplore — link
  5. Evolution of Ethereum : A Temporal Graph Perspective (2020) — link
  6. Cointegration-based pairs trading framework with application to the Cryptocurrency market (2018) — link
  7. Distribution of the Estimators for Autoregressive Time Series with a Unit Root (1979) — link
  8. Crypto Market Cap Charts (2024) — link
  9. An overview of COVID -19 (2020) — link
  10. Pairs trading (2005) — link
  11. ’ Truly a sham market’: Jim Cramer says you need to ignore the ‘crypto cheerleaders’ now that bitcoin is bouncing — this is why and what he likes instead (2023) — link
  12. Crypto craze can go the same way as tulip mania - Times of India (2022) — link
  13. Cryptocurrency: Value Formation Factors and Investment Risks (2023) — link
  14. Cryptocurrency: A new investment opportunity? (2018) — link
  15. Objective and subjective risks of investing into cryptocurrencies (2021) — link
  16. Cryptocurrency Risks , Fraud Cases , and Financial Performance (2023) — link
  17. A stochastic model for commodity pairs trading (2016) — link
  18. Statistical Arbitrage with Pairs Trading (2016) — link
  19. Pairs trading based on statistical variability of the spread process (2013) — link
  20. Optimal trading strategies for Lévy -driven Ornstein – Uhlenbeck processes (2019) — link
  21. Estimation of Ornstein - Uhlenbeck Process Using Ultra - High - Frequency Data with Application to Intraday Pairs Trading Strategy (2022) — link
  22. Optimal pairs trading: A stochastic control approach (2008) — link
  23. Optimal market-neutral currency trading on the cryptocurrency platform — → 2405.15461
  24. High- Frequency Trading and Price Discovery (2014) — link
  25. Arbitrage (1989) — link
  26. Stable-baselines3: Reliable reinforcement learning implementations (2021)
  27. Stable-baselines3: Reliable reinforcement learning implementations (2021)
  28. Stable- Baselines3 : Reliable Reinforcement Learning Implementations
  29. Reinforcement Learning Coach (2017) — link
  30. Reinforcement learning algorithms: An overview and classification (2021)
  31. Air power’s quest for strategic paralysis (1995)
  32. Maximum drawdown (2004)
  33. Maximum drawdown (2004)
  34. Sortino: a ‘sharper’ratio (2013)
  35. Capital Asset Prices : A Theory of Market Equilibrium Under Conditions of Risk * (1964) — link
  36. Continuous control with deep reinforcement learning (2019) — link
  37. Addressing Function Approximation Error in Actor - Critic Methods (2018) — link
  38. Proximal Policy Optimization Algorithms (2017) — link
  39. Soft Actor - Critic Algorithms and Applications (2019) — link
  40. Continuous control with deep reinforcement learning (2019) — link
  41. Playing Atari with Deep Reinforcement Learning (2013) — link
  42. Markov decision process (2017) — link
  43. The Variation of Some Other Speculative Prices (1967) — link
  44. Extended serogrouping scheme for motile, mesophilic Aeromonas species (1990) — link
  45. A Deep Reinforcement Learning Approach for Automated Cryptocurrency Trading (2019) — link
  46. Improving Pairs Trading Strategies via Reinforcement Learning (2021) — link
  47. Mastering Pair Trading with Risk - Aware Recurrent Reinforcement Learning — → 2304.00364
  48. Deep reinforcement learning applied to statistical arbitrage investment strategy on cryptomarket (2024) — link
  49. Enhancing a Pairs Trading strategy with the application of Machine Learning (2020) — link
  50. FinRL 0.3.1 documentation (2024) — link
  51. FX trading via recurrent reinforcement learning (2003) — link
  52. Making Financial Trading by Recurrent Reinforcement Learning (2007) — link
  53. Regime-switching recurrent reinforcement learning for investment decision making (2012) — link
  54. Deep Reinforcement Learning for Trading (2020) — link
  55. Deep Reinforcement Learning in Quantitative Algorithmic Trading : A Review (2021) — link
  56. Reinforcement Learning in Financial Markets (2019) — link
  57. AlphaGo : Mastering the ancient game of Go with Machine Learning (2016) — link
  58. AlphaGo (2020) — link
  59. Financial Trading as a Game : A Deep Reinforcement Learning Approach (2018) — link
  60. Reinforcement learning: An introduction (2018) — link
  61. Optimizing the Pairs - Trading Strategy Using Deep Reinforcement Learning with Trading and Stop - Loss Boundaries (2019) — link
  62. Hybrid Deep Reinforcement Learning for Pairs Trading (2022) — link
  63. Select and Trade : Towards Unified Pair Trading with Hierarchical Reinforcement Learning (2023) — link
  64. A new interpretation of information rate (1956)
  65. Chaper 9 - The kelly criterion in blackjack sports betting, and the stock market* (2008) — link
  66. The Kelly Criterion and the Stock Market (1992) — link
  67. Pearson correlation coefficient (2009)
  68. On Trading of Equities : A Robust Control Paradigm (2008) — link
  69. Modern control engineering (2010)
  70. Algorithmic Trading Market Size , Share \textbar Global Report [2030] (2023) — link
  71. Transfer costs, spatial arbitrage, and testing for food market integration (1997)
  72. Covered interest arbitrage in the 1970’s (1981) — link
  73. Merger (risk) arbitrage strategy (2007)
  74. Theory of Rational Option Pricing (1973) — link
  75. The Pricing of Options on Debt Securities (1980) — link
  76. An Introduction to Probability Theory (1984)
  77. An equilibrium characterization of the term structure (1977) — link
  78. Using a Genetic Algorithm to Improve Recurrent Reinforcement Learning for Equity Trading (2016) — link
  79. Towards a Deep Reinforcement Learning Approach for Tower Line Wars (2017) — link
  80. Deep RTS : A Game Environment for Deep Reinforcement Learning in Real - Time Strategy Games (2018) — link
  81. Arbitrage Theory in Continuous Time (2019)
  82. Arbitrage Theory in Continuous Time (2004)
  83. Control Systems and Reinforcement Learning (2022) — link
  84. FinRL : Deep Reinforcement Learning Framework to Automate Trading in Quantitative Finance (2021) — link
  85. FinRL - Meta : Market Environments and Benchmarks for Data - Driven Financial Reinforcement Learning (2022) — link
  86. FinRL : A Deep Reinforcement Learning Library for Automated Stock Trading in Quantitative Finance (2022) — link
  87. Practical Deep Reinforcement Learning Approach for Stock Trading (2022) — link
  88. Long Short - Term Memory (1997) — link
  89. Time series analysis (2020)
  90. Control System Desig (2000)
  91. Comparative analysis between the fundamental and technical analysis of stocks (2016) — link
  92. Quantitative Trading : How to Build Your Own Algorithmic Trading Business (2021)
  93. An Overview of Market Manipulation (2018) — link
  94. Liquidity in the global currency market (2022) — link
  95. A basic working principle of Model Predictive Control (2009)
  96. Triple Bottom ( Chart pattern) (2010) — link
  97. Quantitative Finance (2019) — link
  98. Price Jump Indicators : Stock Market Empirics During the Crisis (2013) — link
  99. Jumps in Financial Markets : A New Nonparametric Test and Jump Dynamics (2008) — link
  100. A Markovian Decision Process (1957) — link
  101. Reinforcement learning diagram of a Markov decision process based on a figure from ’ Reinforcement Learning An Introduction ’ second edition by Sutton and Barto . (2020)
  102. Contrarian and momentum trading: a review of the literature (2014) — link
  103. Momentum investing: a systematic literature review and bibliometric analysis (2022) — link
  104. Optimization consensus modeling of a closed-loop carbon quota trading mechanism regarding revenue and fairness (2021) — link
  105. Statistical Arbitrage in the U . S . Equities Market (2008) — link
  106. Encyclopedia of Chart Patterns (2005)
  107. Value Investing : From Graham to Buffett and Beyond (2020)
  108. Returns to Buying Winners and Selling Losers : Implications for Stock Market Efficiency (1993) — link
  109. Evidence of Predictable Behavior of Security Returns (1990) — link
  110. Market capitalization of listed domestic companies (current US $) (2020) — link
  111. OTC foreign exchange turnover in April 2022 (2022)
  112. Regulation spillovers across cryptocurrency markets (2020) — link
  113. Safe-haven currency: An empirical identification (2017) — link
  114. Safe Haven Currencies * (2010) — link
  115. The relationship between implied volatility and cryptocurrency returns (2020) — link
  116. The economics of BitCoin price formation (2016) — link
  117. Recommendation Systems for Peer to Peer Lending System (2021) — link
  118. Forecasting mid-price movement of Bitcoin futures using machine learning (2021) — link
  119. Stacking hybrid GARCH models for forecasting Bitcoin volatility (2021) — link
  120. The predictive power of implied volatility: Evidence from 35 futures markets (2003) — link
  121. GARCH vs. stochastic volatility: Option pricing and risk management (2002) — link
  122. Dynamic Volatility Trading Strategies in the Currency Option Market (2000) — link
  123. Pairs Trading in Cryptocurrency Markets (2020) — link
  124. Trading and arbitrage in cryptocurrency markets (2020) — link
  125. Cryptocurrency trading: a comprehensive survey (2022) — link
  126. Mutual Fund Performance (1966) — link
  127. Algorithmic Trading of Cryptocurrency Based on Twitter Sentiment Analysis (2015) — link
  128. Automated bitcoin trading via machine learning algorithms (2015)
  129. Price discovery on Bitcoin exchanges (2015) — link
  130. Bayesian regression and Bitcoin (2014) — link
  131. Speculative bubbles in Bitcoin markets? An empirical investigation into the fundamental value of Bitcoin (2015) — link
  132. A next-generation smart contract and decentralized application platform (2014)
  133. Bitcoin: A peer-to-peer electronic cash system (2008)
  134. Correlation Examples (2007) — link
  135. Why do we Sometimes get Nonsense - Correlations between Time - Series ?– A Study in Sampling and the Nature of Time - Series (1926) — link
  136. Co- Integration and Error Correction : Representation , Estimation , and Testing (1987) — link
  137. Long- Run Economic Relationships : Readings in Cointegration (1991) — link
  138. SPURIOUS REGRESSIONS IN ECONOMETRICS (1974)
  139. Portfolio Selection (1952) — link
  140. Stochastic Trends in Stock Prices : Evidence from Latin American Markets (1997) — link
  141. Using Cointegration to Hedge and Trade International Equities (2003) — link
  142. Identifying small mean-reverting portfolios (2011) — link
  143. Trading in the Presence of Cointegration (2012) — link
  144. Evaluation of pairs-trading strategy at the Brazilian financial market (2009) — link
  145. M of a Kind : A Multivariate Approach at Pairs Trading (2007) — link
  146. Statistical arbitrage in the US equities market (2010) — link
  147. New tools for spread trading (2008)
  148. Pairs trading and outranking: The multi-step-ahead forecasting case (2010) — link
  149. Pairs selection and outranking: An application to the S & P 100 index (2009) — link
  150. Optimal Convergence Trade Strategies (2013) — link
  151. Dynamic Portfolio Selection in Arbitrage (2007) — link
  152. Analytic solutions for optimal statistical arbitrage trading (2010) — link
  153. A computational methodology for modelling the dynamics of statistical arbitrage (2000)
  154. Cointegration portfolios of European equities for index tracking and market neutral strategies (2005) — link
  155. Pairs Trading : Quantitative Methods and Analysis / G . Vidyamurthy . (2004)
  156. Empirical Investigation of an Equity Pairs Trading Strategy (2019) — link
  157. Are Pairs Trading Profits Robust to Trading Costs ? (2012) — link
  158. Does Simple Pairs Trading Still Work ? (2010) — link
  159. The Application of Pairs Trading to Energy Futures Markets (2008)
  160. Too Interconnected to Fail ? The rescue of Long - Term Capital Management (2009)
  161. How Far Can We Push the " Law of One Price “? (1977) — link
  162. The Law of One Price in International Trade : A Critical Review (1999) — link
  163. Pairs Trading : Performance of a Relative Value Arbitrage Rule (2006) — link
  164. Financial markets can go mad: evidence of irrational behaviour during the South Sea Bubble1 (2005) — link
  165. Efficient Capital Markets : A Review of Theory and Empirical Work (1970) — link
  166. Statistical Arbitrage Pairs Trading Strategies : Review and Outlook (2017) — link
  167. Pricing Cryptocurrency Options : The Case of CRIX and Bitcoin (2018) — link

2 of 175 cited works are in the corpus; resolved via arXiv source bundles, Semantic Scholar and OpenAlex. Corpus-wide: 2518 linked papers.