Deep Reinforcement Learning and Genetic Algorithm for a Pairs Trading Task on commodities

Georgios Sermpinis,Charalampos Stasinakis,Xiangyu Zong
DOI: https://doi.org/10.2139/ssrn.3770061
2020-01-01
SSRN Electronic Journal
Abstract:This paper uses five pairs trading strategies to conduct in-sample training and backtesting on 35 commodities in the major commodity markets from 1980 to 2018. The Distance Method (DM) and the Co-integration Approach (CA) are used for pairs formation. The Simple Thresholds (ST) strategy, Genetic Algorithm (GA) and Deep Reinforcement Learning (DRL) are used to determine trading actions. Traditional DM-ST, CA-ST and CA-DM-ST are used as benchmark models. The GA is used to optimize the trading thresholds in ST strategy, and this is known as the CA-GA-ST strategy. This paper proposes a novel DRL structure for determining trading actions, which replaces the ST decision method based on the standard deviation of the in-sample spread. This novel DRL structure is then combined with CA and called the CA-DRL trading strategy. The average annualized returns of the traditional DM-ST, CA-ST and CA-DM-ST methods are not high, at 0.12%, 0.37% and 0.43%, respectively. Average out-of-sample performance of CA-GA-ST only improves slightly, with an average annual return of 1.84% but an increased risk. CA-DRL provides a satisfactory trading performance: the average annualized return reaches 12.49%; the Sharpe Ratio reaches 1.853; the portfolio has a low possibility (only 5.41%) of generating negative returns.
What problem does this paper attempt to address?