Hello QuantConnect Community!
We have written a version of the algorithm from the BootCamp lesson “Pairs Trading with SMA” using the Classic Framework. In this version, we control the weight, and the exit rule (reverse to the mean) in contrast with the Framework version that left these responsibilities to the Portfolio Construction Model. This is a simpler example that can easily be extended to other asset classes.
____
There are examples of pairs trading in the QuantConnect forum. Here are a few discussions that might be of interest:
Newbie Part 2: In this discussion, Alexandre Catarino, an investor at QuantConnect, explains the concept of pairs trading and attaches a simple pairs trading algorithm.
Trading Pairs Crypto: This discussion revolves around implementing a pairs trading strategy for cryptocurrencies.
Is it possible to implement a complete pairs trading forex strategy?: In this thread, users discuss the possibility of implementing a complete pairs trading strategy for forex.
Intraday Pairs Trading Based on Correlation and Cointegration: This discussion focuses on an intraday pairs trading strategy based on correlation and cointegration.
Share-Class Pairs Trading: In this thread, users discuss a share-class pairs trading algorithm.
Best regards,Alex
Alexandre Catarino
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!