IDEAS home Printed from https://ideas.repec.org/a/kap/compec/v60y2022i2d10.1007_s10614-021-10159-w.html
   My bibliography  Save this article

A Finite Difference Scheme for Pairs Trading with Transaction Costs

Author

Listed:
  • Zequn Li

    (Stevens Institute of Technology, 1 Castle Point on Hudson)

  • Agnès Tourin

    (New York University Tandon School of Engineering)

Abstract

We consider a pairs trading stochastic control problem with transaction costs and constraints on the gross market exposure, and propose a new monotone Finite Difference scheme approximating the viscosity solution of the Hamilton–Jacobi–Bellman equation characterizing the optimal trading strategies. Given a fixed time horizon and a portfolio of two cointegrated assets, the agent trades the spread between the two assets and the trading strategy is defined as the possibly negative portfolio weight maximizing the expected exponential utility derived from terminal wealth. Furthermore, trades incur transaction costs comprised of explicit transactions fees and commissions and the implicit cost due to slippage. These costs are modeled as a linear or square root function of the trading rate and respectively added or subtracted from the observable asset price at the time when a buy or a sell order enters the market. Our main contribution is the derivation of a robust approximation for the nonlinear transaction cost term in the Hamilton–Jacobi–Bellman equation. Finally, we combine our monotone Finite Difference scheme with a Monte Carlo sampling method to analyze the effects of transaction fees and slippage on the trading policies’ performance.

