Genetic Algorithm for Pairs Trading

Subscribe to newsletter

We have discussed previously how a complex trading system can be profitable. In a similar context, Reference [1] applied a genetic algorithm to pairs trading. The authors developed a sophisticated genetic optimization algorithm that utilizes Bollinger Bands and correlation-coefficient for pairs trading. The algorithm encoded six important variables into a chromosome: the correlation coefficient threshold, the Bollinger Band entry width, the Bollinger Bands exit width, the correlation coefficient calculation days, the moving average calculation days, and the forward observation days. The encoded parameters are utilized to examine the trading pairs and their trading signals produced by the Bollinger Bands, after which the fitness value is calculated by averaging the return and volatility of long and short trading pairs. The genetic procedure was repeated until suitable parameters are discovered. After performing numerical experiments, the authors concluded,

Trading strategies are commonly used approaches for finding buying or selling signals for trading. One type of trading strategy is the pairs trading strategy. In the past, parameters in pairs trading strategies are usually set through experience, which is typically time-consuming. In this paper, negative correlation coefficient trading pairs, genetic algorithms, and Bollinger Bands are considered in AGBCPT, the proposed advanced genetic Bollinger Bands and correlation-coefficient based pairs trading algorithm, to determine the appropriate parameters for the long-short pairs trading strategy. To verify the effectiveness of AGBCPT, experiments were conducted on real datasets, showing that the parameters considered in pairs trading do affect the profitability of the pairs trading strategy; AGBCPT profit is superior to that of BAH and GBCPT for three stock market trends on various training and testing periods; and the fitness function used in AGBCPT also outperforms that of the previous approach in terms of reducing the trading risk of the trained model.

In short, the Genetic Algorithm-based pairs trading strategy produced better risk-adjusted returns. This article demonstrated once again that a complex trading system can be profitable with enough research and practice.

Subscribe to newsletter https://harbourfrontquant.beehiiv.com/subscribe Newsletter Covering Trading Strategies, Risk Management, Financial Derivatives, Career Perspectives, and More

In our opinion, the key to developing a good trading system is thorough testing of its robustness, especially on out-of-sample data. What do you think? Let us know in the comments below.

References

[1] Chen C.-H., Lai W.-H., Hung S.-T., Hong, T.-P. , An Advanced Optimization Approach for Long-Short Pairs Trading Strategy Based on Correlation Coefficients and Bollinger Bands, Appl. Sci. 2022, 12, 1052. https://doi.org/10.3390/app12031052

Subscribe to newsletter https://harbourfrontquant.beehiiv.com/subscribe Newsletter Covering Trading Strategies, Risk Management, Financial Derivatives, Career Perspectives, and More

Further questions

What's your question? Ask it in the discussion forum

Have an answer to the questions below? Post it here or in the forum

LATEST NEWSState of economywide tariffs on Canada unclear as Trump’s global trade war escalates
State of economywide tariffs on Canada unclear as Trump’s global trade war escalates

WASHINGTON — As U.S. President Donald Trump prepares to unveil his so-called “liberation day” plan to hit multiple countries with tariffs, it’s still not clear whether a temporary pause on separate economywide duties on Canada will be lifted. In early March, Trump imposed — and…

Stay up-to-date with the latest news - click here
LATEST NEWS‘Like a spare tire’: Waterloo company launches backup option for mobile outages
‘Like a spare tire’: Waterloo company launches backup option for mobile outages

When a service outage in July 2022 left millions of Rogers customers in the dark for up to 15 hours, it underscored the importance of being prepared in case of a similar emergency. For some, that meant having lifelines in place that don’t rely on…

Stay up-to-date with the latest news - click here
LATEST NEWSDanish prime minister heads to Greenland as Trump seeks control of the Arctic territory
Danish prime minister heads to Greenland as Trump seeks control of the Arctic territory

NUUK, Greenland (AP) — Danish Prime Minister Mette Frederiksen is traveling to Greenland on Wednesday for a three-day trip aimed at building trust and cooperation with Greenlandic officials at a time when the Trump administration is seeking control of the vast Arctic territory. Frederiksen announced…

Stay up-to-date with the latest news - click here
LATEST NEWSMLB’s average salary tops $5 million for first time, AP study shows
MLB’s average salary tops $5 million for first time, AP study shows

NEW YORK (AP) — Major League Baseball’s average salary broke the $5 million barrier on opening day for the first time, according to a study by The Associated Press. The New York Mets, with Juan Soto’s record $61.9 million pay, led MLB for the third…

Stay up-to-date with the latest news - click here
LATEST NEWSRogers Communications and NHL announce $11-billion rights deal
Rogers Communications and NHL announce $11-billion rights deal

TORONTO — Rogers Communications Inc. and the National Hockey League have announced a new 12-year agreement valued at $11 billion for the national media rights to NHL games on all platforms in Canada. The agreement is worth more than double the current rights deal between…

Stay up-to-date with the latest news - click here

Leave a Reply