Back

Pairs Trading - Copula Method vs Cointegration

This is a pairs trading strategy based on the copula method. Please look into tutorial page for details. In order to compare the performance of copula pairs trading technique, I also implemented with cointegration method for comparison. Leave a comment if anyone has questions or suggestion about my implementation.

Update Backtest








0

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.


I checked the copula code from the tutorial (one with 427 trades, 353% Net Profit). If you look at the trade log, it seems that it opens a long position in XLK on 2010-03-03 and the short QQQ gets rejected because of insufficient capital. Another pair trade is opened on 2010-03-26 in opposite direction and half the size. Then the two ~2k shares long positions in both instruments are held for 8+ years, producing most of the total net profit. Am I reading this right?

78609_1561481591.jpg

78609_1561481626.jpg

 

 

1

Hi Petras,

Your reading of the trading log is correct. Please let me know if you have any further questions.

0

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.


I do have a question. Do you plan fixing this bug? Because as of now the tutorial page shows a completely bogus and unrealistic strategy and results. When I fixed the bug by reducing trade sizes the resulting equity curve was basically a random walk.

1

Update Backtest





0

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.


Loading...

This discussion is closed