Suggested Citation

  • Zequn Li & Agnès Tourin, 2022. "A Finite Difference Scheme for Pairs Trading with Transaction Costs," Computational Economics, Springer;Society for Computational Economics, vol. 60(2), pages 601-632, August.
  • Handle: RePEc:kap:compec:v:60:y:2022:i:2:d:10.1007_s10614-021-10159-w
    DOI: 10.1007/s10614-021-10159-w
    as

    Download full text from publisher

    File URL: http://link.springer.com/10.1007/s10614-021-10159-w
    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-021-10159-w?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. Leonid Kogan & Raman Uppal, "undated". "Risk Aversion and Optimal Portfolio Policies in Partial and General Equilibrium Economies," Rodney L. White Center for Financial Research Working Papers 13-00, Wharton School Rodney L. White Center for Financial Research.
    2. Ren Liu & Johannes Muhle-Karbe & Marko H. Weber, 2014. "Rebalancing with Linear and Quadratic Costs," Papers 1402.5306, arXiv.org, revised Sep 2017.
    3. Duan, Jin-Chuan & Pliska, Stanley R., 2004. "Option valuation with co-integrated asset prices," Journal of Economic Dynamics and Control, Elsevier, vol. 28(4), pages 727-754, January.
    4. Gianbiagio Curato & Jim Gatheral & Fabrizio Lillo, 2017. "Optimal execution with non-linear transient market impact," Quantitative Finance, Taylor & Francis Journals, vol. 17(1), pages 41-54, January.
    5. Chiu, Mei Choi & Wong, Hoi Ying, 2011. "Mean-variance portfolio selection of cointegrated assets," Journal of Economic Dynamics and Control, Elsevier, vol. 35(8), pages 1369-1385, August.
    6. Minh Man Ngo & Huyen Pham, 2014. "Optimal switching for pairs trading rule: a viscosity solutions approach," Papers 1412.7649, arXiv.org.
    7. Grossman, Sanford J. & Vila, Jean-Luc, 1992. "Optimal Dynamic Trading with Leverage Constraints," Journal of Financial and Quantitative Analysis, Cambridge University Press, vol. 27(2), pages 151-168, June.
    8. Cuoco, Domenico, 1997. "Optimal Consumption and Equilibrium Prices with Portfolio Constraints and Stochastic Income," Journal of Economic Theory, Elsevier, vol. 72(1), pages 33-73, January.
    9. James A. Primbs & Yuji Yamada, 2018. "Pairs trading under transaction costs using model predictive control," Quantitative Finance, Taylor & Francis Journals, vol. 18(6), pages 885-895, June.
    10. Lei, Yaoting & Xu, Jing, 2015. "Costly arbitrage through pairs trading," Journal of Economic Dynamics and Control, Elsevier, vol. 56(C), pages 1-19.
    11. Tourin, Agnès & Yan, Raphael, 2013. "Dynamic pairs trading using the stochastic control approach," Journal of Economic Dynamics and Control, Elsevier, vol. 37(10), pages 1972-1981.
    12. Jim Gatheral, 2010. "No-dynamic-arbitrage and market impact," Quantitative Finance, Taylor & Francis Journals, vol. 10(7), pages 749-759.
    13. Bahman Angoshtari, 2016. "On the Market-Neutrality of Optimal Pairs-Trading Strategies," Papers 1608.08268, arXiv.org.
    14. Tim Leung & Xin Li, 2015. "Optimal Mean Reversion Trading With Transaction Costs And Stop-Loss Exit," International Journal of Theoretical and Applied Finance (IJTAF), World Scientific Publishing Co. Pte. Ltd., vol. 18(03), pages 1-31.
    15. Fabrizio Lillo & J. Doyne Farmer & Rosario N. Mantegna, 2003. "Master curve for price-impact function," Nature, Nature, vol. 421(6919), pages 129-130, January.
    16. Hogan, Steve & Jarrow, Robert & Teo, Melvyn & Warachka, Mitch, 2004. "Testing market efficiency using statistical arbitrage with applications to momentum and value strategies," Journal of Financial Economics, Elsevier, vol. 73(3), pages 525-565, September.
    17. Robert Almgren, 2003. "Optimal execution with nonlinear impact functions and trading-enhanced risk," Applied Mathematical Finance, Taylor & Francis Journals, vol. 10(1), pages 1-18.
    18. Marc Potters & Jean-Philippe Bouchaud, 2002. "More statistical properties of order books and price impact," Science & Finance (CFM) working paper archive 0210710, Science & Finance, Capital Fund Management.
    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. Sühan Altay & Katia Colaneri & Zehra Eksi, 2018. "Pairs Trading Under Drift Uncertainty And Risk Penalization," International Journal of Theoretical and Applied Finance (IJTAF), World Scientific Publishing Co. Pte. Ltd., vol. 21(07), pages 1-24, November.
    2. Suhan Altay & Katia Colaneri & Zehra Eksi, 2017. "Pairs Trading under Drift Uncertainty and Risk Penalization," Papers 1704.06697, arXiv.org, revised Sep 2018.
    3. Thomas Nanfeng Li & Agnès Tourin, 2016. "Optimal pairs trading with time-varying volatility," International Journal of Financial Engineering (IJFE), World Scientific Publishing Co. Pte. Ltd., vol. 3(03), pages 1-29, September.
    4. P. S. Lintilhac & A. Tourin, 2017. "Model-based pairs trading in the bitcoin markets," Quantitative Finance, Taylor & Francis Journals, vol. 17(5), pages 703-716, May.
    5. Alvaro Cartea & Luhui Gan & Sebastian Jaimungal, 2018. "Trading Cointegrated Assets with Price Impact," Papers 1807.01428, arXiv.org.
    6. Suhan Altay & Katia Colaneri & Zehra Eksi, 2019. "Optimal Convergence Trading with Unobservable Pricing Errors," Papers 1910.01438, arXiv.org, revised Oct 2019.
    7. Sühan Altay & Katia Colaneri & Zehra Eksi, 2021. "Optimal convergence trading with unobservable pricing errors," Annals of Operations Research, Springer, vol. 299(1), pages 133-161, April.
    8. Álvaro Cartea & Sebastian Jaimungal, 2016. "Algorithmic Trading Of Co-Integrated Assets," International Journal of Theoretical and Applied Finance (IJTAF), World Scientific Publishing Co. Pte. Ltd., vol. 19(06), pages 1-18, September.
    9. Fengpei Li & Vitalii Ihnatiuk & Ryan Kinnear & Anderson Schneider & Yuriy Nevmyvaka, 2022. "Do price trajectory data increase the efficiency of market impact estimation?," Papers 2205.13423, arXiv.org, revised Mar 2023.
    10. Gromb, Denis & Vayanos, Dimitri, 2002. "Equilibrium and welfare in markets with financially constrained arbitrageurs," Journal of Financial Economics, Elsevier, vol. 66(2-3), pages 361-407.
    11. J. Doyne Farmer & Austin Gerig & Fabrizio Lillo & Henri Waelbroeck, 2013. "How efficiency shapes market impact," Quantitative Finance, Taylor & Francis Journals, vol. 13(11), pages 1743-1758, November.
    12. Jorge Guijarro-Ordonez, 2019. "High-dimensional statistical arbitrage with factor models and stochastic control," Papers 1901.09309, arXiv.org, revised Jun 2021.
    13. Charles-Albert Lehalle & Charafeddine Mouzouni, 2019. "A Mean Field Game of Portfolio Trading and Its Consequences On Perceived Correlations," Papers 1902.09606, arXiv.org.
    14. Tim Leung & Raphael Yan, 2018. "Optimal dynamic pairs trading of futures under a two-factor mean-reverting model," International Journal of Financial Engineering (IJFE), World Scientific Publishing Co. Pte. Ltd., vol. 5(03), pages 1-23, September.
    15. Álvaro Cartea & Sebastian Jaimungal & Jason Ricci, 2018. "Trading Strategies Within The Edges Of No-Arbitrage," International Journal of Theoretical and Applied Finance (IJTAF), World Scientific Publishing Co. Pte. Ltd., vol. 21(03), pages 1-37, May.
    16. T. N. Li & A. Papanicolaou, 2019. "Statistical Arbitrage for Multiple Co-Integrated Stocks," Papers 1908.02164, arXiv.org, revised Feb 2022.
    17. Ramirez, H & Sanchez, J. F, 2023. "Optimal liquidation with temporary and permanent price impact, an application to cryptocurrencies," Documentos de Trabajo 20669, Universidad del Rosario.
    18. Gianbiagio Curato & Jim Gatheral & Fabrizio Lillo, 2014. "Optimal execution with nonlinear transient market impact," Papers 1412.4839, arXiv.org.
    19. Lei, Yaoting & Xu, Jing, 2015. "Costly arbitrage through pairs trading," Journal of Economic Dynamics and Control, Elsevier, vol. 56(C), pages 1-19.
    20. Haipeng Xing, 2019. "A singular stochastic control approach for optimal pairs trading with proportional transaction costs," Papers 1911.10450, arXiv.org.

    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:60:y:2022:i:2:d:10.1007_s10614-021-10159-w. 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.