IDEAS home Printed from https://ideas.repec.org/a/kap/compec/v53y2019i4d10.1007_s10614-018-9813-x.html
   My bibliography  Save this article

Programming Language Choices for Algo Traders: The Case of Pairs Trading

Author

Listed:
  • Pedro Vergel Eleuterio

    (Birkbeck, University of London)

  • Lovjit Thukral

    (JP Morgan Asset Management)

Abstract

In the last 20 years, relative value strategies have increased in popularity in various asset classes, including equity and commodity markets. Due to an increase in market participants, more sophisticated algorithms than those used in the past are now required to generate excess returns in pairs trading strategies. Sophisticated algorithms can cause an increase in complexity which, in-turn, increases computational run time. In our pairs trading example, C++ provides the best performance, however, it is also the most time consuming to implement. Among the languages that allow for faster development, Cython provides the best balance between run times and ease of prototyping.

Suggested Citation

  • Pedro Vergel Eleuterio & Lovjit Thukral, 2019. "Programming Language Choices for Algo Traders: The Case of Pairs Trading," Computational Economics, Springer;Society for Computational Economics, vol. 53(4), pages 1443-1449, April.
  • Handle: RePEc:kap:compec:v:53:y:2019:i:4:d:10.1007_s10614-018-9813-x
    DOI: 10.1007/s10614-018-9813-x
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s10614-018-9813-x
    File Function: Abstract
    Download Restriction: Access to the full text of the articles in this series is restricted.

    File URL: https://libkey.io/10.1007/s10614-018-9813-x?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to search for a different version of it.

    References listed on IDEAS

    as
    1. Engle, Robert & Granger, Clive, 2015. "Co-integration and error correction: Representation, estimation, and testing," Applied Econometrics, Russian Presidential Academy of National Economy and Public Administration (RANEPA), vol. 39(3), pages 106-135.
    2. Evan Gatev & William N. Goetzmann & K. Geert Rouwenhorst, 2006. "Pairs Trading: Performance of a Relative-Value Arbitrage Rule," The Review of Financial Studies, Society for Financial Studies, vol. 19(3), pages 797-827.
    3. Johansen, Soren, 1991. "Estimation and Hypothesis Testing of Cointegration Vectors in Gaussian Vector Autoregressive Models," Econometrica, Econometric Society, vol. 59(6), pages 1551-1580, November.
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Alessia Naccarato & Andrea Pierini & Giovanna Ferraro, 2021. "Markowitz portfolio optimization through pairs trading cointegrated strategy in long-term investment," Annals of Operations Research, Springer, vol. 299(1), pages 81-99, April.
    2. Flori, Andrea & Regoli, Daniele, 2021. "Revealing Pairs-trading opportunities with long short-term memory networks," European Journal of Operational Research, Elsevier, vol. 295(2), pages 772-791.
    3. Ziping Zhao & Rui Zhou & Zhongju Wang & Daniel P. Palomar, 2018. "Optimal Portfolio Design for Statistical Arbitrage in Finance," Papers 1803.02974, arXiv.org.
    4. Yuji Yamada & James A. Primbs, 2018. "Model Predictive Control for Optimal Pairs Trading Portfolio with Gross Exposure and Transaction Cost Constraints," Asia-Pacific Financial Markets, Springer;Japanese Association of Financial Economics and Engineering, vol. 25(1), pages 1-21, March.
    5. Alexandre D'Aspremont, 2010. "Identifying small mean-reverting portfolios," Quantitative Finance, Taylor & Francis Journals, vol. 11(3), pages 351-364.
    6. Law, K.F. & Li, W.K. & Yu, Philip L.H., 2018. "A single-stage approach for cointegration-based pairs trading," Finance Research Letters, Elsevier, vol. 26(C), pages 177-184.
    7. Yu, Philip L.H. & Lu, Renjie, 2017. "Cointegrated market-neutral strategy for basket trading," International Review of Economics & Finance, Elsevier, vol. 49(C), pages 112-124.
    8. Flavio Vilela Vieira & Cleomar Gomes Da Silva, 2018. "Brics Export Performance: An Ardl Bounds Testing Empirical Investigation," Anais do XLIV Encontro Nacional de Economia [Proceedings of the 44th Brazilian Economics Meeting] 101, ANPEC - Associação Nacional dos Centros de Pós-Graduação em Economia [Brazilian Association of Graduate Programs in Economics].
    9. K. Aleks Schaefer & Daniel Scheitrum, 2020. "Sewing terror: price dynamics of the strawberry needle crisis," Australian Journal of Agricultural and Resource Economics, Australian Agricultural and Resource Economics Society, vol. 64(2), pages 229-243, April.
    10. Anatoly A. Peresetsky & Ruslan I. Yakubov, 2017. "Autocorrelation in an unobservable global trend: does it help to forecast market returns?," International Journal of Computational Economics and Econometrics, Inderscience Enterprises Ltd, vol. 7(1/2), pages 152-169.
    11. Santos, João & Domingos, Tiago & Sousa, Tânia & St. Aubyn, Miguel, 2016. "Does a small cost share reflect a negligible role for energy in economic production? Testing for aggregate production functions including capital, labor, and useful exergy through a cointegration-base," MPRA Paper 70850, University Library of Munich, Germany.
    12. Lee, Jung Wan & Brahmasrene, Tantatape, 2013. "Investigating the influence of tourism on economic growth and carbon emissions: Evidence from panel analysis of the European Union," Tourism Management, Elsevier, vol. 38(C), pages 69-76.
    13. Baillie, Richard T & Bollerslev, Tim, 1994. "Cointegration, Fractional Cointegration, and Exchange Rate Dynamics," Journal of Finance, American Finance Association, vol. 49(2), pages 737-745, June.
    14. Yap, Wei Yim & Lam, Jasmine S.L., 2006. "Competition dynamics between container ports in East Asia," Transportation Research Part A: Policy and Practice, Elsevier, vol. 40(1), pages 35-51, January.
    15. Barakchian , Seyed Mahdi, 2012. "Implications of Cointegration for Forecasting: A Review and an Empirical Analysis," Journal of Money and Economy, Monetary and Banking Research Institute, Central Bank of the Islamic Republic of Iran, vol. 7(1), pages 87-118, October.
    16. Mylonidis, Nikolaos & Kollias, Christos, 2010. "Dynamic European stock market convergence: Evidence from rolling cointegration analysis in the first euro-decade," Journal of Banking & Finance, Elsevier, vol. 34(9), pages 2056-2064, September.
    17. Yılmaz, Engin & Süslü, Bora, 2015. "The Calculation of Weighted Price Elasticity of Tax: Turkey (1998-2013)," MPRA Paper 64417, University Library of Munich, Germany, revised 15 Apr 2015.
    18. Xiaojie Xu, 2017. "The rolling causal structure between the Chinese stock index and futures," Financial Markets and Portfolio Management, Springer;Swiss Society for Financial Market Research, vol. 31(4), pages 491-509, November.
    19. Muhammad Ahad, 2016. "Nexus between Income Inequality, Crime, Inflation and Poverty: NewEvidence fromStructural Breaksfor Pakistan," International Journal of Economics and Empirical Research (IJEER), The Economics and Social Development Organization (TESDO), vol. 4(3), pages 133-145, March.
    20. Giovanni Peri & Laura Bottaz, 2005. "The International Dynamics of R&D and Innovationin the Short Run and in the Long Run," Working Papers 250, University of California, Davis, Department of Economics.

    More about this item

    Keywords

    Programming language; Performance; Pairs trading; Trading strategies;
    All these keywords.

    JEL classification:

    • G10 - Financial Economics - - General Financial Markets - - - General (includes Measurement and Data)
    • G11 - Financial Economics - - General Financial Markets - - - Portfolio Choice; Investment Decisions
    • G12 - Financial Economics - - General Financial Markets - - - Asset Pricing; Trading Volume; Bond Interest Rates
    • G14 - Financial Economics - - General Financial Markets - - - Information and Market Efficiency; Event Studies; Insider Trading

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:kap:compec:v:53:y:2019:i:4:d:10.1007_s10614-018-9813-x. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Sonal Shukla or Springer Nature Abstracting and Indexing (email available below). General contact details of provider: http://www.springer.com .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.