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. 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.
    3. 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.
    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. Ziping Zhao & Rui Zhou & Zhongju Wang & Daniel P. Palomar, 2018. "Optimal Portfolio Design for Statistical Arbitrage in Finance," Papers 1803.02974, arXiv.org.
    2. 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.
    3. 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.
    4. 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.
    5. Alexandre D'Aspremont, 2010. "Identifying small mean-reverting portfolios," Quantitative Finance, Taylor & Francis Journals, vol. 11(3), pages 351-364.
    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. 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.
    9. 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.
    10. 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.
    11. 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).
    12. Costola, Michele & Iacopini, Matteo, 2023. "Measuring sovereign bond fragmentation in the Eurozone," Finance Research Letters, Elsevier, vol. 51(C).
    13. Erida Curraj, 2019. "Vintage Design Furniture in Albania, a New Retro Design Paradigm in the Post-Communist Era," European Journal of Engineering and Formal Sciences Articles, Revistia Research and Publishing, vol. 2, ejef_19.
    14. Grigori Fainstein & Igor Novikov, 2011. "The Comparative Analysis of Credit Risk Determinants In the Banking Sector of the Baltic States," Review of Economics & Finance, Better Advances Press, Canada, vol. 1, pages 20-45, June.
    15. Mauricio, Jose Alberto, 2006. "Exact maximum likelihood estimation of partially nonstationary vector ARMA models," Computational Statistics & Data Analysis, Elsevier, vol. 50(12), pages 3644-3662, August.
    16. Mr. Jacques Bouhga-Hagbe, 2004. "A Theory of Workers' Remittances with An Application to Morocco," IMF Working Papers 2004/194, International Monetary Fund.
    17. La, Le & Mei, Bin, 2015. "Portfolio diversification through timber real estate investment trusts: A cointegration analysis," Forest Policy and Economics, Elsevier, vol. 50(C), pages 269-274.
    18. Frank Asche, 2001. "Testing the effect of an anti-dumping duty: The US salmon market," Empirical Economics, Springer, vol. 26(2), pages 343-355.
    19. Ansgar Belke & Robert Czudaj, 2010. "Is Euro Area Money Demand (Still) Stable? Cointegrated VAR Versus Single Equation Techniques," Applied Economics Quarterly (formerly: Konjunkturpolitik), Duncker & Humblot, Berlin, vol. 56(4), pages 285-315.
    20. Albert Wijeweera & Don Clark, 2006. "Taxation and Foreign Direct Investment Inflows: Time Series Evidence from the US," Global Economic Review, Taylor & Francis Journals, vol. 35(2), pages 135-143.

    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.