Skip to main content
Log in

Impact of Electronic Liquidity Providers Within a High-Frequency Agent-Based Modeling Framework

  • Published:
Computational Economics Aims and scope Submit manuscript

Abstract

The current contribution addresses the impact of high-frequency electronic liquidity provision strategies on the intraday dynamics of financial markets, by means of an artificial stock market. As novel design feature, an event-based intraday time implementation is proposed, allowing for the generation of time-stamped intraday events, which make possible both the aggregation of time series at various time frequencies, as well as the correct simulation of trading strategies that follow different temporal frequencies, e.g., low- and high-frequency. We provide new insights with respect to the determinants of extreme events, such as flash crashes. Finally, we compare the causal chains and the effectiveness of two potential regulatory policies under the same market circumstances, i.e., minimum resting time and financial-transaction taxes, not only with respect to their flash crash prevention power, but also regarding their impact on market participants and market quality, shedding new light on the policy trade-offs.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Fig. 1
Fig. 2
Fig. 3
Fig. 4
Fig. 5
Fig. 6
Fig. 7
Fig. 8
Fig. 9
Fig. 10
Fig. 11
Fig. 12

Similar content being viewed by others

Notes

  1. “High Frequency Trading—What Is It & Should I Be Worried?”, Larry Tabb, World Federation of Exchanges, 2009.

  2. “High-frequency trading activity in EU equity markets”, European Securities and Markets Authority, Economic Report No. 1, 2014.

  3. “Equity trading in 2015: Algos, HFT & Dark pools”, Mathew Szeto, Center for Financial Studies Frankfurt, Lecture Series, 06 October 2015.

  4. Order flow is considered to be toxic “when it adversely selects market makers, who may be unaware they are providing liquidity at a loss” (Easley et al. 2012).

  5. The acronym ABM will refer to both agent-based modeling and agent-based model, depending on the context, where as ABMs will denote agent-based models (plural).

  6. Measuring complexity in the agent-based modeling framework is still far from being a solved problem. For some initial suggestions on how to measure complexity of agent based models of financial markets see Mandes and Winker (2017).

  7. Personal communication following WEHIA 2015, May 30, 2015.

  8. One could also argue that not all common time-series statistics can be applied, without any adjustment, to series of events occurring at irregular intertemporal distance, such as tick-by-tick.

  9. The trades at the lower frequency may be triggered either by LFTs or HFTs, while the trades at the higher frequency are triggered by faster HFTs only.

  10. It might be worth mentioning that all other events besides wake-up requests and time-series udpates, even those related to the market matching engine (e.g., new orders, order removal/expiration, trade and quote change notifications) are modeled as independent, time-based events. This allows for an effective representation of latency differences, which could lead to different market state/quotes between the moment a trading order is created and the time when the order actually “hits” the market. However, network latency issues are not considered in the current implementation.

  11. According to Challet and Stinchcombe (2001) the empirical interevent durations have a time-varying distribution. Daniel (2006) also rejects the hypothesis of constant trading activity and suggests a non-exponential distribution of time duration between order flow events. Similarly, inter-trade duration clustering, which might correspond to a U-shape intraday volume profile (Tsay 2005) or might just be triggered by news events, is reported in Pacurar (2008). In the current implementation, we depart from the assumption of non-exponential waiting times. For once the non-exponential feature is not required by our research questions and, secondly, the empirical statistics at hand only suffice for calibrating one exponential distribution.

  12. The mean of the truncated exponential distribution \(f_X(x|\beta ,b) = \frac{\frac{1}{\beta }\,\exp (-x/\beta )}{1-\exp (-b/\beta )}\), for \(0 < x \le b\) where \(\beta > 0\), is \(E[X] = \beta \,\frac{1-(k+1)\,\exp (-k)}{1-\exp (-k)}\), where \(k = b/\beta \) (see Olive 2008, Chapter 4). Therefore, by knowing E[X] and b, one can solve the previous equation for \(\beta \). However, if k is large enough (e.g., \(k \ge 7\)) then \(\beta \approx E[X]\).

  13. The current return is based on the most recent intraday trading price relative to the previous daily closing price or relative to the previous time stamp for intraday time series, respectively.

  14. The chartist strategies are applied both at daily (end-of-day) as well as at intraday frequencies.

  15. According to EUREX, the main HFT-based strategy is liquidity provision—also known as electronic liquidity provision (ELP). Other HF strategies are (statistical) arbitrage, short term momentum trading and liquidity detection (see “High-frequency trading—a discussion of relevant issues”, London, May 8, 2013, http://www.eurexchange.com/blob/exchange-en/455384/490346/6/data/presentation_hft_media_workshop_lon_en.pdf).

  16. In a literature review, Aldridge (2013) identifies two main types of automated market making models: inventory- and information-based models. The first class is concerned only with the effective management of inventory—without any opinion on the drift or any autocorrelation structure—while the latter tries to identify the true value from the market itself rather than relying on external fundamental information.

  17. The marketable orders are used by “Intermediaries” primarily to reduce their inventories.

  18. This period corresponds to the open hours of the components of the S&P 500 index, which is the underlying asset of the CME S&P 500 E-mini futures.

  19. We have also tested with an overall negative daily trend, by including a negative daily drift, similarly to the empirical observations during May 3–5, 2010. No qualitatively differences were found, only the flash crash frequencies are higher probably due to the increased selling pressure of LF opportunistic traders.

  20. Thinking in terms of ultra high-frequency trading, instead of just computer-based trading, the time frame of 1 s would be too large and we will experiment also with various other levels in Sect. 4.

  21. This is one of the concerns expressed by Danielsson and Zer (2012)—a too large homogeneity of strategies could contribute to an increasing systemic risk.

  22. It is also worth mentioning that, as there is no model of new exogenous information incoming during the trading day, the price efficiency facet will not be measured.

  23. The exponential moving average of the squared trade-by-trade percentage returns.

  24. On that day, according to Kirilenko et al. (2011), a large sell program started sometime after 13:30 CT. Within a 13 min period (13:32:00–13:45:27 CT) the E-mini contract declined with 5.1%. “Over the course of the next second, a cascade of executed orders caused the price of the E-mini to drop to 1056.00 or 1.3%. The next executed transaction would have triggered a drop in price of 6.5 index points. This triggered the CME Globex Stop Logic Functionality at 13:45:28. The Stop Logic Functionality pauses executions of all transactions for 5 s, if the next transaction were to execute outside the price range of 6 index points either up or down [...] At 13:45:33, the E-mini exited the Reserve State and the market resumed trading at 1056.75. Prices fluctuated for the next few seconds. At 13:45:38, price of the E-mini began a rapid ascent, which, while occasionally interrupted, continued until 14:06:00 when the price reached 1123.75, equivalent to a 6.4% increase from that day’s low of 1056.00. At this point, the market was practically at the same price level where it was at 13:32:00 when the rapid sell-off began.”

  25. http://www.nanex.net/FlashCrash/OngoingResearch.html.

  26. According to Kirilenko et al. (2011), “the price of the E-mini contract recovered as Fundamental Buyers entered the market”.

  27. The other ELP-related parameters remain fixed to their default values as follows: activation time frame \(\beta ^{\mathtt {ELP}}_{\mathtt {tf}} = 1\) s, risk aversion coefficient \(\gamma ^{\mathtt {ELP}} = 1.0\), default quote size \(\beta ^{\mathtt {ELP}}_{\mathtt {size}} = 7\).

  28. As a side note, the default HF activation time frame so far was set to 1000 ms (1 s).

  29. The IEX alternative trading system has implemented a 60 kilometers long coil of cable between their exchange and the outside world in order to delay the outgoing communication with 350 microseconds and accordingly slow down the reaction speed of HFT.

  30. For example, Harris (2002) suggests that transaction taxes penalize HFT strategies more than longer-term investors, since the former imply a larger number of trades.

  31. Just for completion, all other simulations in the paper do not consider any explicit minimum quoted spread, which is equivalent to an implicit minimum quoted spread size of one tick.

  32. The default smoother is a thin plate regression spline.

References

  • Aldridge, I. (2013). High-frequency trading: A practical guide to algorithmic strategies and trading systems (2nd ed.). Hoboken, NJ: Wiley.

    Google Scholar 

  • Avellaneda, M., & Stoikov, S. (2008). High-frequency trading in a limit order book. Quantitative Finance, 8(3), 217–224.

    Article  Google Scholar 

  • Bouchaud, J., Gefen, Y., Potters, M., & Wyart, M. (2004). Fluctuations and response in financial markets: The subtle nature of random price changes. Quantitative Finance, 4(2), 176–190.

    Article  Google Scholar 

  • Brogaard, J. (2010). High frequency trading and its impact on market quality. Northwestern University Kellogg School of Management Working Paper 66.

  • Brogaard, J., Hendershott, T., & Riordan, R. (2013). High frequency trading and price discovery. Review of Financial Studies,. https://doi.org/10.2139/ssrn.1928510.

    Article  Google Scholar 

  • Challet, D., & Stinchcombe, R. (2001). Analyzing and modeling 1+1d markets. Physica A: Statistical Mechanics and its Applications, 300(1), 285–299.

    Article  Google Scholar 

  • Chiarella, C., & Iori, G. (2002). A simulation analysis of the microstructure of double auction markets. Quantitative Finance, 2(5), 346–353.

    Article  Google Scholar 

  • Chiarella, C. & Iori, G. (2004). The impact of heterogeneous trading rules on the limit order book and order flows. Quantitative Finance Research Centre Research Paper (152).

  • Chiarella, C., Iori, G., & Perelló, J. (2009). The impact of heterogeneous trading rules on the limit order book and order flows. Journal of Economic Dynamics and Control, 33(3), 525–537.

    Article  Google Scholar 

  • Cui, W. & Brabazon, A. (2012). An agent-based modeling approach to study price impact. In 2012 IEEE conference on [proceedings] computational intelligence for financial engineering & economics (CIFEr) (pp. 1–8). IEEE Press.

  • Daniel, G. (2006). Asynchronous simulations of a limit order book. Ph.D. thesis, University of Manchester.

  • Danielsson, J. & Zer, I. (2012). Systemic risk arising from computer based trading and connections to the empirical literature on systemic risk. UK Government Office for Science, Foresight Driver Review—The Future of Computer Trading in Financial Markets. http://www.bis.gov.uk/assets/foresight/docs/computer-trading/12-1062-dr29-systemic-risk-from-computer-based-trading.pdf. Accessed 13 May 2016.

  • Dawid, H., Gemkow, S., Harting, P., & Neugart, M. (2009). Spatial skill heterogeneity and growth: an agent-based policy ananlysis. Journal of Artificial Societies and Social Simulation, 12(4), 5.

    Google Scholar 

  • Dawid, H., Gemkow, S., Harting, P., & Neugart, M. (2012). Labor market integration policies and the convergence of regions: the role of skills and technology diffusion. Journal of Evolutionary Economics, 22(3), 543–562.

    Article  Google Scholar 

  • Dawid, H., & Neugart, M. (2011). Agent-based models for economic policy design. Eastern Economic Journal, 37(1), 44–50.

    Article  Google Scholar 

  • Deissenberg, C., Van Der Hoog, S., & Dawid, H. (2008). Eurace: A massively parallel agent-based model of the european economy. Applied Mathematics and Computation, 204(2), 541–552.

    Article  Google Scholar 

  • Easley, D., de Prado, M., & O’Hara, M. (2012). Flow toxicity and liquidity in a high-frequency world. Review of Financial Studies, 25(5), 1457–1493.

    Article  Google Scholar 

  • Farmer, D. & Skouras, S. (2011). An ecological perspective on the future of computer trading. UK Government Office for Science, Foresight Driver Review—The Future of Computer Trading in Financial Markets. http://www.bis.gov.uk/assets/foresight/docs/computer-trading/11-1225-dr6-ecological-perspective-on-future-of-computer-trading.pdf. Accessed 13 May 2016.

  • Friederich, S. & Payne, R. (2011). Computer based trading, liquidity and trading costs. UK Government Office for Science, Foresight Driver Review—The Future of Computer Trading in Financial Markets. http://www.bis.gov.uk/assets/foresight/docs/computer-trading/11-1240-dr5-computer-based-trading-liquidity-and-trading-costs.pdf. Accessed 13 May 2016.

  • Government Office For Science (2012). Foresight: The future of computer trading in financial markets. Technical report.

  • Gsell, M. (2008). Assessing the impact of algorithmic trading on markets: A simulation approach. Technical Report 2008/49, Center for Financial Studies, Frankfurt, Main. http://hdl.handle.net/10419/43250. Accessed 13 May 2016.

  • Harris, L. (2002). Trading and exchanges: Market microstructure for practitioners. Oxford: Oxford University Press.

    Google Scholar 

  • Harting, P. (2015). Stabilization policies and long term growth: Policy implications from an agent-based macroeconomic model. Technical Report 6, Bielefeld Working Papers in Economics and Management.

  • Kirilenko, A., Kyle, A., Samadi, M. & Tuzun, T. (2011). The flash crash: The impact of high frequency trading on an electronic market. Available at SSRN 1686004.

  • Linton, O. (2011). What has happened to UK equity market quality in the last decade? An analysis of the daily data. UK Government Office for Science, Foresight Driver Review—The Future of Computer Trading in Financial Markets. http://www.bis.gov.uk/assets/foresight/docs/computer-trading/11-1220-dr1-what-has-happened-to-uk-equity-market-quality-in-last-decade.pdf. Accessed 13 May 2016.

  • Mandes, A. (2015). Microstructure-based order placement in a continuous double auction agent based model. Algorithmic Finance, 4, 105–125.

    Article  Google Scholar 

  • Mandes, A., & Winker, P. (2017). Complexity and model comparison in agent based modeling of financial markets. Journal of Economic Interaction and Coordination, 12, 469–506. https://doi.org/10.1007/s11403-016-0173-0.

    Article  Google Scholar 

  • Muchnik, L., Louzoun, Y. & Solomon, S. (2006). Agent based simulation design principles—Applications to stock market. Practical Fruits of Econophysics, (pp. 183–188). Springer.

  • Olive, D. J. (2008). Applied robust statistics. Preprint M-02-006. http://lagrange.math.siu.edu/Olive/run.pdf. Accessed 3 May 2019.

  • Pacurar, M. (2008). Autoregressive conditional duration models in finance: A survey of the theoretical and empirical literature. Journal of Economic Surveys, 22(4), 711–751.

    Article  Google Scholar 

  • Sornette, D. & Von Der Becke, S. (2011). Crashes and high frequency trading. UK Government Office for Science, Foresight Driver Review—The Future of Computer Trading in Financial Markets. http://www.bis.gov.uk/assets/foresight/docs/computer-trading/11-1226-dr7-crashes-and-high-frequency-trading.pdf. Accessed 13 May 2016.

  • Tsay, R. S. (2005). Analysis of financial time series (Vol. 543). Hoboken: Wiley.

    Book  Google Scholar 

  • Vuorenmaa, T. A. & Wang, L. (2013). An agent-based model of the flash crash of may 6, 2010, with policy implications. Available at SSRN 2336772.

  • Westerhoff, F. (2008). The use of agent-based financial market models to test the effectiveness of regulatory policies. Jahrbücher für Nationalökonomie und Statistik, 228(2), 195.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Alexandru Mandes.

Additional information

Publisher's Note

Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

The author would like to thank Deutscher Akademischer Austauschdienst for the awarded Ph.D. scholarship. Also, the author is grateful to his Ph.D. supervisor, Prof. Dr. Peter Winker, and to the participants at WEHIA 2015 (Sophia Antipolis) and GENED 2015 (Bochum) for their valuable comments and provided inspiration.

Appendices

A The Order Placement Model

As in Mandes (2015), the objective function \(f(\mathbb {1}_{\mathtt {M}},\Delta )\) to be minimized captures the trade-off between execution cost and non-execution risk, balanced by agent’s sense of urgency \(\lambda _u\):

$$\begin{aligned} f(\mathbb {1}_{\mathtt {M}},\Delta ) = \mathtt {cost}(\mathbb {1}_{\mathtt {M}},\Delta ) + \underbrace{ \lambda _u\,(1-\mathbb {1}_{\mathtt {M}})\,\mathtt {risk}(\Delta ) }_{\text {adjusted risk for limit orders}}, \end{aligned}$$
(7)

where \(\mathbb {1}_{\mathtt {M}}\) is the binary decision variable discriminating between a market and a limit order, \(\Delta \) is the relative limit distance for the limit order case, i.e., when \(\mathbb {1}_{\mathtt {M}} = 0\).

The cost component \(\mathtt {cost}(\mathbb {1}_{\mathtt {M}},\Delta )\) captures what is known as the implementation shortfall, i.e., the difference between a given benchmark, such as the current mid-price, and the effective order execution price. In order to discourage execution prices that are too far away beyond a certain short-term volatility threshold \(\sigma _{is}\)—and which are corresponding to highly unfavorable executions—the cost function penalizes executions outside the volatility-range, as follows:

$$\begin{aligned} \mathtt {cost}(\mathbb {1}_{\mathtt {M}},\Delta ) = {\left\{ \begin{array}{ll} \mathtt {imp.sh}(\mathbb {1}_{\mathtt {M}},\Delta ) &{} \mathtt {imp.sh}(\cdot ) \le \sigma _{is}\\ \beta \,\sigma _{is}\,\left( \mathtt {imp.sh}(\mathbb {1}_{\mathtt {M}},\Delta )/\sigma _{is}\right) ^{2} &{} \mathtt {imp.sh}(\cdot ) > \sigma _{is} \end{array}\right. }, \end{aligned}$$
(8)

where \(\beta > 1\) is the penalty parameter.

The execution probability of a limit order expressed by \(\mathtt {risk}(\Delta )\) depends on: order flow proxied by the order book imbalance \(\mathtt {flow}(OBI)\), short-term market volatility \(\mathtt {dyn}(\Delta )\) and order queue in front of the limit order \(\mathtt {queue}(\Delta )\). Also included is an opportunity cost, which is a penalty function of order size \(\mathtt {size}(V)\). The aggregate non-execution risk function is given by:

$$\begin{aligned} \mathtt {risk}(\Delta ) = \mathtt {flow}(OBI)\,\mathtt {size}(V)\,(\alpha _0 + \alpha _1\,\mathtt {dyn}(\Delta ) + \alpha _2\,\mathtt {queue}(\Delta )), \end{aligned}$$
(9)

where parameters \(\alpha _0\), \(\alpha _1\), \(\alpha _2\) tune the general preference for market and limit orders, as well as the distribution of relative limit distances.

The functional forms of the four non-execution risk components are:

$$\begin{aligned} \mathtt {flow}(OBI) = \mu ^{OBI}, \end{aligned}$$
(10)

where \(\mu \) is a parameter and OBI is the Order Book Imbalance indicator, which quantifies the difference between the cumulated volumes up to a certain depth level N on each side of the order book.

$$\begin{aligned} \mathtt {dyn}(\Delta ) = \sigma _{dyn}\,\left( \frac{\Delta -BM_{dyn}}{\sigma _{dyn}}\right) ^2, \end{aligned}$$
(11)

where the range \(\sigma _{dyn}\) and the central benchmark \(BM_{dyn}\) define the bands inside which the non-execution risk for limit orders increases sub-linearly.

$$\begin{aligned} \mathtt {size}(V) = \exp (V^{\eta }), \end{aligned}$$
(12)

where \(\eta \) is a model parameter and the exponential assures that the values are always bigger than one.

Finally, the effective order queue effect \(\mathtt {queue}(\Delta )\) reflects the cumulative size of the book queue situated in front of the client limit order, without assuming any functional form.

B Model Parameters

See Table 8.

Table 8 Model parameters

Rights and permissions

Reprints and permissions

About this article

Check for updates. Verify currency and authenticity via CrossMark

Cite this article

Mandes, A. Impact of Electronic Liquidity Providers Within a High-Frequency Agent-Based Modeling Framework. Comput Econ 55, 407–450 (2020). https://doi.org/10.1007/s10614-019-09891-1

Download citation

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s10614-019-09891-1

Keywords

JEL Classification

Navigation