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. 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.
    2. 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.
    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. Alexandre D'Aspremont, 2010. "Identifying small mean-reverting portfolios," Quantitative Finance, Taylor & Francis Journals, vol. 11(3), pages 351-364.
    5. 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.
    6. 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.
    7. 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.
    8. 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.
    9. 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.
    10. 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.
    11. 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.
    12. 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.
    13. Singh, Prakash & Pandey, Manoj K., 2009. "Structural break, stability and demand for money in India," MPRA Paper 15425, University Library of Munich, Germany.
    14. Ely, David & Salehizadeh, Mehdi, 2001. "American depositary receipts: An analysis of international stock price movements," International Review of Financial Analysis, Elsevier, vol. 10(4), pages 343-363.
    15. Nguyen, Tien-Trung & Wu, Yang-Che & Ke, Mei-Chu & Liao, Tung Liang, 2022. "Can direct government intervention save the stock market?," The Quarterly Review of Economics and Finance, Elsevier, vol. 84(C), pages 271-284.
    16. Abbas Alavirad & Sanhita Athawale, 2005. "The impact of the budget deficit on inflation in the Islamic Republic of Iran," OPEC Energy Review, Organization of the Petroleum Exporting Countries, vol. 29(1), pages 37-49, March.
    17. Liu, Yaping & Sadiq, Farah & Ali, Wajahat & Kumail, Tafazal, 2022. "Does tourism development, energy consumption, trade openness and economic growth matters for ecological footprint: Testing the Environmental Kuznets Curve and pollution haven hypothesis for Pakistan," Energy, Elsevier, vol. 245(C).
    18. Costola, Michele & Iacopini, Matteo, 2023. "Measuring sovereign bond fragmentation in the Eurozone," Finance Research Letters, Elsevier, vol. 51(C).
    19. Nielsen, Morten Orregaard & Shimotsu, Katsumi, 2007. "Determining the cointegrating rank in nonstationary fractional systems by the exact local Whittle approach," Journal of Econometrics, Elsevier, vol. 141(2), pages 574-596, December.
    20. repec:zbw:rwirep:0557 is not listed on IDEAS
    21. Kleibergen, F., 1996. "Reduced Rank of Regression Using Generalized Method of Moments Estimators," Other publications TiSEM 5caf1c0c-d988-4184-acf7-d, Tilburg University, School of Economics and Management.

    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.