Wei Thesis PDF
Wei Thesis PDF
Wei Thesis PDF
By
Wei Cui
B.Sc. Hon (Wuhan University)
M.Eng. Hon (Dublin City University)
Research Supervisor:
Prof. Anthony Brabazon
November 2012
Abstract
i
of trading a large order. A typical approach in trading a large order is to
devise a strategy which divides it into numerous pieces and spreads it over
time (usually one trading day). In this study, several execution strategies
with various order types, and a number of simple strategies with one order
type as benchmarks are constructed and evaluated by their effects on prices.
Novelly, these strategies are evolved and evaluated in simulated artificial
markets. The results show that the combined strategies outperform the sim-
ple strategies significantly, suggesting that order choice plays an important
role in determining the price impact of trading large orders.
The results in this thesis suggest that time-of-the-day, agent intelligence
and order choice are important factors affecting price impact, and need to
be considered in the theoretical microstructure models and in the design of
trading strategies.
ii
Acknowledgements
I wish to express my greatest appreciation to Prof. Anthony Brabazon, my
academic supervisor, for his strong support and insightful suggestions. He pro-
vided me with valuable guidance and was always accessible and generous with
his comments whenever I had questions. Without his consistent encouragement
and help, this work would be impossible.
A special note of my sincere gratitude goes to Dr. Michael O’Neill, for his
contribution, encouragement and support. A warm thank to the wonderful FMC2
and NCRA group members for their constant support and all their fruitful discus-
sions.
I want to thank also the two reviewers of my dissertation: Dr. Mark Hutchin-
son and Dr. Conall O’Sullivan, for their involvement in reviewing the manuscript.
I dedicate this thesis to my family and friends who all came along for the ride
and without whom none of this would have been possible. Special thanks go to
Dad and Mom.
I would also like to thank Science Foundation Ireland. This research is based
upon works supported by the Science Foundation Ireland under Grant Number
08/SRC/FM1389.
Last but not least, very special thanks to my dear wife for her unflagging love
and support.
iii
Contents
Abstract i
Acknowledgements iii
Table of Contents iv
List of Figures ix
Publications xiv
1 Introduction 1
1.1 Limit Order Market and Trade Execution . . . . . . . . . . . . . 2
1.1.1 Limit Order Book . . . . . . . . . . . . . . . . . . . . . . 4
1.1.2 Trade Execution . . . . . . . . . . . . . . . . . . . . . . 6
1.2 Research Aims . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
1.2.1 Objectives of Research . . . . . . . . . . . . . . . . . . . 10
1.3 Framework of Research . . . . . . . . . . . . . . . . . . . . . . . 10
1.4 Contributions of Thesis . . . . . . . . . . . . . . . . . . . . . . . 12
1.5 Scope Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.6 Structure of Thesis . . . . . . . . . . . . . . . . . . . . . . . . . 15
iv
I Literature Review 17
2 Market Microstructure 19
2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.2 Overview of Market Microstructure . . . . . . . . . . . . . . . . 20
2.2.1 Market Liquidity . . . . . . . . . . . . . . . . . . . . . . 21
2.2.2 Theoretical Market Microstructure Models . . . . . . . . 22
2.3 Price Impact . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.3.1 Price Impact and Trade Size . . . . . . . . . . . . . . . . 24
2.3.2 Large Price Fluctuations and the Order Book . . . . . . . 27
2.4 Intraday Patterns . . . . . . . . . . . . . . . . . . . . . . . . . . 29
2.4.1 Intraday Price Volatility . . . . . . . . . . . . . . . . . . 31
2.4.2 Intraday Bid-ask Spread . . . . . . . . . . . . . . . . . . 33
2.4.3 Intraday Trading Volume . . . . . . . . . . . . . . . . . . 35
2.4.4 Intraday Market Depth . . . . . . . . . . . . . . . . . . . 37
2.5 Trade Execution Strategies . . . . . . . . . . . . . . . . . . . . . 39
2.5.1 Optimal Trading Strategy . . . . . . . . . . . . . . . . . . 39
2.5.2 Order Submission Strategy . . . . . . . . . . . . . . . . . 43
2.6 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
v
II Experiments 64
vi
6.2 A Zero-intelligence based Model of Limit Order Market . . . . . 154
6.2.1 Specification of Model . . . . . . . . . . . . . . . . . . . 155
6.2.2 Algorithm of Model . . . . . . . . . . . . . . . . . . . . 156
6.3 Experimental Setup . . . . . . . . . . . . . . . . . . . . . . . . . 158
6.3.1 Parameters of Model . . . . . . . . . . . . . . . . . . . . 158
6.3.2 Parameter Estimation . . . . . . . . . . . . . . . . . . . . 158
6.3.3 Simulation Setup . . . . . . . . . . . . . . . . . . . . . . 159
6.4 Results and Discussions . . . . . . . . . . . . . . . . . . . . . . . 161
6.4.1 Results of Probabilities of Events and Limit Order Types . 162
6.4.2 Summary Statistics of Order Sizes and Relative Limit Prices162
6.4.3 Results of Price Impact vs. Trade Size . . . . . . . . . . . 165
6.5 Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
vii
III Conclusions 199
Bibliography 222
viii
List of Figures
ix
4.8 Clean Data for CHDX on Feb 10, 2009 . . . . . . . . . . . . . . 97
4.9 ROB Data Preprocessing Chart . . . . . . . . . . . . . . . . . . . 99
5.1 Price of XOM during Feb. 2009 (from Yahoo Finance) . . . . . . 114
5.2 Intraday Price Volatility (US stocks) . . . . . . . . . . . . . . . . 118
5.3 Intraday Price Volatility (UK stocks) . . . . . . . . . . . . . . . . 119
5.4 Intraday Proportional Bid-Ask Spread (US stocks) . . . . . . . . . 121
5.5 Intraday Proportional Spread (UK stocks) . . . . . . . . . . . . . 122
5.6 Intraday Time-weighted Proportional Spread (UK stocks) . . . . . 123
5.7 Intraday Bid Depth in Share (US stocks) . . . . . . . . . . . . . . 126
5.8 Intraday Ask Depth in Share (US stocks) . . . . . . . . . . . . . . 127
5.9 Intraday Depth in Share (UK stocks) . . . . . . . . . . . . . . . . 128
5.10 Intraday Bid Depth in Share (UK stocks) . . . . . . . . . . . . . . 129
5.11 Intraday Ask Depth in Share (UK stocks) . . . . . . . . . . . . . 130
5.12 Intraday Near Depth in Share (UK stocks) . . . . . . . . . . . . . 131
5.13 Intraday Near Bid Depth in Share (UK stocks) . . . . . . . . . . . 132
5.14 Intraday Near Ask Depth in Share (UK stocks) . . . . . . . . . . 133
5.15 Intraday Trading Volume in Share (US stocks) . . . . . . . . . . . 136
5.16 Intraday Trading Volume in Value (US stocks) . . . . . . . . . . . 137
5.17 Intraday Trading Volume in Share (UK stocks) . . . . . . . . . . 138
5.18 Intraday Trading Volume in Value (UK stocks) . . . . . . . . . . 139
5.19 Intraday Trade Frequency (US stocks) . . . . . . . . . . . . . . . 140
5.20 Intraday Trade Frequency (UK stocks) . . . . . . . . . . . . . . . 141
5.21 Intraday Trade Size (US stocks) . . . . . . . . . . . . . . . . . . 142
5.22 Intraday Trade Size in Share (UK stocks) . . . . . . . . . . . . . 143
5.23 Intraday Trade Size in Value (UK stocks) . . . . . . . . . . . . . 144
5.24 Intraday Price Impact Ratio (US stocks) . . . . . . . . . . . . . . 147
5.25 Intraday Price Impact Ratio (UK stocks) . . . . . . . . . . . . . . 148
x
6.1 Price Impact vs. Trade Size in the LSE market . . . . . . . . . . . 166
6.2 Price Impact vs. Trade Size in the simulated market . . . . . . . . 167
xi
List of Tables
xii
4.10 Parameters for Removing Outliers . . . . . . . . . . . . . . . . . 92
4.11 Cleaning Quote Data. . . . . . . . . . . . . . . . . . . . . . . . . 93
4.12 Cleaning Trade Data. . . . . . . . . . . . . . . . . . . . . . . . . 94
xiii
Publications
Parts of this thesis have featured in various publications. These include:
Journal Article:
Book Chapter:
Conference Papers:
xiv
• Cui, W., Brabazon, A. and O’Neill, M. (2010). Evolving Efficient Limit Or-
der Strategy Using Grammatical Evolution. Proceedings of the 2010 IEEE
Congress on Evolutionary Computation, pp. 1-6, Barcelona, Spain. (Cui
et al., 2010d)
Conference Abstract:
xv
Chapter 1
Introduction
This thesis is concerned with the effect of trading on the price of a financial se-
curity, that is price impact. Understanding price impact is a fundamental task in
finance, as price impact is one of the basic mechanisms determining price forma-
tion. In one of the seminal papers on price impact, Black (1971) stated that large
order execution would always exert an impact on price, irrespective of the method
of execution or technological advances in market structure. Due to the availabil-
ity of transaction-level financial data, an increasing number of studies have been
devoted to the analysis of price impact in the last two decades (Bouchaud et al.,
2009).
Recent years have seen the emergence of an important technological prod-
uct of electronic trading, namely Algorithmic Trading (AT), which has received
considerable public attention and is commonly defined as the use of computer
programs to automate the trading process which encompasses making trading de-
cisions, submitting orders and managing orders after their submissions (Hender-
shott et al., 2011). AT now makes up a large portion of the market activity in
multiple financial markets ranging from equities to foreign exchange (Chaboud
et al., 2009), to derivative (Mishra et al., 2012) markets. It accounted for more
1
than 70% of equity trades in the U.S. by 2009 (Hendershott et al., 2011). Signif-
icant volumes traded using AT are also found in Asian markets (Decovny, 2008;
Grant, 2012) and European markets (Hendershott & Riordan, 2012).
The widespread use of AT has stressed the importance of studying price im-
pact as understanding price impact is crucial for the design of algorithmic trading
strategies. Moreover, the significance of the study of price impact is also illus-
trated by the “Flash Crash” of May 6, 2010. An important contribution in trig-
gering this event was the extremely rapid execution of a large order of futures
contracts. From this point of view, understanding price impact is helpful for fi-
nancial regulators to monitor markets.
The research objective of this thesis is to empirically investigate price impact,
aiming to gain a better understanding of the intraday behaviours of price impact
and the factors affecting price impact. This thesis contributes to the literature on
market microstructure.
The rest of this chapter is organised as follows. The next section offers some
background information relevant to this thesis, including a description of market
mechanism and a brief introduction to trade execution. The research aims and
objectives of this thesis are then outlined. Following from this is a short overview
of the research framework, along with the contribution of the thesis and its scope
limitations. An overview of the structure of the remainder of this thesis then
completes the chapter.
2
trading systems have gradually replaced the role of designated market makers.
Many securities exchanges have set up new limit order markets, or converted tra-
ditional dealer markets to hybrid ones, which allow trading via a blend of an elec-
tronic trading platform and a traditional floor broker system.
• Examples of pure limit order markets include Tokyo Stock Exchange, Hong
Kong Stock Exchange, Paris Bourse, Toronto Stock Exchange, Australian
Stock Exchange, Shanghai Stock Exchange, and Singapore Exchange.
• Examples of hybrid markets include the New York Stock Exchange (NYSE)
and NASDAQ.
The electronic revolution has also brought many off-exchange trading venues,
including electronic communication networks (ECNs) and dark pools. Examples
of ECNs include ArcaEdge, BATS Chi-X, and Turquoise. In contrast to ECNs and
limit order markets where order and quote information are visible, participants in
dark pools cannot see the orders placed by the other participants. Examples of
dark pools include Instinet, Liquidnet, and POSIT.
This thesis focusses attention on limit order markets which are the prevalent
trading mechanism in the world’s major stock exchanges. A brief introduction to
the limit order market mechanism is provided in the next section followed by a
description of the trade execution problem.
3
1.1.1 Limit Order Book
Today more than half of the stock exchanges around the world are limit order
markets which operate a limit order book to match buyers and sellers (Jain, 2003).
One advantage of an electronic limit-order-book is the greater transparency of-
fered by these systems when compared with dealer market settings. Price quotes
and transactions are visible to all participants which generally improves the effi-
ciency of price discovery, thus promoting market confidence (Gould et al., 2011;
Parlour & Seppi, 2008). It also promotes competition as dealers/market makers
are encouraged to post the best prices to attract order flow (CFA, 2009).
In a limit order market, traders can either submit a limit order or a market
order. A market order is an order to buy or to sell a specified number of shares. It
guarantees immediate execution but provides no control over its execution price.
In contrast, a limit order is an order to buy or to sell a specified number of shares at
a specified price. It provides control over its execution price but does not guarantee
its execution.
Table 1.1: Order Book 1 Table 1.2: Order Book 2
Bid Ask Bid Ask
Shares Prices Prices Shares Shares Prices Prices Shares
300 50.19 50.22 200 300 50.19 50.22 200
200 50.18 50.23 300 500 50.18 50.23 300
400 50.17 50.24 100 400 50.17 50.24 100
500 50.16 50.25 300 500 50.16 50.25 300
300 50.15 50.26 200 300 50.15 50.26 200
100 50.14 50.27 400 100 50.14 50.27 400
Table 1.1 shows a sample order book, where all the buy and sell orders are
visible/transparent to traders in the market. It consists of two queues which store
buy and sell limit orders, respectively. Buy limit orders are called bids, and sell
limit orders are called offers or asks. The highest bid price on the order book is
called best bid, and the lowest ask price on the order book is called best ask. The
4
Table 1.3: Order Book 3 Table 1.4: Order Book 4
Bid Ask Bid Ask
Shares Prices Prices Shares Shares Prices Prices Shares
300 50.19 50.22 100 300 50.19 50.23 100
500 50.18 50.23 300 500 50.18 50.24 100
400 50.17 50.24 100 400 50.17 50.25 300
500 50.16 50.25 300 500 50.16 50.26 200
300 50.15 50.26 200 300 50.15 50.27 400
100 50.14 50.27 400 100 50.14 50.28 300
difference between best bid and best ask is called bid-ask spread. Prices on the
order book are not continuous, but rather change in discrete quanta called ticks.
Orders in a limit order market arrive stochastically in time. The price limit of
a newly arrived order is compared to those of orders already held in the system to
ascertain whether there is a match. If so, the trade occurs at the price set by the
first order. The set of unexecuted limit orders held by the system constitutes the
dynamic order book, where limit orders can be cancelled or modified at any time
prior to their execution. Limit orders on the order book are typically (depending
on market rules) executed strictly according to (1) price priority and (2) time pri-
ority. Bid (ask) orders with higher (lower) prices get executed first with time of
placement being used to break ties. A buy (sell) market order is executed at the
best ask (bid) price. The limit order book is highly dynamic, because new limit
orders will be added into the order book, and current limit orders will get executed
or cancelled from the order book throughout the trading day. Table 1.2 shows the
order book after a trader submits a buy limit order with 300 shares placed at price
50.18. Table 1.3 shows the order book after a trader submits a buy market or-
der with 100 shares. Table 1.4 shows the order book after a trader submits a buy
market order with 300 shares.
Apart from market and limit orders, some stock exchanges also offer hid-
den/iceberg orders to allow traders to conceal the total size of a large limit order.
5
Such orders consist of two components, a small component whose size is visi-
ble in the order book and a larger hidden component with a size known only to
the order submitter. The hidden component is exposed to the market gradually
through execution of the visible part of the order (Aitken et al., 2001; Biais et al.,
1995). Many electronic trading platforms have introduced this kind of order, in-
cluding Euronext, the Toronto Stock Exchange, the London Stock Exchange, and
XETRA. Hidden limit orders are often used by large liquidity traders to hide their
intent to trade (Bongiovanni et al., 2006). However, iceberg orders typically ex-
hibit a less favorable time priority compared with pure limit orders (Bessembinder
et al., 2009; Esser & Monch, 2007). After the visible portion of an iceberg order
is completely matched, other visible limit orders at the same limit price that were
entered before the new portion is displayed take priority.
6
which can be known before any trade is made. The last two items are not directly
measurable a priori. These five costs are explained as follows.
2. Fees are charged by exchanges during the execution process. These are often
bundled into the total commission paid to brokers.
3. Bid-ask spread is the difference between the best available bid and ask price
in markets.
4. Market impact, also known as price impact, is the effect of a trade on the price
of the asset. The most obvious illustration of price impact is that a buying
event always drives the price up and a selling action pushes the price down.
For example, the mid-quote (the average of the best bid and the best ask)
of a stock drops from $200 to $199.6 (supposed) after a market sell order is
executed, where the price decline is the effect caused by trading the sell order.
5. Opportunity cost arises when an order fails to be fully executed. For example,
a trading task of selling 120,000 shares at $200 per share is supposed to be
finished by the end of the trading day, but only 100,000 shares are sold by the
end of the day. At that time, the price drops to $198. The opportunity cost
of failing to execute this entire order is $40,000 which is calculated as 20,000
multiplied by the $2 price decline per share.
Many empirical studies (Chan & Lakonishok, 1995, 1997; Collins, 1991; Kraus
& Stoll, 1972) indicate that the visible components of trading costs are much
7
smaller than the invisible components and price impact always dominates total
trading cost. As markets have become electronic, commissions and fees have
been driven down. In the optimal trading literature (Alfonsi et al., 2010; Almgren
& Chriss, 1999, 2000; Bertsimas & Lo, 1998; Hora, 2006; Obizhaeva & Wang,
2012), price impact cost is equated with trading cost.
A practical problem arising in limit order markets is how to buy or sell large
quantities of an asset with minimum execution costs. Executing a large order at
once will cause significant price impact cost. The most obvious way to reduce this
cost is to break the large order into a number of smaller pieces and spread them
over time. A trade execution strategy is devised to minimise the price impact cost.
1. Does price impact on the LSE and the NYSE exhibit an intraday pattern? The
literature on market microstructure has discovered many intraday patterns of
a number of interesting variables in financial markets. For example, bid-ask
spread on the NYSE exhibits a U-shaped intraday pattern (Lee et al., 1993):
the spread is relatively higher at market open and market close than during
the middle of the trading day. However, only a few studies pay attention to
the intraday behaviour of price impact. Chan (2000) finds that price impact
displays a U-shaped pattern over the trading day on the Hong Kong Stock
Exchange. This thesis aims to examines the intraday behaviour of price impact
in US and UK markets, using the data drawn from the NYSE-Euronext TAQ
database and the LSE ROB database.
2. Does agent intelligence affect the magnitude of price impact? Previous studies
8
(e.g. Farmer et al. (2004); Hasbrouck (1991); Lillo et al. (2003)) concerning
price impact find that price impact is influenced by trade size and the state
of the limit order book, and is a concave function of trade size. Some of
these studies (Farmer et al., 2004; Hopman, 2007; Weber & Rosenow, 2006)
argue that this concavity is due to agent’s selective liquidity taking, namely
agents conditioning their trade size on market liquidity. The second aim of
this thesis is to investigate whether agent intelligence plays an important role
in determining price impact.
3. Does order choice affect price impact when trading large orders? Controlling
price impact when trading a large order is an important issue in financial mar-
kets. Many studies have been devoted to this problem. However, only market
orders are examined in these studies. The third aim of this thesis is to examine
the influence of order choice on the price impact of trading a large order.
9
order choice between market order and limit order plays an important role in de-
termining price impact when trading a large order.
The following objectives need to be achieved in order to fulfill the research aims
of this thesis.
3. Develop an algorithm for rebuilding the limit order book using the LSE ROB
data.
10
To address research aims two and three, an agent-based modelling (ABM)
approach is adopted. This is a computerised simulation consisting of a number
of agents. The emergent properties of an agent-based model are the result of
“bottom-up” processes, where the decisions of individual and interacting agents at
a microscopic level determine the macroscopic behavior of the system (LeBaron,
2006; Samanidou et al., 2007; Tesfatsion, 2006). Unlike classical micro-economic
models, the concept of equilibrium has little meaning in ABM-simulated systems,
as the interactions of the agents result in continual movement between system
states. The collective emergent property of the complex system makes the whole
become more than the sum of its parts.
Agent-based modelling approach has been applied in the fields of economics
and finance for many years. One of the earliest agent-based models in concepts
was developed by the Nobel laureate Thomas Schelling (1971). It is now widely
used in economic and finance as an alternative research methodology and offers
a number of advantages. The first is that most agent-based stock markets exhibit
some stylised facts, like volatility clustering and fat tails of price returns, which
can not be explained by traditional theoretical models (Chen et al., 2012). Another
advantage is that it is very easy to analyse one specific factor by isolating it in the
simulation. On the contrary, it is often difficult to isolate the effects resulting from
a specific factor from others with econometric approaches.
In order to investigate whether agent intelligence and order choice decision
affect price impact, agent-based modelling is used to simulate artificial markets
which isolate these two factors. Chapter 6 simulates an artificial market consist-
ing of intelligence-isolated agents, namely zero-intelligence agents, in order to
investigate the price impact generated by zero-intelligence agents. In Chapter 7,
artificial markets considering agent’s order choice decisions are simulated, as well
as artificial markets isolating agent’s order choice decisions, in order to evaluate
11
the effect of order choice on the price impact when trading a large order. In this
thesis, the artificial market settings possess the salient features of electronic limit
order markets: continuous trading, a visible book of orders, price-time priority
rules, instantaneous trade reporting rules, order cancellation capabilities, and both
limit order and market order functionality.
This thesis analyses intraday behaviours of price impact, using the recent
data drawn from the NYSE-Euronext TAQ database and the LSE ROB
database. While many studies analyse intraday behaviours of price volatil-
ity, bid-ask spread, trading volume and market depth, little attention has
been paid to price impact in UK and US markets. This thesis aims to shed
12
light on this, and for the first time documents intraday patterns of price im-
pact in UK and US markets.
This thesis analyses intraday behaviours of market liquidity, using the data
drawn from the NYSE-Euronext TAQ database and the LSE ROB database.
Unlike previous studies on intraday phenomena which only examined the
market depth at the best level of the limit order book, this thesis for the first
time analyses the intraday behaviour of market depth for up to ten levels
of the limit order book in the UK market. Moreover, since the previous
studies on intraday phenomena are dated, this thesis aims to provide up-
to-date evidence on intraday behaviours of price volatility, bid-ask spread,
market depth, trading volume, trading frequency and trade size in UK and
US markets.
Several studies argue that the concavity of price impact is due to selective
liquidity taking. However, no studies have been conducted to investigate
this. This thesis for the first time investigates whether agent intelligence
plays an important role in determining the magnitude of price impact, and
provides evidence supporting this hypothesis.
Many studies examine how to control price impact when trading a large or-
der. However, these studies only consider market orders. This thesis for the
13
first time analyses whether order choice affects the price impact of trading
a large order, and demonstrates that it does.
14
consider the resilience of price impact. For example, Gatheral et al. (2011) models
that the price impact decays exponentially over time.
While studying the issue of controlling price impact, attention is limited to the
trading of a large order occurring in one trading venue. This could be extended to
the case where a large order is being traded across multiple trading venues. For
example, Foucault & Menkveld (2008) empirically examine the smart order rout-
ing systems, and Rawal (2010) discusses the importance of intelligent decision-
making in order routings.
15
Ultra high-frequency data from the LSE and the NYSE-Euronext is used to
analyse the intraday behaviour of price impact, as well as intraday features
of market activity and market liquidity.
• Chapter 8 - Conclusions
16
Part I
Literature Review
17
In Part I the relevant literature is reviewed and the main methodology of re-
search is described.
In Chapter 2, the theoretical background of this thesis, that is market mi-
crostructure, is introduced, and a brief overview is provided. Previous work on
price impacts, intraday patterns and trade execution is reviewed, and gaps of re-
search are revealed.
In Chapter 3, agent-based modelling approach is introduced, and framework
of modelling is described. Prior work on artificial markets modelling is reviewed.
18
Chapter 2
Market Microstructure
2.1 Introduction
The theoretical foundation for the studies in this thesis is found primarily in the
field of market microstructure. Market microstructure is formally defined by
O’Hara (1995) as “the study of the process and outcomes of exchanging assets
under explicit trading rules”.
Studies on market microstructure are helpful in understanding the returns to
financial assets and how financial markets become efficient. Moreover, it has
immediate application in understanding the design of trading strategies and the
regulation of financial markets.
19
The domain of market microstructure is wide and broad. An overview of this
area is provided in section 2.2. This thesis is related to several streams of market
microstructure research. The following topics will form the focus of this chapter.
• Price impact.
• Intraday pattern.
2. Market structure and design. This theme focuses on how different market
structures affect the speed and quality of price discovery, liquidity, and the
cost of trading, and concerns how to design a better market. The design of
a market determines its market microstructure, and thus affects the quality of
the market.
20
3. Market transparency. It is defined as the ability of market participants to
observe information about the trading process (O’Hara, 1995). This theme
focuses on how various levels of market transparency influence the process of
price formation.
1. Market tightness is the ability to execute a buy order and a sell order of an asset
at the same price at the same time. The proportional quoted spread (Copeland
& Galai, 1983) is often used as an approximation of liquidity costs, measuring
hypothetical trading cost.
21
2. Market depth is the ability to execute a sale / purchase of a certain amount of
an asset without influence on the price.
4. Market resiliency measures the speed at which liquidity recovers from shocks.
Market liquidity is affected by market structure. Market makers are the only
suppliers of liquidity in dealer markets. However, the role of market makers
has largely been superceded, as most market have adopted electronic limit or-
der books. In a limit order market, liquidity is supplied by market participants
themselves, and is illustratd by the state of the limit order book. The limit order
book evolves over time as matched limit orders are deleted from the order book
and as new incoming limit orders are added into the order book.
1. Inventory based model. These models try to explain security prices from in-
ventory imbalances of market makers. The market maker maintains the bid-
ask spread in order to compensate the risk of holding inventory.
2. Information based model. The second class of models is based on the idea of
asymmetric information. Traders can either be informed or uninformed (Bage-
hot, 1971). If they posses private information on the value of the asset, they
are called informed traders. If they trade in order to rebalance their positions,
22
they are called liquidity or uninformed traders. A consequence of asymmetric
information is that trading itself conveys information.
3. Limit order market model. The third class of models tries to explain the price
formation process on the limit-order-book market. In a limit order market, the
difference between informed traders and uninformed traders is not obvious.
Moreover, unlike the dealer market, the limit order market has no specific
market maker who maintains market liquidity. The roles of supplying and
demanding liquidity are played by the market participants by using either limit
orders or market orders. This category of models has a particular focus on
analysing how order submission strategies and other aspects of trading affect
the price of an asset in limit order markets.
Financial markets are constantly evolving and becoming more complex. From
2005 to 2009, the average trade size on the NYSE has decreased from 724 shares
to 268 shares and the average daily trades have increased from 2.9 million to
22.1 million (Durbin, 2010). Thus, one challenge faced by researchers in market
microstructure is the dramatically growing amount of data.
23
large orders on the NYSE had a temporary price impact and a permanent price
impact. This fact is later confirmed by Biais et al. (1995), Coppejans et al. (2003),
Evans & Lyons (2002), Holthausen et al. (1987), and Holthausen et al. (1990).
They argue that the temporary impact is related to the trade size and market liq-
uidity, and the permanent impact is associated with information. Recently, a few
studies have different views on price impact. Bouchaud et al. (2004) present the
view that price impact is fixed and temporary. Farmer et al. (2006) argue that price
impact is variable and permanent.
The explanation for price impact in earlier studies asserts that trade affects
price because it contains information, and this effect increases with trade size.
French & Roll (1986) show that price movements are due to private information
conveyed through trading. Hasbrouck (1991) proposes a method to measure the
information content in a trade.
The relationship between price impact and trade volume has been extensively
studied in the financial market microstructure literature. The conclusion of previ-
ous studies is that the price impact of a market order is a concave function of order
size, and this has been validated using transaction-level data in Lillo et al. (2003);
Farmer & Lillo (2004); Farmer et al. (2005b); Lim & Coggins (2005a); Hopman
(2007).
Price impact is typically measured as the difference of mid-quote price before
the order arrives and the mid-quote price after it has been executed. The functional
form is
p = γ ∗ vµ
24
Table 2.1: Price Impact Function of Trade Size
25
Dufour & Engle (2000) nonlinear NYSE (TORQ) 1-Nov-1990 to 31-Jan-1991
Lillo et al. (2003) sign(x)|x|β /C λ β = 0.2 − 0.5; λ = 0.4 NYSE 1995-1998
Potters & Bouchaud (2003) ℜ(τ )ln(x) Paris Bourse; NASDAQ 2002
Gabaix et al. (2003) kxβ β = 0.5 NYSE 1994-1995
Farmer & Lillo (2004) kxβ β = 0.26 LSE May 2000 to Dec. 2002
β λ
Lim & Coggins (2005a) kx /C ASX 2001-2004
Farmer et al. (2005b) kxβ β = 0.25 LSE (SETS) 1-Aug-1998 to 30-Apr-2000
Hopman (2007) kxβ + ϵ β = 0.37 Paris Bourse 4-Jan-1995 to 19-Sep-1999
Bouchaud et al. (2009) kxβ β = 0.3 LSE 2002
where p is the price impact of a market order with order size v, γ and µ are
constants of the function. The specific constants of the function vary in different
markets and at different time periods. Although previous literature has agreement
on the concavity functional form of price impact, it is inconclusive in the specific
functional form. A comparison of the empirical studies on immediate price impact
is shown in Table 2.1.
Previous empirical studies show that large trades have less marginal price im-
pact than small trades. Three explanations for the concavity result from previous
literature are summarised in Bouchaud et al. (2009).
The first one is from the information context as postulated by Barclay &
Warner (1993). The price impact reflects the informativeness of trades, which
increase with their private information content. The concavity is due to informed
traders’ “stealthy trading”, keeping their orders small in order to avoid revealing
their superior knowledge. Hasbrouck (1991) propose a VAR approach to measure
the information content in each trade.
The second explanation claims that the concavity is due to the shape of the
limit order book. The depth in the order book as a function of the price will
determine the market impact for a market order as a function of its size (Daniels
et al., 2003). Bouchaud et al. (2002) have observed that the average order book
on the Paris Bourse has a maximum away from the best bid/ask. Smaller market
orders are faced with less liquidity than larger ones in such limit order markets.
This explanation is ruled out by Weber & Rosenow (2006) and Farmer & Zamani
(2007). In Bouchaud et al. (2004), the concave shape of the impact as a function
of the volume is understood as an order book effect, where the average size of the
queue increases with depth.
The third explanation is called selective liquidity taking (Farmer et al., 2004).
Traders with large orders to trade are more patient while smaller order traders are
26
less patient. Large order traders may wait for periods of higher liquidity (Weber
& Rosenow, 2006; Hopman, 2007).
Market liquidity plays a significant role in the price formation process. The role of
real information appears to be rather thin when there are large price fluctuations.
Price impact is affected by the market liquidity. The price responses to trades of
the same size is highly variable. Many studies show that the random walk nature
of price changes on short timescales is not due to the unpredictable nature of in-
coming news, but appears as a dynamic consequence of the competition between
market participants (Bouchaud et al., 2004). Recent work suggest that liquid-
ity fluctuations play an essential role in price formation (Farmer & Lillo, 2004;
Farmer et al., 2004; Gillemot et al., 2005; Lillo et al., 2005; Weber & Rosenow,
2006). In price formation, liquidity fluctuations dominate over fluctuations in
transaction size. Joulin et al. (2008) provide direct evidence that large transac-
tion volumes are not responsible for large price jumps, and conjecture that most
price jumps are induced by order flow fluctuations close to the point of vanishing
liquidity.
Recently, several papers cast doubts on concavity, and provide evidence that
the concave shape cannot be a property of the true price impact a trader in an actual
market would observe. Weber & Rosenow (2005) found a strong anticorrelation
between price changes and order flow. Weber & Rosenow (2006) found little
evidence that price changes larger than five standard deviations can be explained
by an extreme order flow alone. They found that a low density of limit orders in the
order book, i.e. limited liquidity, was a necessary prerequisite for the occurrence
of extreme price fluctuations. Taking into account both order flow and liquidity,
large stock price changes can be explained quantitatively. There are two reasons to
27
explain why this concave shape (of volume imbalance) cannot be a property of the
true price impact a trader in an actual market would observe (Weber & Rosenow,
2005). Firstly, such a concave price impact would be an incentive to do large
trades in one step instead of breaking them up into many smaller ones as is done
in practice. Secondly, in the presence of bluffers in the market, the enforcement of
a strictly linear price impact is the only way in which a market maker or liquidity
trader can protect herself against suffering losses.
The above review of literature on price impact has shown that price impact is
determined by trade size as well as the state of the limit order book when the trade
occurs. However, the two following questions concerning price impact are still
unanswered.
28
2.4 Intraday Patterns
Intraday behaviour of different market variables have been analysed extensively
in previous literature which dates back to Wood et al. (1985) and Harris (1986).
One of the interesting findings is that many of these variables demonstrate a U-
shaped pattern over the trading day: the levels of these variables are relatively
high at the beginning and at the end of the trading day, and relatively low in the
middle of the day. The empirical evidence on intraday behaviours of these market
variables helps us build theoretical models explaining the intraday behaviour of
the underlying market.
Different shapes of intraday patterns are defined as below.
• U-shaped pattern: values at market open and close are relatively higher than
the values in the middle of the trading day
• Inverted U-shaped pattern: values at market open and close are relatively
lower than the values in the middle of the trading day
• J-shaped pattern: values at market close are relatively higher than the values
at the rest of the trading day
• Reverse J-shaped pattern: values at market open are relatively higher than
the values at the rest of the trading day
• S-shaped pattern: values at market open are relatively lower than the values
in the middle of the trading day, and values at market close are relatively
higher than the values in the middle of the trading day.
• Reverse S-shaped pattern: values at market open are relatively higher than
the values in the middle of the trading day, and values at market close are
relatively lower than the values in the middle of the trading day.
29
(a) U-shaped (b) Inverted U-shaped
30
There have been a number of studies which have analysed intraday patterns
in financial markets. Admati & Pfleiderer (1988) developed the theoretical foun-
dations of intraday patterns found in financial markets. They argue that both in-
formed and liquidity traders prefer to trade when market is thick, that is when
their trades have little impact on price. Thus at periods when market is thick, both
informed and liquidity traders are willing to trade. Also the strategic interaction
between informed and liquidity traders intensifies the concentration of trading at
these periods of the trading day, leading to the observed intraday pattern of trading
volume.
Another explanation is provided by Brock & Kleidon (1992). They explain the
intraday pattern in a dealer market. They relate the intraday patterns to investors’
demand of transactions during the trading period. Due to the accumulation of
overnight information or due to the imminent non-trading period, investors have
a higher demand for transactions in order to achieve an optimal portfolio mix or
transfer overnight risk at market open and close than for the rest of the trading
day. This motivates the specialist’s interest in exploiting the liquidity inelasticity
at these periods, leading to wide spread and high trading volume at open and close.
More recent studies have attributed the intraday pattern to limit order traders.
Ahn & Cheung (1999) & Chung et al. (1999) show that limit order traders keep the
spread wide in order to offset the high risks of trading against informed traders.
Numerous studies examine the intraday variation of bid-ask spread and document
a U-shaped intraday pattern (as summarised in Table 2.2). The price volatility is
relatively high at market open and close, and relatively low during the middle of
the day. The Hong Kong Stock Exchange exhibits a double U-shaped intraday
pattern on bid-ask spread as shown by Cheung et al. (1994). This is because that
31
Table 2.2: Intraday Pattern: Price Volatility
32
there was a lunchbreak session for two hours in the middle of the trading day at
that time period, dividing the trading day into a morning trading session and an
afternoon trading session, leading to two U-shaped patterns in the morning and in
the afternoon. Hussain (2011), however, observe a reverse J-shaped pattern while
examining the intraday price volatility in the Frankfurt Stock Exchange.
Admati & Pfleiderer (1988) provide an explanation for the U-shaped intraday
pattern on price volatility. Their model predicts that price volatility is related to
informed trading. Prices are more volatile in high-volume periods than in low-
volume periods because high-volume periods attract more informed traders than
low-volume periods which makes prices are more informative at high-volume pe-
riods.
33
Table 2.3: Intraday Pattern: Bid-Ask Spread
34
open and close to offset high adverse selection costs. Similar arguments are pro-
posed by Chung et al. (1999) who show that the U-shaped intraday pattern of
spread on the NYSE largely reflects the intraday behaviour of the spread estab-
lished by limit order traders.
In contrast to the U-shaped pattern noted above, reverse J-shaped intraday
patterns on bid-ask spread are demonstrated by Cai et al. (2004), Hussain (2011),
Koksal (2012) and McInish & Wood (1992). The spread opens wide, narrows
down in the first few hours and is relatively stable for the rest of the trading day.
As explained by the model of Madhavan (1992), the high spread in the morning
is due to greater uncertainty. As information asymmetry is gradually resolved
over the trading day, more market participants become informed by observing the
market, leading to a decline in the spread during the day.
Besides, some studies (Chan et al., 1995; Henker & Wang, 2006; Werner &
Kleidon, 1996) document that the spread declines over the trading day. As pointed
out by Chan et al. (1995), the difference of spread pattern between various markets
can be attributed to the differences in trading structure. A summary of the studies
documenting intraday patterns of the bid-ask spread is provided in Table 2.3.
35
Table 2.4: Intraday Pattern: Trading Volume
36
Other shapes of intraday patterns on trading volume are also observed in prior
literature. Abhyankar et al. (1997) find a two-humped pattern with highs at 9:00
a.m. and 3:00 p.m. on the LSE. This confirms the prediction in Admati & Pflei-
derer (1988), who argue that periods of concentrated trading may occur at some
points in the trading day not necessarily at market open or close. Lee et al. (2001)
show that trading volume exhibits a J-shaped pattern in the Taiwan Stock Ex-
change (TSE): the volume is stable during the day, but increases as market close
approaches and reaches a peak at market close. Vo (2007) observes that trading
volume increases over the trading day in the Toronto Stock Exchange (TrtSe), and
attributes the difference of U-shaped pattern in the NYSE and increasing pattern
in TrtSE to the structural difference between the two exchanges. Hussain (2011)
finds a reverse J-shaped pattern of trading volume in the Frankfurt Stock Exchange
(FSE): the volume is highest at market open, decreases in the first ten minutes and
is stable for the rest of the day.
Market depth has received relatively less attention in the literature on intraday
market phenomena. Both Lee et al. (1993) and Li et al. (2005) document an
inverted U-shaped intraday pattern of market depth on the NYSE. Market depth is
lowest at the opening and then rises monotonically until the close, at which point
it suddenly drops. These findings are corroborated by Ahn & Cheung (1999) and
Vo (2007) who examine the depth on the Hong Kong Stock Exchange and Toronto
Stock Exchange respectively. A summary of these studies is given in Table 2.5.
These studies all report a negative association between intraday spreads and
depth. The depth displays a reverse pattern of the spread: wide spreads are as-
sociated with small depths and narrow spreads are accompanied by large depths.
Lee et al. (1993) show that both depth and spread are associated with trading vol-
37
Table 2.5: Intraday Pattern: Market Depth
ume. In response to increased volume, spread widens and depth drops. This is
consistent with the prediction of the theoretical model of market microstructure in
Easley & O’Hara (1992).
Ahn & Cheung (1999) attribute the reversed U-shaped pattern on depth to the
adverse selection problem for limit order traders. Due to high information asym-
metry at market open and close, limit order traders suffer high expected adverse
selection cost, and thus place passive limit orders in order to protect themselves
from informed trades, leading to an inverted U-shaped intraday pattern on market
depth, as well as a U-shaped intraday pattern on spread. Li et al. (2005) and Vo
(2007) also find limit order traders play an important role in forming the intraday
pattern on market depth.
The above review of literature on intraday phenomena shows that intraday
patterns have been observed in different markets and in different time periods.
However, the shapes of intraday patterns differ across markets and time periods.
Thus, it is necessary to provide up-to-date evidences on intraday phenomena as
the above literature is dated.
38
2.5 Trade Execution Strategies
Trade execution strategies are predefined sets of instructions for trade execution,
which include how best to break up a large order for execution and the actual
mechanisms for placing and managing the orders. When deciding whether or not
to submit an order to the market place an algorithm must decide on an order’s:
• Destination - there are many market destinations and types, which one will
provide the best conditions of execution for the order?
• Management - if a limit order has been submitted, how should this order be
managed post submission?
The literature on trade execution strategies can be classified into two cate-
gories: optimal trading strategies and order submission strategies. The first cat-
egory of studies focuses on how to split a large order in order to minimise price
impact cost. The other investigates how to choose order type and order aggres-
siveness. The following sections review these two streams of research separately.
Bertsimas & Lo (1998) are the first to analyse how to control the implicit execution
cost of trading a large order. They argue that large-order execution problem is a
39
dynamic optimisation problem, and form the basic framework to solve for this
problem.
Supposing that an investor wants to trade a large order S of shares within
1
a fixed finite number of periods T , and denoting St as the number of shares
traded in period t and Pt as the corresponding execution price, the optimal trade
execution problem is how to split the order in order to achieve minimised expected
[∑ ] ∑T
execution cost, namely E T
P S
t=1 t t , where t = 1, ..., T and t=1 St = S..
Almgren Approach
Within this approach, the design of optimal execution strategies are primarily con-
ducted in the context of markets in which the law of one price holds. Trades have
two different types of price impact on the price process of the market. One is
1
The length of a ‘period’ can be some fraction of a single day, e.g., 30 minute interval (Bert-
simas & Lo, 1998).
40
permanent price impact which alters the market price permanently. The other is
temporary price impact which affect only the execution price of the corresponding
trade.
Bertsimas & Lo (1998) assume a linear and permanent price impact function
depending on the trade size, with the objective of minimising the expected cost
of execution. They derive optimal trade execution strategies using stochastic dy-
namic programming. In the case when the asset price process follows a zero-drift
arithmetic random walk, they show that the optimal execution strategy is to break
the trade equally across time. This optimal strategy is independent of the func-
tion of permanent price impact and the dynamic of the asset price, because the
dynamic of the asset price is only affected by the whole trade size and indepen-
dent of the divided pieces. Although the optimal execution strategy derived in this
work seems counter-intuitive, it provides a basic framework to solve the optimal
trade execution problem.
Based on the work of Bertsimas & Lo (1998), Almgren & Chriss (1999, 2000)
introduce a temporary price impact function of trade size. The temporary price
impact depends on the pace of trades. Fast trading causes larger impact on the
dynamic of the asset price than slow trading. In other words, the temporary im-
pact function is used to penalize speedy trades. Thus, the optimal trade execution
strategy depends on the dynamic of the asset price, the permanent impact function
and the temporary impact function. Their objective function is a mean-variance
criterion. With a linear specification of price impact, Almgren & Chriss (1999)
show that the optimal execution strategy quickly finishes all trades over the first
several periods, and Almgren & Chriss (2000) demonstrate that the optimal strat-
egy becomes more aggressive after the volatility increases, and becomes passive
after the volatility decreases.
Although Almgren’s model (Almgren & Chriss, 1999, 2000) is tractable, the
41
assumption of a linear price impact function is inconsistent with empirical find-
ings. A number of studies have extended the model of Almgren/Chriss by con-
sidering nonlinear price impact functions. With a nonlinear specification of tem-
porary price impact, Almgren (2003) shows that the optimal execution strategy is
independent of the scale of trading period and the whole trade size.
Obizhaeva Approach
While Bertsimas & Lo (1998) and Almgren & Chriss (1999, 2000) make compu-
tations feasible and lead to relatively nice and robust trading strategies, they do
not adequately model the empirically observed transience of price impact.
The price-impact-function based models do not take into account the dynamic
property of supply and demand of market liquidity. This property is explicitly
obvious in an limit order market, where the order book is able to rebuild itself
after being hit by a trade, which is referred to as the resilience of the order book.
Obizhaeva & Wang (2012) are the first to model the dynamic supply and de-
mand in a limit-order-book market. They consider a limit order market with an
order book which has a constant density, namely the financial securities are uni-
formly distributed at different levels of the order book. In the case when the price
impact of a trade decays exponentially over time, they show that the optimal ex-
ecution strategy crucially depends on shape of the limit order book and the speed
of its resilience.
Alfonsi et al. (2010) extend Obizhaeva & Wang (2012)’s model by allowing
for nonuniformly distributed shares within the limit order book. In other words,
the density of limit orders is not constant, but varies as a function of price. They
demonstrate that trading is discrete and for an optimal purchasing strategy all
purchases except the first and last are of the same size. Furthermore, the sizes of
the intermediate purchases are chosen so that the price impact of each purchase is
42
exactly offset by the order book resiliency before the next purchase.
A continuous-time generalization of the volume impact version of the model
has been introduced by Predoiu et al. (2011). They restrict trading to buy-only or
sell-only strategies, so price manipulation is excluded by definition. Predoiu et al.
(2011) permit the order book shape to be completely general. All price impact is
transient. Assuming exponential decay of price impact, Fruth et al. (2011) anal-
yse the specific form and regularity of optimal order execution strategies when
liquidity can be time-dependent or even stochastic. Gatheral (2010) analyse the
existence and the behaviour of optimal order execution strategies for certain mar-
ket microstructure parameters. As shown by Alfonsi & Schied (2010) and further
discussed in Gatheral et al. (2011), these results depend strongly on the way in
which nonlinearity of price impact is modelled.
Market and limit orders can be categorised into various aggressivenesses in terms
of their quantities and prices (Biais et al., 1995). For example, a buying limit
order’s level of aggressiveness increases with its limit price and its quantity.
Specifying an order’s aggressiveness is a critical decision which a trader has
to make when he wants to transact an order. This decision directly affects the
quality of trade execution, and indirectly influences the final investment return.
An understanding of the dynamic order submission behaviours will contribute to
our understanding of the dynamic price formation process.
Market orders and limit orders both have their advantages and disadvantages.
Although market orders guarantee order executions, they suffer the cost of paying
higher execution prices. While limit orders provide price improvement over mar-
ket orders, their submissions involve two risks (Handa & Schwartz, 1996). The
first risk is adverse selection risk, also known as free trading option risk (Glosten
43
& Milgrom, 1985), arising from adverse information events which trigger an un-
desirable execution. The other risk is nonexecution risk, which arises when the
market price moves away from the limit price and results in the limit order not
executing. The outcome of the second risk is that the limit order traders suffer
opportunity cost as they have to accept inferior prices.
Empirical studies have shown that different types of market participants have
distinguished preferences concerning order aggressiveness. Keim & Madhavan
(1995a) find that value investors are more likely to use limit orders instead of mar-
ket orders. Aitken et al. (2007) find that limit orders placed by proprietary trading
desks and hedge funds are more aggressive than mutual funds, index funds and in-
surance companies. While Glosten (1994) and Seppi (1997) argue that informed
traders are more likely to use market orders, Bloomfield et al. (2005), Chakravarty
& Holden (1995), Kaniel & Liu (2006), Harris (1998) and Wald & Horriga (2005)
suggest that informed traders use limit orders more often than market orders.
The execution performance of aggressive and passive orders have been in-
vestigated in the previous studies. Generally, passive orders outperform aggres-
sive orders in terms of investment return (Handa & Schwartz, 1996) and trading
cost (Harris & Hasbrouck, 1996). Aggressive orders have larger price impact but
smaller opportunity cost than passive orders (Griffiths et al., 2000). Moreover, the
execution performance of institutional traders and individual traders is compared
by Anand et al. (2005), which finds that aggressive orders placed by institutional
traders outperform those placed by individual traders.
The state of the order book is a critical determinant of traders’ order aggressive-
ness. This assertion has been suggested by recent theoretical developments (Fou-
cault, 1999; Foucault et al., 2005; Goettler et al., 2005; Handa et al., 2003; Liu,
44
2009; Menkhoff et al., 2010; Parlour, 1998; Rosu, 2009), and is supported by
many studies in different markets and over different sample periods. The rest of
this section discusses how various order-book related variables affect the aggres-
siveness of incoming orders.
Bid-ask Spread
Bid-ask spread has a positive relationship with incoming order’s aggressive-
ness (Al-Suhaibani & Kryzanowski, 2000; Beber & Caglio, 2005; Bae et al., 2003;
Biais et al., 1995; Cao et al., 2008; Duong et al., 2009; Ellul et al., 2007; Griffiths
et al., 2000; Hall & Hautsch, 2007; Pascual & Verdas, 2009; Ranaldo, 2004; Ver-
hoeven et al., 2004; Xu, 2009). A decrease in the bid-ask spread makes the use
of aggressive orders more attractive for incoming traders, and an increase in the
spread makes the use of passive orders more tempting. However, this relationship
is influenced by the proportion of patient traders in the trading population (Fou-
cault et al., 2005). If patient (impatient) traders dominate the trading population,
more (less) aggressive orders are submitted than passive orders when the spread
is wide.
Volatility
Prior empirical research is inconclusive on the effect of transient volatility
on order aggressiveness. Most studies (Ahn et al., 2001; Beber & Caglio, 2005;
Bae et al., 2003; Chung et al., 1999; Hall & Hautsch, 2007; Ranaldo, 2004; Ver-
hoeven et al., 2004) support an inverse relation between order aggressiveness and
volatility: when market volatility increases, passive orders are more attractive than
aggressive orders for incoming traders. Ahn et al. (2001) examine the relationship
between order placement and the transitory volatility from different sides of the
markets, and find that more buy (ask) limit orders are placed than buy (ask) market
orders when the volatility arises from the bid (ask) side.
This inverse relation can be explained by the high probability of mispricing an
45
asset in a volatile market which thus raises the cost of market order trading (Fou-
cault, 1999). In other words, higher price volatility means a greater opportunity
of execution an order at a better price. Consistently, Lo et al. (2002) show that
in periods of high volatility, the execution probability of limit orders increases,
which makes passive orders more tempting than aggressive orders.
Other studies provide different results. A positive relationship between order
aggressiveness and volatility is reported in Hasbrouck & Saar (2002); Lo & Sapp
(2010); Wald & Horriga (2005). This positive relation is only documented for
institutional traders in large cap stocks in Duong et al. (2009). Hall & Hautsch
(2006) observe an increase of all kinds of order submission during periods of
high volatility. Cao et al. (2008) find that volatility has a minimal effect on order
aggressiveness. Pascual & Verdas (2009) find that the relationship is affected by
market capitalisation: higher historic volatility suggests limit order submission in
mid-cap stocks, but the opposite phenomenon is observed in large-cap stocks.
Some theoretical models (Foucault, 1999; Handa & Schwartz, 1996) of limit
order market have predicted that price volatility determines the choice between
market and limit orders. Foucault (1999) and Handa & Schwartz (1996) predict
that market order is less attractive than limit orders and thus more limit orders are
submitted to the market than market orders when price is volatile. They attribute
this to asymmetric information between investors. When the market is volatile,
the probability of trading against informed investors increases, leading to higher
expected loss.
Market Depth
Market depth has also been found to matter. The limit order book at the best
quotes generates a crowding out effect which affects subsequent order submis-
sions (Parlour, 1998). The incoming trader is more likely to submit a market
order if the book has a deep depth on the same side, and is more likely to submit
46
a less aggressive order if the book is deep on the opposite side (Al-Suhaibani &
Kryzanowski, 2000; Beber & Caglio, 2005; Cao et al., 2009; Duong et al., 2009;
Ellul et al., 2007; Foucault, 1999; Griffiths et al., 2000; Hall & Hautsch, 2007;
Omura et al., 2000; Parlour, 1998; Peterson & Sirri, 2002; Potters & Bouchaud,
2003; Ranaldo, 2004; Verhoeven et al., 2004; Xu, 2009) . Especially when both
sides of the book are thick, ‘fleeting’ limit orders may happen (Rosu, 2009): some
limit orders placed inside the spread are immediately accepted by some traders
from the other side of the book. These studies reveal that time-to-execution is a
significant concern of limit order traders when execution cost less matters.
In contrast, depth beyond the best quotes has an inverse relation with order
aggressiveness (Goettler et al., 2005). Higher depth above the best ask signals that
the best ask may be too low compared with the fundamental value of the asset, so
that incoming buyers are more likely to use aggressive orders and incoming sellers
are more likely to use passive orders, and vice versa for the case of higher depth
below the best bid.
Eisler et al. (2012) show that market orders on one side of the book attract
compensating limit orders, leading to smaller conditional impact of subsequent
market orders on the same side.
Time of the Day
Order submission strategy is also affected by time of the day (Biais et al., 1995;
Ellul et al., 2007). The placement of less aggressive orders tend to be concentrated
in the morning, whereas more aggressive orders tends to occur late in the trading
day. Passive orders are more likely to happen at the end of the day than in an
earlier period (Foucault et al., 2005), because spread improvement via the use of
limit order is small.
Controlling price impact is important in financial markets. An increasing num-
ber of studies have been denoted to this problem. However, these studies, as
47
reviewed in Section 2.5.1, only adopt market orders, although limit orders are
equally important when traders make decisions on order choice as shown in Sec-
tion 2.5.2. It is still unknown whether order choice plays an important role in
determining price impact when trading a large order.
2.6 Summary
The aim of this chapter was to provide a brief overview of market microstructure
literature and a review of relevant work to this thesis.
Section 2.2 provided a brief overview of the literature on market microstruc-
ture. Market microstructure concerns every aspect of the trading process. The-
oretical models on market microstructure can be classified into three categories:
inventory-based models, information-based models, and limit-order-book models.
As more and more markets adopt limit order books, the number of studies on the
trading process in limit order markets is significantly increasing in recent years.
Section 2.3 offered a review of the literature on price impact. Most prior stud-
ies on price impact have been devoted to the relationship between price impact
caused by market orders and their trade sizes. A nonlinear relationship was dis-
covered by these studies. However, the order size does not tell the whole story
about price impact. Recently, a number of studies have found that most of the ex-
treme price changes are not caused by large trading size, but by the gaps between
different levels of the order book.
Section 2.4 reviewed the literature on intraday phenomena in financial mar-
kets. Previous studies concentrate on four variables measuring market liquidity
and trading activity, which are price volatility, bid-ask spread, trading volume and
market depth. A number intraday patterns with different shapes were observed in
prior literature and were summarised in this section.
48
Section 2.5 reviewed the literature on trade execution strategies. This review
focuses on the literature concerning large-order trading strategies and order sub-
mission strategies. The studies on large-order trading strategies differ in how to
model price impact. One stream of studies decomposes price impact into a tempo-
rary component and a permanent component, while the other stream specifically
considers price impact in the limit order book and models both the immediate ef-
fect of trading on the order book and the resilience of price impact. Most studies
on order submission strategies focus on the relation between order aggressiveness
and the state of the order book.
The review in this chapter identifies a number of research gaps. These are
summarised as follows:
49
It is unknown that whether order choice plays an important role in determining
price impact when trading a large order. This gap is addressed in Chapter 7.
The next chapter will present the methodology adopted in two experimental
studies of this thesis.
50
Chapter 3
51
and becoming more complex, and thus difficult to analyse and understand. ABM
has provided a powerful tool to analyse market behaviours and the effects of the
market mechanism in financial markets. The applications of ABM to financial
markets are vast. The review here can not be exhaustive. For general reviews,
see for example Chen (2007, 2012); Chen et al. (2012); Chiarella et al. (2009a);
Consiglio (2007); Cristelli et al. (2011); Hommes & Wagener (2009); LeBaron
(2000, 2001, 2006); Lux (2009); Samanidou et al. (2007); Tesfatsion (2006).
The rest of this chapter is organised as follows. Section 3.1 briefly reviews the
literature on agent-based financial markets, followed by a description of the core
elements of agent-based market simulation in Section 3.2. An introduction to a
learning algorithm in agent-based modelling, the Genetic Algorithm, is given in
Section 3.3. A summary of this chapter is provided in Section 3.4.
52
market simulation. Their study proposes an agent-based simulation to explain the
1987 crash. The agent-based artificial market with agents that learn their trad-
ing behaviours using genetic algorithm in Palmer et al. (1994) exhibit financial
bubbles. Feldman & Friedman (2010) investigate how human traders and robot
traders behave and interact in a market prone to bubbles and crashes. They find
that human traders have little impact on market crashes as they are more expe-
rienced. Miller (2008) finds that the bubbles and crashes seen in experiments
conducted with robot traders are much less drastic than those with human sub-
jects. This difference is caused by the restriction that robot agents are prohibited
from engaging in actions that could result in a loss and are thus not allowed to
speculate.
Some studies have used agent-based financial markets to study the statistical
regularities, often know as stylised facts, observed in real markets. Examples of
stylised facts are fat tails of price return and volatility clustering (Cont, 2001).
An foreign exchange market with chartist and fundamentalist agents is simulated
in Lux (1998) and exhibits fat tails of price return. LiCalzi & Pellizzari (2003)
produces a leptokurtic distribution of short-term log-returns in an artificial order-
driven market consisting of fundamentalist and Zero Intelligence (ZI) value-based
agents under budget constraints. Their results support the conjecture in Bouchaud
et al. (2002) and Daniels et al. (2003) that the emergence of some of the statistical
properties of order-driven markets is mostly due to their microstructure. Chiarella
& Iori (2002) produce volatility clustering in an artificial markets composed of
fundamentalist, chartist and noise traders. Chiarella et al. (2009b) show that the
chartist strategy is mainly responsible of the fat tails and clustering in their ar-
tificial markets. Their results offer evidence that large price impacts are mostly
caused by the presence of large gaps in the order book.
In addition, ABM has been applied to other problems in finance, like tests of
53
economic theories (Chen & Yeh, 2002), market design (Darley & Outkin, 2007),
option pricing (Suzuki et al., 2009), evaluation of automated trading strategies
(Izumi et al., 2009), and analysis of liquidity costs (Huang et al., 2012). Chen &
Yeh (2002) use an agent-based stock market with a number of evolving agents to
test both the efficient market hypothesis and the rational expectations hypothesis,
and show that their agent-based model can replicate some economic behaviours
empirically. Darley & Outkin (2007) examine the effect of the tick-size reduc-
tion in the NASDAQ market using an agent-based artificial market. Suzuki et al.
(2009) analyse implied volatility smile and the skewness premium using an agent-
based modelling approach. Izumi et al. (2009) use an artificial market to evaluate
the risks and returns of automated trading strategies in various market environ-
ments and test the market impact of the trading strategies. Huang et al. (2012)
report a higher liquidity costs of market orders in their agent-based order-driven
stock market than in the Taiwan Stock Market.
• agents,
• market mechanism.
3.2.1 Agents
Agents are the essential elements of an agent-based market (LeBaron, 2001). The
agents can range from “active data-gathering decision-makers with sophisticated
54
learning capabilities to passive world features with no cognitive functioning”, ac-
cording to Tesfatsion (2006). Chen (2012) undertakes a comprehensive review of
various types of agents designs.
Intelligent Agents
At one end of the spectrum are intelligent agents who can learn, adapt and evolve.
A variety of techniques from artificial intelligence have been used to model agent
learning. The celebrated example is the Sante Fe Institute Artificial Stock Mar-
ket (SFI ASM) (Arthur et al., 1997). In their model, agents are heterogeneous
in the way they form their expectations. Each agent, possessing a number of
linear forecasting models at any time, learns and evolves by discovering which
forecasting model works best as well as developing new ones from time to time,
via an inductive algorithm, namely the Genetic Algorithm. They show that both
herd effects and systematic speculative profits are possible in an endogenous-
expectations market.
Zero-intelligence Agents
The zero-intelligence (ZI) agents are the other extreme of the spectrum of agent
types. Zero-intelligence modelling was originally pioneered by the Nobel laure-
ate Becker (1962), who showed that some aspects of supply and demand curves
could be understood without any reliance on strategic thinking. Later, it was pop-
ularised by Gode & Sunder (1993). As characterised in the work of Gode &
Sunder (1993), these agents are random behaving agents who randomly generate
buying and selling orders subject to budget constraints. The orders submitted by
impatient traders are executed against patient orders previously submitted to the
market. The patient orders are placed in the order book according to price and
time priorities. Despite their simplicity, ZI agents are able to get a remarkable
55
allocation efficiency in the artificial double auction market. A good review of ZI
agents based artificial markets is given by Iori et al. (2003); Ladley & Schenk
(2009); Zovko & Farmer (2002).
Despite their simplicity, the zero-intelligence artificial markets are able to gen-
erate many non-trivial behaviours seen in real markets. Bak et al. (1997) show that
their zero-intelligence model is able to reproduce phenomena seen in actual mar-
kets, including larger than Gaussian fluctuations at short time scales and some of
the power-law forms of price variations. The zero-intelligence model in Maslov
(2000) can produce approximate several regularities observed in actual markets,
including the autocorrelation of the absolute value of price changes and short-
range correlations in the signs of price movements, as well as the fat tails of price
changes.
Trading Mechanism is a critical design decision which the builder has to con-
sider when creating an agent-based financial market. It relates the agents’ trading
demands represented by their orders and the prices of the market.
Most artificial financial markets implement simplified market mechanisms,
which omit some institutional details of trading, but serve their research needs
sufficiently. One example is the SFI market (Arthur et al., 1997), which imple-
ments a simple market-clearing mechanism. At the end of each trading period, the
market specialist collects the accumulated buy and sell orders of all the agents, and
clears the market at a new market price. If the demand excesses the supply, the
specialist increases the market price, otherwise he decreases the price.
A number of studies have implemented a fairly realistic market, which incor-
porates explicit market microstructure, like a continuous double auction mech-
anism with limit order books. As pointed out in LeBaron (2001), this type of
56
trading mechanism is “most appealing for modelling high-frequency data” and is
only easy to implement when there is no human intervention (like specialists or
market makers) in the price formation process. All ZI artificial markets replicat-
ing a limit order market are of this type. Some examples are Chan et al. (2001);
Raberto & Cincotti (2005); Yang (2002).
The next section presents the Genetic Algorithm, which is often used to simu-
late agent learning in agent-based modellings.
57
Selection
Parents
Recombination
Population &
Mutation
Offspring
Replacement
58
(GA), Genetic Programming (GP) and Grammatical Evolution (GE), have been
used for solving a broad selection of problems, ranging from prediction, asset se-
lection, portfolio optimization, derivatives pricing and credit risk assessment. An
overview of some EC applications in finance can be seen in Brabazon & O’Neill
(2006) and Brabazon et al. (2008).
59
uncovering of technical trading rules (Brabazon & O’Neill, 2006).
A particular strength of the methodology is that the form of the model need
not be specified a priori by the modeler. This is of particular utility in cases,
such as in this study, where there is a theoretical or intuitive idea of the nature
of the relevant explanatory variables, but a weak understanding of the functional
relationship between the explanatory and the dependent variable(s). GE does not
require that the model form is linear, nor does the method require that the measure
of model error used in model construction is a continuous or differentiable func-
tion. Another useful feature of a GE approach is that it produces human-readable
rules that have the potential to enhance understanding of the problem domain.
Interestingly, GP/GE methods enjoy wide application beyond finance (O’Neill &
Brabazon, 2009), and routinely produce human-competitive performance, with
some solutions being patentable in their own right (Koza, 2010).
Genotype-phenotype Mapping
60
or <var>. An <op> can become either +, -, or *, and a <var> can become
either x, or y.
where Mod represents the modulus operator. Given the example individual’s
genome (where each 8-bit codon has been represented as an integer for ease of
reading) in Fig.3.2, the first codon integer value is 20, and given that there are 2
rules to select from for <expr> as in the above example, 20 M od 2 = 0 is
obtained. <expr> will therefore be replaced with <expr><op><expr>.
Beginning from the left hand side of the genome codon integer values are
generated and used to select appropriate rules for the left-most non-terminal in the
developing program from the BNF grammar, until one of the following situations
arise:
61
• A complete program is generated. This occurs when all the non-terminals
in the expression being mapped are transformed into elements from the ter-
minal set of the BNF grammar.
• The end of the genome is reached, in which case the wrapping operator
is invoked. This results in the return of the genome reading frame to the
left hand side of the genome once again. The reading of codons will then
continue unless an upper threshold representing the maximum number of
wrapping events has occurred during this individual’s mapping process.
• In the event that a threshold on the number of wrapping events has oc-
curred and the individual is still incompletely mapped, the mapping process
is halted, and the individual assigned the lowest possible fitness value.
62
A population of strategies is maintained and iteratively improved via a simulated
evolutionary process. The structure of these rules is governed by a choice of
grammar and the utility of evolved strategies is assessed by testing them in an
artificial stock market environment. Both the choice of grammar and the design
of the stock market environment are discussed in later chapters.
3.4 Summary
This chapter presented the ABM methodology and briefly reviewed its applica-
tions to the area of finance. A description of the three essential components for
constructing agent-based artificial markets is also given. Moreover, a popular
learning algorithms, the Genetic Algorithm, was introduced. Although ABM has
been applied to economics and finance for a long time, no previous studies have
investigated price impact using ABM.
In Part II of this thesis, the three empirical studies are presented. Chapter 4
initially provides a description of the data used and of the necessary data prepro-
cessing steps.
63
Part II
Experiments
64
In Part II, several empirical investigations of price impact are presented. The
literature review in Part I has identified a number of research gaps concerning our
understanding of intraday behaviour of price impact, whether agent intelligence
affects the magnitude of price impacts, and the effects of order choice on the price
impact of trading large-orders.
The analysed data is drawn from the NYSE-Euronext TAQ database and the
LSE ROB database. In Chapter 4, the data is introduced and a description of the
data preprocessing steps is given.
Three studies are presented in Chapters 5-7 to address the three research ques-
tions presented in Chapter 1. Chapter 5 studies the intraday behaviour of price im-
pacts and market liquidity using TAQ data and the ROB data. Chapter 6 presents a
study investigating whether agent intelligence determines the magnitude of price
impact. In Chapter 7, the effect of order choice on the price impacts of trading
large-orders is examined.
65
Chapter 4
More than ever before researchers today face the challenges of working with
high-frequency datasets from financial markets. Examples of this data include
NYSE’s TAQ data, and LSE’s ROB data. These datasets are very large and very
difficult to process. The data records all visible order activities, i.e. limit or-
der submissions, cancellations and executions, and can be used to reconstruct the
historical limit order book up to any required precision. However, this creates a
challenge as it is necessary to reconstruct the limit order book using the same rules
66
that were used by the matching algorithm applied by the exchange. Although sim-
ple in principle, such algorithms need to take into account market-specific issues
and considering the large volume of data, work is extremely difficult.
The previous two chapters conducted a literature review in the field of market
microstructure relating to the work in this thesis. This chapter gives an introduc-
tion to the two datasets used in this thesis. One is the NYSE Euronext trade &
quote dataset (TAQ), and the other is the LSE rebuild order book dataset (ROB).
Both of these are intraday high-frequency data, recording information on both
trades and quotes throughout each trading day. The ultra high-frequency data pro-
vided by NYSE-Euronext is unfiltered and contains errors and noise. Analysing
the raw data can produce inaccurate results which lead to imprecise conclusions.
Filtering the raw NYSE-Euronext data is important before data analysis. Like-
wise, the ultra high-frequency data provided by LSE is also raw data, for example,
the original LSE data is out of time sequence. Preprossing the raw LSE data is
necessary before data analysis.
The remainder of this chapter is organised as follows. Section 4.1 introduces
the datasets. Section 4.2 discusses the issues in data processing and gives the steps
used to process the data. A summary of this chapter is provided in Section 4.3.
4.1 Datasets
This section presents descriptions of the two databases, namely the NYSE Eu-
ronext TAQ database and the LSE ROB database.
67
4.1.1 NYSE Euronext TAQ Database
The NYSE Euronext Trade and Quote (TAQ) database contains intra day infor-
mation on trades and quotes for equity securities listed on most of the major US
exchanges. The database commenced in 1993, and the information contained is
in turn drawn from the ‘Consolidated Tape’ which takes an information flow on
real-time trades and quotes from all the participating markets and ‘consolidates’
this to provide traders with a complete picture of trades and quotes across all mar-
kets. The current participants in the system include all major US equity trading
venues (further background information on these venues is provided in Sect. 4.1.1
below).
Technically, there are two discrete elements of the consolidated tape, the Con-
solidated Tape Plan, which governs trades and the Consolidated Quotation Plan,
which governs quotes. Since the late 1970s, all SEC-registered exchanges and
market centers that trade NYSE or AMEX-listed securities send their trades and
quotes to a central consolidator where the Consolidated Tape System (CTS) and
Consolidated Quote System (CQS) data streams are produced and distributed
worldwide.
For investors and traders, the CQS provides pre-trade transparency as it dis-
plays the best bid and offer price and volume (and all revisions of quotes), posted
by specialists (NYSE, AMEX) and by market makers (NASDAQ), for all stocks
for a particular security on each exchange on which it trades, allowing investors
and traders to decide how best to route their orders. In contrast, the CTS provides
post-trade transparency allowing investors and traders to compare the execution
price of their trades against that of other trades in the market place which took
place at the same time.
68
The way that trade and quote information reaches the CTS and CQS have
changed over the years, moving from largely manual systems in traditional stock
exchanges (such as use of floor reporters by the NYSE until 2001) with the atten-
dant risk of delay and errors in recording,1 to largely automated recording of this
data in modern markets. As noted above, the TAQ database is extracted from the
consolidated tape and consequently includes all transactions data, time-stamped
to the nearest second, reported during the Consolidated Tape hours of operation
(currently 4am EST until 6.30pm EST). The data does not include information on
the identity of the trading parties or whether the trade is buyer or seller initiated.
TAQ data (along with other tick data products) is available for purchase from
NYSE Euronext in a number of delivery formats. The academic research version
of the TAQ data is supplied via monthly data DVDs. In the following sections, the
scale of trade and quote activity for a number of equities will be illustrated, but
in advance of that, it is worth noting the large number of equity securities that are
covered by the consolidated tape (as at 27 January 2011, there were 3,243 firms
listed on the NYSE, 2,875 listed on Nasdaq and 551 listed on AMEX).
The academic version of the data is available for purchase approximately four
weeks after the end of each month. The data is accessible via a supplied front-end
extraction program. Figure 4.1 illustrates the first screen wherein the user is able
to select the desired date ranges and trade/quote information. A number of other
screens (including Figure 4.2) allow the user to select the relevant ticker codes
and exchanges of interest, along with a choice of data output file format. Users
1
For example, using data drawn from July 1994 to June 1995, Blume and Goldstein Blume &
Goldstein (1997) reported a median delay of 16 seconds between the execution and the consequent
reporting of NYSE trades, with Peterson and Sirri Peterson & Sirri (2003) reporting a median delay
of 2 seconds using 1997 NYSE data from the NYSE System Order database File.
69
Figure 4.1: Data Selection Screen for TAQ3 Extraction Tool
70
Figure 4.2: Data Filter Screen for TAQ3 Extraction Tool
71
can also access the raw data files directly via custom written scripts.
Sample Data
A sample of the trade data available is provided in Table 4.1. Starting from the
left-most field, there are the stock ticker code (here ‘F’ for Ford), the exchange
on which the trade occurred (here ‘N’ for NYSE), the date and time of the trade,
the trade price and trade size, and a series of data flags which indicate the trade
condition, the correction indicator and a flag which indicates whether the trade is
a ‘G’ trade or a rule 127 transaction.2
Table 4.1: A Sample of Trade Data for Ford Drawn from 2/2/09
The quote information indicates the best (quoted) bid / offer available on an
exchange at a point in time. This changes with each alteration of the best bid/offer
or any changes to the number of shares on offer at either of these prices. As would
be expected, a very large quantity of quote information is generated each day
for the more actively traded stocks. Taking the sample information illustrated in
Table 4.2, the leftmost column indicates the ticker code, followed by the exchange
generating the quote (‘C’ = Cincinnati,3 ‘T’=Nasdaq, ‘N’=NYSE etc.), date and
time of quote, best bid/offer, and the volume (in 100 share lots) at each of these
prices.
2
“G” trade: A member firm trading for its own account must publicly identify that the order
is principal. Rule 127: An NYSE trade reported as having been executed as a block position.
3
Known as the National Stock Exchange since 2003 and headquartered in New Jersey.
72
Table 4.2: A Sample of Quote Data for Ford Drawn from 2/2/09
Ticker Exchange Date Time Bid Size Offer Size Mode MMID
F C 2/2/09 11:20:56 1.8700 175 1.8800 75 12
F T 2/2/09 11:20:56 1.8700 458 1.8800 597 12
F C 2/2/09 11:20:56 1.8700 170 1.8800 75 12
F N 2/2/09 11:20:56 1.8700 425 1.8800 162 12
F T 2/2/09 11:20:56 1.8700 458 1.8800 517 12
F N 2/2/09 11:20:56 1.8700 426 1.8800 162 12
F I 2/2/09 11:20:58 1.8700 1005 1.8800 555 12
F N 2/2/09 11:20:58 1.8700 426 1.8800 182 12
The TAQ 3 User’s Guide NYSE (2006) provides a description of the operation of
the extraction software and the associated meanings for the possible values in each
field. However, it should be noted that the guide has not been updated since 30 Oc-
tober 2006 and hence a data user should examine the expanded list of field values
for both the quotes and trades files which can be found on http://www.nyxdata.com/Data-
Products/Daily-TAQ. For example, the range of trade venues participating in the
consolidated tape and the range of related exchange identifier codes in the TAQ
database has increased since 2006. The current listing is shown in Table 4.3.
As can be seen from the listing (shown in Table 4.3), the US equity market is
spread across a large number of trading venues. Recent years have seen a consol-
idation and a renaming of some of these trading venues as discussed below.
The main variants of the NYSE are the traditional NYSE floor (now a hybrid
of an auction and an automated market) and NYSE Arca (formerly known as the
Archipelago Exchange and the Pacific Exchange). NYSE Arca is a fully electronic
stock exchange. The American Stock exchange (historically known as the New
York Curb Exchange) was acquired by the NYSE in 2008 and is now known as
NYSE Amex Equities.
Nasdaq (formerly, the ‘National Association of Securities Dealers Automated
73
Table 4.3: Exchange Codes as at 31 January 2011
Code Exchange
A American Stock Exchange
B Boston Stock Exchange (now Nasdaq OMX BX)
C National (Cincinnati) Stock Exchange
D National Association of Securities Dealers (ADF)
E Market Independent (SIP - Generated)
I ISE (International Securities exchange)
M Chicago Stock Exchange
N New York Stock Exchange
P ARCA
T/Q NASDAQ Stock Exchange
S Consolidated Tape System
W CBOE
Z BATS
J DirectEdge A
K DirectEdge X
X NASDAQ OMX PSX
Y BATS Y-Exchange Inc.
74
venues. Since its launch, the average trade size on PSX platform is 30% higher
than on the main Nasdaq market, and the new venue already accounts for about
1% of US equity trading (FinancialTimes, 2011b)
The National Association of Securities Dealers (now the Financial Industry
Regulatory Authority - FINRA) (ADF) is not technically an exchange as it does
not offer trade execution facilities. Instead it is an ‘alternative display facility’
which collects and disseminates quotes and trade information, for example from
some electronic communication networks (ECNs).4
The national stock exchange is an electronic stock exchange based in Chicago.
Prior to 2003 it was known as the Cincinnati stock exchange.
75
granted SEC approval to become a stock exchange in 2010. Formerly it had been
an ECN.The International Securities Exchange (ISE) took a shareholding in Direct
Edge in 2008. The ISE formerly traded equities and options. The ISE stock
exchange (although not the ISE options exchange) was decommissioned in 2010.
A guide to the relative sizes of each exchange is provided in Table 4.4.
Compared to the NYSE-Euronext TAQ database, which contains the best quotes
and the corresponding depths, the LSE Rebuild Order Book data has richer in-
formation. The LSE is the fourth largest exchange in the world and the largest
in Europe in terms of market capitalisation. It operates an electronic order book
platform, Stock Exchange Electronic Trading System (SETS). This trading system
has three sessions on each trading day:
• opening auction session, from 07:50 to 08:00, where buy and sell orders are
matched at 08:00,
• continuous trading session, from 08:00 to 16:30, where buy and sell orders
are continuously matched at price/time priority, and
• closing auction session, from 16:30 to 16:35, where buy and sell orders are
matched at 16:35.
The ROB data records order activities, which pooled together comprise the
quote prices and depths. It can be used to reconstruct the limit order book up
to any quote level. The data consists of every order and trade that occurred at
the LSE. It contains information on order submissions, order cancelations, order
modifications and executions. Every trade is linked to the corresponding orders
through a trade code. Therefore, if a large order is executed against many small
76
orders resulting in many small trades, one can trace back to each small order using
corresponding trade code. With this information one is able to reconstruct the
limit order book for each millisecond of the trading day. The LSE provides three
separate files to record trade and order information for each trading day. These
files are:
• ‘order details’ file, which contains details of every new persistent order5
entering the electronic order book,
A sample of the Order Detail file is shown in Table 4.5. As shown in the table,
each order has an order code which is unique to the order. The stock code in the
second column of the table corresponding to a stock listed in the LSE. In the third
column, “B” stands for a buy order and “S” represents a sell order. The next four
columns show the price, visible size, submission date and time for each submitted
order. The last column is the message sequence number which is unique for each
event (e.g. limit order submission, order cancellation, order matching, and order
modification) occurring in the market. The message sequence number is usefull to
distinguish the time priorities of two events which occur at the same time (accurate
to one millisecond). It also appears in the Order History file and the Trade Report
file.
5
Persistent orders are the orders which are stored on the electronic order book after they are
submitted to the market.
77
Table 4.5: A Sample of Order-Detail Data
78
B1021HZOGE 8210 S 11.50 5000 20082010 10:02:13.942 1366931
B1021PXYRW 3990 S 0.05 50000 24082010 07:55:43.761 5519
B1022A4QAL 1490 S 110.00 2640 31082010 07:50:53.980 6914
B1022AL8NY 3989 S 721.00 654 31082010 08:43:28.465 445616
A sample of the Order History file is shown in Tables 4.6 & 4.7. As shown
in Table 4.6, there is an order action type attached to each entry. It records the
action made to the order submitted previously and still listed in the order book.
There are six order action types, which are explained in Table 4.9. After actions
“D” or “E”, the order will be removed from the order book. Partial match means
that part of the order is executed, and the unexecuted part is still left in the order
book. Full match means that the order is fully executed and thus its aggregate size
is zero as shown in the second column of Table 4.7. If it is either partial matched
or fully matched, the counterparty’s code is recorded as shown in the third column
of Table 4.6.6 Action “T” rarely appears in the database.
A sample of the Trade Report file is shown in Table 4.8. As shown in Table
4.6, each order matching entry has a unique trade code.7 This trade code corre-
sponds to an entry in the Trade Report file. As shown in Table 4.8, each entry
records details of each transaction, including the trading price, size, date and time
(accurate to one second).
As shown in Tables 4.5, 4.6, 4.7 and 4.8, the information contained in these
three files are connected by order codes and trade codes. The order code maps
the new persistent orders listed on ‘order details’ file and their order trajectories
(full execution, partial execution, deletion, expiration and modification) recorded
on ‘order history’ file. Similarly, the trade code is used to track the trading de-
tails contained on the ‘trade report’ file for each order matching record on ‘order
history’ file.
6
The counterparty of a buy order is a sell order, and vice versa.
7
A limit order executed against two or more market orders will have two different trade codes.
79
Table 4.6: A Sample of Order-History Data (Part I)
80
ZO00UL7QO1 M ZO00UL8QKK 1407 ZF001UCFA1
ZO00ULIX1H M ZO00ULIXCB 1000 ZF001UCHP0
ZO00UNKBZE P ZO00UNKCD4 1331 ZF001UCZVZ
B700NPHAYC P B700NPO2CH 3800 A7001XEFZ1
Table 4.7: A Sample of Order-History Data (Part II)
81
4154 0 S 240963 04012010 13:50:37.040
4154 0 S 466808 04012010 16:19:48.828
4154 1089 B 2130431 04012010 15:01:17.559
9460 3820 S 463254 04012010 14:51:13.631
Table 4.8: A Sample of Trade-Report Data
82
644861 2570 A90022YXOG 146.58 7291 01092010 09:02:02
913100 9454 A700223A2U 43.94 5500 01092010 09:08:15
1281027 1437 ZA0022NJXM 2550.00 2 01092010 09:39:08
99 5657 A90022YQPO 1.67 488 31082010 17:45:33
Table 4.9: Order Action Type (ROB)
This section initially introduces the issues in data preprocessing and then presents
the steps used to preprocess the TAQ data.
Although the data contained in the TAQ database is a valuable resource for re-
search purposes, it is supplied in a raw (unprocessed) format and therefore re-
quires pre-processing in order to prepare it for analysis. Figure 4.3 shows the un-
filtered time series for CHDX. It clearly illustrates that there are often extremely
abnormal prices in the non-NASDAQ quote time series (green line). Thus it is
very necessary to filter the raw time series before using it for analysis. The clean-
ing of high-frequency financial data have been given special attention in many pre-
vious studies, such as Lee & Ready (1991) Bessembinder (2003) Vergote (2005)
and Henker & Wang (2006). Issues which can arise in raw high-frequency data
include:
Quote data only
83
18
16
14
12
10
price
0
9:30 10:00 10:30 11:00
time
Figure 4.3: Unfiltered Time Series for CHDX at 02/02/09 from 9:30-11:00 am.
The blue line depicts quotes occurring at NASDAQ; the green line depicts quotes
occurring at all exchanges; the red crosses represent the transaction prices.
84
Q1. Quotes which are generated by non normal market activity
All data
A3. Ticks of which the prices appear inconsistent with their neighbouring prices
(i.e. ‘outliers’)
Typically it is relatively easy to identify and correct for items Q1, T1-2 and
A1-2 as ‘flags’ in the database and the relevant ‘timestamp’ can be used to help
filter these items. Items falling into category A3 are trickier to handle as a series
of modeller decisions are required in order to classify a data point as an ‘error’
which therefore should be removed in data preprocessing. In this process, the data
analyst is attempting to balance out the risks of under scrubbing vs over scrubbing
the data. Under scrubbing the data risks the embedding of noise in the data being
analysed whereas over scrubbing the data filters out potentially vital information.
The process must consider issues such as the change in price between one trade
record and the next simultaneously with the level of trading activity. A trade which
is, for example, $0.10 off the previous recorded trade price would be unusual for
a highly-liquid stock which trades many times a second, but may be less suspect
for a thinly-traded security which only trades every 10 minutes.
Depending on the research questions of interest, and the associated required
analyses (for example, trade classification, calculating effective spreads, and es-
timating the information context of trades (Henker & Wang, 2006)), it may also
85
be necessary to align the trades and quotes data chronologically into a single time
series. This task is not as simple as it appears at first glance as there is no field
in the separate trade / quote files which make up the TAQ database which links
trades with their corresponding quote update. The problem is made more complex
due to the potentially differing levels of latency in data from differing sources in
reaching the consolidated tape.
The degree of latency in the recording of both quotes and trades has varied
over the years and hence, the most appropriate procedure to adopt in aligning
these time series has also varied with obvious implications for research study de-
sign, depending on the dates from which the data is drawn. Historically, there has
been greater latency in the recording of quote updates than trade updates on the
consolidated tape, and consequently, lining up the time series based on time stamp
may produce an unintended outcome where a trade is recorded before the associ-
ated change in the best quote for that exchange (obviously, any trade will impact
on the current best quote for an exchange as it will usually alter some element
of best bid/ask price or volume at those prices). For example, under the manual
system operated in the NYSE in the 1980s, if a specialist assistant was faster in
recording a quote revision than the floor reporter was in recording a trade, the
corresponding quote update could be recorded before the trade that triggered it.
As a result of this problem, Lee & Ready (1991) suggested, based on NYSE data
drawn from 1988, that the prevailing quote five seconds before a trade should be
considered to be the actual quote at the time of the trade. This rule was used in
many academic studies up to and including the early 2000s.
Of course, with the increasing use of technology there have been many struc-
tural changes in the way that trade and quote information has been captured over
the past 20 years. With the introduction of ‘auto-quoting’ for all stocks in 2003
on the NYSE, the best bid/offer was automatically updated whenever a limit order
86
was posted to the Display Book at a better price than the previous best bid or of-
fer, and trades taking place at the best bid/offer automatically led to an updating of
the best bid/offer (Vergote, 2005). A study after the introduction of the autoquote
system, using data drawn from October-December 2003, indicated that a trade -
quote change lag still existed, although it had been reduced to about 2 seconds
(Vergote, 2005), with another study (Henker & Wang, 2006) (which used earlier
data) suggesting that the appropriate lag was one second.8
The increasing use of ‘unlit’ trading venues such as dark pools has resulted in
an growing portion of trades taking place ‘off exchange’. While these trades are
recorded on the CTS, there will not be a corresponding ‘quote change’ recorded on
the CQS. Another issue that should be noted is that the lag from a trade execution
to the recording of that trade on the CTS is permitted to range up to 90 seconds
and hence, it cannot be assumed that actual trade time and the reporting time of
a trade are identical (Hasbrouck et al in a 1993 study (Hasbrouck et al., 1993)
reported a median delay of 14 seconds for NYSE trades between the SuperDot
execution report time and the CTS print time).
Only the quotes and trades ticks which happen at their main listed exchange are in-
cluded. So the ticks happened outside NYSE for DAR, F, MDS and XOM, and the
ticks happened outside NASDAQ for CHDX and GOOG are excluded. For NYSE
traded stocks, it is easy to obtain their records by choosing ’N-NYSE’ when using
the TAQ3 extraction tool as shown in Figure 4.2. On obtaining NASDAQ traded
ticks, this is a little more complicated. As shown in Table 4.3, there are two ex-
8
While increased use of electronic trading would be expected to enhance the quality and time-
liness of trading data capture, this is not always so. A recent case in point was the introduction of a
new matching engine on the London Stock Exchange (14 February 2011) where due to computer
glitches, price data vendors were displaying incorrect prices, blank prices and incorrect trading
volumes (King, 2011).
87
change codes corresponding to NASDAQ, which are ’T’ and ’Q’. But as shown
in Figure 4.2, only ’T-NASDAQ’ can be chosen when using the TAQ3 extraction
tool, where ’Q-NASDAQ’ is not listed. In order to obtain all ticks which happen
at NASDAQ, analyst needs to select all exchanges when using the TAQ3 extrac-
tion tool. By doing this, all ticks from NASDAQ can be included in the extracted
file labeled with ’Q’ or ’T’ in the ’Exchange’ column.
In preprocessing the raw data this study follows the lead of Brownlees & Gallo
(2006). For both quote and trade data, initially all ticks recorded outside the nor-
mal trading day are removed. Following Brownlees & Gallo (2006), an expanded
trading period spanning between 9:30 AM and 4:05 PM is adopted, in order to in-
sure that closing prices possibly recorded with a delay are accounted for. For trade
data, all incorrect and delayed trades are initially discarded, which are indicated
by the CORR field differing from 0 and the COND field equaling ‘Z’ respectively
in the trade file. Typically, this removes only a small amount of data from the
initial dataset (usually less than < 0.5%). On quote data, all records generated by
non normal activities are deleted, as indicated by the MODE field values 1,2,3,6
or 18 in the quote file. Then all quote and trade ticks with non-positive prices or
volumes and all quotes with non-positive bid-ask spreads are deleted.
Removing Outliers
To remove outliers, observations are omitted when the absolute difference be-
tween the current price and the average neighbour price is outside three standard
deviations plus a parameter that controls for the minimum price variation. To il-
N
lustrate, let pi be a value of the price time series Pi=1 . The proposed method in
Brownlees & Gallo (2006) to remove outliers is:
88
Here pi (k) and si (k) denote respectively the δ-trimmed sample mean and sample
standard deviation of a neighborhood of k observations around i and λ is a granu-
larity parameter9 . The k neighbor observations are chosen based on the following
rules: the neighborhood of an observation in the middle of the day are the first
preceding k/2 observations and the following k/2 ones; the neighborhood of one
of the first k/2 observations for the trading day are the first k observations of the
same trading day; the neighborhood of one of the last k/2 observations for the
trading day are the last k observations of the same trading day. For any given ob-
servation price pi , if the condition above is true, this observation is kept, otherwise
discarded.
A very heuristic procedure is introduced in Brownlees & Gallo (2006) for
choosing these three parameters. The parameter k is chosen based on the level of
trading intensity, the more active the trading, the larger the k. The parameter δ
is chosen on the basis of the frequency of outliers, the higher the frequency, the
higher the δ. The choice of the granularity parameter λ is guided by the frequen-
cies of the price changes which is always multiples of the minimum price variance
for that stock.
0.9 0.7 0.5
0.8 0.45
0.6
0.7 0.4
0.5
0.35
0.6
0.3
0.4
Percentage
Percentage
0.5
Percentage
0.25
0.4
0.3
0.2
0.3
0.2 0.15
0.2
0.1
0.1
0.1 0.05
0 0 0
<=−6 −5 −4 −3 −2 −1 0 1 2 3 4 5 >=6 <=−6 −5 −4 −3 −2 −1 0 1 2 3 4 5 >=6 <=−6 −5 −4 −3 −2 −1 0 1 2 3 4 5 >=6
Bid Price Change in Ticks Ask Price Change in Ticks Trade Price Change in Ticks
Figure 4.4: Frequencies of Price Changes for CHDX. (a) frequency of bid price
change (b) frequency of ask price change (c) frequency of transaction price
change.
9
The parameter λ is used to avoid zero variances from the time series of k equal prices around
the observation price pi .
89
0.8 0.7 0.7
0.7
0.6 0.6
0.6
0.5 0.5
0.5
0.4 0.4
Percentage
Percentage
Percentage
0.4
0.3 0.3
0.3
0.2 0.2
0.2
0.1 0.1
0.1
0 0 0
<=−6 −5 −4 −3 −2 −1 0 1 2 3 4 5 >=6 <=−6 −5 −4 −3 −2 −1 0 1 2 3 4 5 >=6 <=−6 −5 −4 −3 −2 −1 0 1 2 3 4 5 >=6
Trade Price Change in Ticks Trade Price Change in Ticks Trade Price Change in Ticks
0.45
0.3 0.3
0.4
0.25 0.25
0.35
0.3
0.2 0.2
Percentage
Percentage
Percentage
0.25
0.15 0.15
0.2
0.15
0.1 0.1
0.1
0.05 0.05
0.05
0 0 0
<=−6 −5 −4 −3 −2 −1 0 1 2 3 4 5 >=6 <=−6 −5 −4 −3 −2 −1 0 1 2 3 4 5 >=6 <=−6 −5 −4 −3 −2 −1 0 1 2 3 4 5 >=6
Trade Price Change in Ticks Trade Price Change in Ticks Trade Price Change in Ticks
Figure 4.4 illustrates the frequencies of bid, ask and transaction price changes
for CHDX, which guides the choice of parameter λ. Figure 4.5 depicts the fre-
quencies of transaction price changes for the six stock. As shown in Figure 4.5(f),
there is a significant fraction of price changes equal or larger than six minimum
ticks.10 In contrast, there is almost no price change larger than two ticks for F as
shown in Figure 4.5(a). The distributions of price changes for the other four stocks
are between these two extremes. It is possible that more outliers are identified in
the price time series with higher dispersion level of price change. The parameter
δ is fixed at 10%, the same as Brownlees & Gallo (2006). Several sets of parame-
ters (k, λ) are tested. The quality of the cleaning is judged by a visual inspection
of the clean tick-by-tick price series graph. Figure 4.6 depicts the time series on
03 Feb 2009 from 9:30 to 11:00 for CHDX. The plot in Figure 4.6(a) shows the
time series of raw data. The time series in Figures 4.6(b), 4.6(c) & 4.6(d) demon-
strate the clean data with three different sets of parameters (k, λ). 4.6(d) provide
10
One minimum tick equals 0.01.
90
6.9 6.9
6.8 6.8
6.7 6.7
6.6 6.6
price
price
6.5 6.5
6.4 6.4
6.3 6.3
6.2 6.2
6.1 6.1
9:30 10:00 10:30 11:00 9:30 10:00 10:30 11:00
time time
6.8 6.8
6.7 6.7
6.6 6.6
price
price
6.5 6.5
6.4 6.4
6.3 6.3
6.2 6.2
6.1 6.1
9:30 10:00 10:30 11:00 9:30 10:00 10:30 11:00
time time
(c) clean data with kq = 80 λq = 0.02 for (d) clean data with kq = 40 λq = 0.02 for
quote data, and kt = 10 λt = 0.04 for trade quote data, and kt = 10 λt = 0.04 for trade
data data
Figure 4.6: Tick-by-tick Price Series on 03 Feb 2009 (9:30-11:00) for CHDX.
The blue line (below) represents the bid price time series; the green line (above)
represents the ask price time series; the red circles represent the transaction prices.
91
the most satisfactory result. The sets of most satisfactory parameters (k, λ) are
reported in Table 4.10.
There are three steps to clean the raw quote data: the first step is to remove
all quotes which are generated by non normal market activities; the second step
is to remove all quotes with non-positive prices, volumes or bid-ask spreads; the
third step is to remove the outliers. Similarly, there are three steps to clean the raw
trade data: the first step is to remove all trade ticks which are modified, cancelled
or delayed; the second step is to remove all trades with non-positive prices or
volumes; the third step is to remove the outliers.
Tables 4.11 & 4.12 summarize the results of cleaning raw quote and trade data
respectively. The values in bold represent of the percentage of the final filtered
data in the raw data. Most of these percentages are larger than 99%, indicating
that the filtering process generally does not alter the raw data. From the tables,
one can also find that non-positive values did not appear in either raw quote data
or trade data, in contrast that some zero values were found in Barndorff-Nielsen
et al. (2009). This indicates that the consolidated tape system has been improved
and zero values are avoided.11 Among the three steps, the last step removes a
11
In Barndorff-Nielsen et al. (2009), the period of analysed data is from January 3 to June 29,
2007. The time of the data analysed here is February 2009.
92
Table 4.11: Cleaning Quote Data.
93
Non-normal Quotes 25 0.0007 0 0.0000 25 0.0002 45 0.0001 0 0.0000 42 0.0000
Non-positive Values 0 0.0000 0 0.0000 0 0.0000 0 0.0000 0 0.0000 0 0.0000
Outliers 711 0.0204 452 0.0095 59 0.0004 99 0.0002 42254 0.0237 13832 0.0071
Final Sample 34155 0.9789 46913 0.9905 160675 0.9995 508708 0.9997 1743896 0.9763 1937323 0.9929
94
Incorrect Trades 0 0.0000 0 0.0000 0 0.0000 0 0.0000 0 0.0000 0 0.0000
Non-positive Values 0 0.0000 0 0.0000 0 0.0000 0 0.0000 0 0.0000 0 0.0000
Outliers 5 0.0037 8 0.0026 16 0.0011 1 0.0000 4063 0.0092 796 0.0016
Final Sample 1334 0.9963 3120 0.9974 14572 0.9989 54873 1.0000 439077 0.9908 510666 0.9984
95
1000
900
800
700
600
price
500
400
300
200
100
0
9:30 10:00 10:30 11:00 11:30 12:00 12:30 13:00 13:30 14:00 14:30 15:00 15:30 16:00
time
96
7
6.8
6.6
6.4
price
6.2
5.8
5.6
5.4
9:30 10:00 10:30 11:00 11:30 12:00 12:30 13:00 13:30 14:00 14:30 15:00 15:30 16:00
time
97
Matching Trade and Quote
To match trade ticks with quote ticks, this study follows the one-second rule in
Henker & Wang (2006). Any quote less than one second prior to the trade is
ignored and the first one at least one second prior to the trade is retained as the
prevailing quote. If the transaction occurs above the prevailing mid-quote, it is
regarded as a buyer-initiated trade; otherwise if the transaction occurs below the
prevailing mid-quote, it is a seller-initiated trade. If the transaction occurs exactly
at the mid-quote, it is signed using the previous transaction price, which is called
’tick test’ in Lee & Ready (1991). If the transaction price is higher (lower) than
the price of the previous trade, it is classified as a buyer(seller)-initiated trade.
If the transaction price is the same as the price of the previous trade, it is signed
using the previous transaction price change. If the previous price change is upward
(downward), the trade is a buy (sell). Sometimes, the trade does not fall into any
cases mentioned above, for example the trade is the first trade of the trading day.
An alternative test called ’reverse tick test’ in Lee & Ready (1991) can be applied
which compares the current trade price with the trade prices immediately after the
current trade. If the following trade price is higher (lower) than the current trade
price, the trade is classified as a sell (buy).
The data contained in the ROB database is supplied in a raw (unprocessed) format
and therefore requires preprocessing in order to prepare it for analysis. Unlike the
raw data in the TAQ database, the ROB data rarely contains non-positive values,
but the ROB data is out of time sequence and more complicated than the TAQ
data. The information needed to analyse the order book is not direct to obtain and
the some preprocessing steps are needed. For example, market order information
98
can not be directly found in the data files provided and needs to be inferred using
the available data information.
Figure 4.9 illustrates how to preprocess the ROB data in order to extract the
order book information for the 1st of Aril in 2010 which is denoted by “401”.
There are three steps explained as follows.
1. The first step is to extract the data for each trading day from the three original
files (Order-Detail, Order-History and Trade-Report), because each original
file contains information for numerous (about 11) continuous days. As shown
in Figure 4.9, the information for 1 Oct. 2010 is then written to 401 Order-
Detail, 401 Order-History and 401 Trade-Report.
2. The second step is to infer the information on undisclosed orders, and ex-
tracting the information on limit orders with various levels of aggressiveness
99
(which will be used in the study in Chapter 6). Detail of this step is explained
in the next section.
3. The third step is to reconstruct the order book using the information extracted
in the last step, and record the information of the order book up to any quote
level. As shown in Figure 4.9, the order book information is recorded in
401 OrderBook. Detail of this step is described below.
In order to get the full information needed for the experiments in Chapters 5 &
6, non-persistent market orders and three missing events from the given data files
have to be inferred. Market orders can be inferred from the ‘order history’ file as
it records information on the matching side of each transaction. In this study, the
reconstructing process is implemented in JAVA.
The first missing event in ROB data is the execution of iceberg limit order.
LSE allows traders to place iceberg limit orders, part of which are hidden in the
order book and not recorded in the ROB data. When the visible part of the iceberg
limit order is matched by a market order with larger size, the hidden part will be
executed against the rest of the market order. The traded hidden part of the iceberg
limit order can be inferred from the records of the limit order whose transaction
size is larger than its original size.
The second set of missing events are crossing limit orders which cause imme-
diate trade after submission. The ‘order details’ file only records the unexecuted
part of the crossing limit orders. The traded part can be found from the ‘order
history’ file in that each crossing limit order is matched by one or more persistent
limit orders previously submitted to the market.
The third missing event is the limit order which was submitted to the market
a few days ago but is executed today. The information on details of these orders
100
needs to be recovered from older data files.
After this step, seven data files are obtained as shown in Figure 4.9. Four
types of limit orders with various aggressiveness are distinguished for the use in
Chapter 6, which are crossing limit order, in-spread limit order, spread limit order,
and off-spread limit order. Details of these order types are explained in Chapter 6.
In order to get information on the limit order book up to any quote level, the order
book on each trading day needs to be reconstructed using all the available data,
which is already acquired in the second step.
At first, the opening time of the normal trading session needs to be inferred.
This time is a random point between 8:00:00 a.m. and 8:00:30 a.m. At this
point, all the orders submitted during the opening sessions are executed at the
price which can maxmise the trading volume. Therefore, the opening time is the
time point at which the number of trades is largest in the period from 8:00:00
a.m. to 8:00:30 a.m. Then all the orders occurring during the same trading day
are sorted in time sequence. For those events occurring at the same time, they are
distinguished using their sequence numbers. All the rules as in the real market are
applied for reconstructing the limit order book, like the price & time priorities. In
this study, the reconstructing process is implemented in Matlab.
4.3 Summary
The objective of this chapter was to provide an introduction to two popular high-
frequency databases, and using this data, explore some of the issues faced by
researchers seeking to use ultra-high frequency financial databases. With the pre-
processed data, three studies on price impact are conducted in the following chap-
101
ters.
102
Chapter 5
103
intraday phenomena in the US markets and the UK markets are analysed with the
1999 data (Henker & Wang, 2006) and 2001 data (Cai et al., 2004) respectively.
Up-to-date evidence is useful for constructing market microstructure theories and
is crucial for developing intraday trading strategies. It can also help regulators to
design an appropriate measure of liquidity for an efficient and transparent trading
system.
There are two objectives of this chapter. The first objective is to examine
the intraday behaviour of market liquidity. In this chapter, intraday behaviours
of price volatility, bid-ask spread, trading volume, trading frequency, trade size,
market depth (cover the best level of the order book) and near market depth (covers
the ten best levels of the order book) are investigated.
The second objective of this chapter is to investigate the intraday behaviour
of price impact. Several studies have examined the intraday behaviour of price
impact. Dufour & Engle (2000); Engle & Patton (2004); Hasbrouck (1999) find
that price impact measured as changes of mid-quote, bid and ask prices caused by
trades does not have an intraday pattern on the NYSE. In contrast, Chan (2000)
shows that price impact displays a U-shaped pattern over the trading day on the
HKSE. However, no previous paper examines the intraday behaviour of price im-
pact on the LSE or the NASDAQ. Therefore, it is interesting to know whether the
price impact exhibits an intraday pattern in these markets.
In this chapter, the analysed data is drawn from two databases, the NYSE-
Euronext TAQ (trade and quote) database and the LSE ROB (rebuild order book)
database, and covers three markets, the NYSE, the NASDAQ and the SETS of
LSE. This chapter contributes to the literature in the following ways. It documents
up-to-date evidences on the intraday behaviours of a number of interesting vari-
ables including the price volatility, trading size, trading volume, bid-ask spread,
market depths and price impact, in the UK market as well as the US markets,
104
which complements the literature on intraday phenomena.
The chapter proceeds as follows. Section 5.1 introduces various measures of
market liquidity which are examined in this chapter. Section 5.2 presents empiri-
cal results and discussions. A summary of this chapter is given in Section 5.3.
Following Abhyankar et al. (1997) and Cai et al. (2004), absolute mid-quote re-
turns2 are used as the return volatility measure. The mid-quote return is calculated
as
Rt = [log(Pt ) − log(Pt−1 )]
1
This thesis chooses a reasonable time length of the data (19 trading days for US stocks and
127 trading days for UK stocks), which is enough to generate intraday phenomena. During these
time periods, there were no disturbances in the markets.
2
The use of mid-quote prices rather than transaction prices should reduce spurious volatility
due to the bid-ask bounce.
105
where P is the mid-quote price at the end of each minute. At first the price returns
for each 1-minute interval is calculated and then the average absolute return is
used as the return volatility at each 15-minute interval.
The bid-ask spread is the difference between the prevailing best ask price
(ASK) and the prevailing best bid (BID). In this chapter the proportional bid-
ask spread (P roSpr)3 is used to measure the spread. It is defined as the ratio of
the prevailing bid-ask spread and the prevailing mid-quote price (0.5 ∗ (ASK +
BID)):
ASK − BID
P roSpr = .
0.5 ∗ (ASK + BID)
The 15-minute proportional quoted spread is calculated as the average quoted
spread during the period.
Previous work typically only measures the depth at the best available prices (best
bid & ask price). However, the quotes and volume beyond the spread also have
effects on the market liquidity. Cao et al. (2008) found that the liquidity beyond
the spread is informative about future short-term returns. Hopman (2007) has
shown that order imbalance inside the order book is an important determinant of
simultaneous price changes. Farmer et al. (2004) found that large price impacts
caused by market order executions are not always associated with large trading
sizes, but are due to gaps at different levels of the order book. In this chapter the
near market depth is also investigated which accounts for the 10 highest levels of
the order book. The market depth (Dep) is measured as the average value of all
shares at the best bid price and all shares at the best ask price:
3
For the purpose of convenient comparison of different stocks.
106
SharesBestBid + SharesBestAsk
DepShare = .
2
The near market depth (N Dep) is measured as the average value of all shares at
the best 10 bid prices and all shares at the best 10 ask prices:
∑10 ∑10
i=1 Sharesbid,i + i=1 Sharesask,i
N DepShare =
2
where i is the level of the order book. The depth in value is also measured. The
depth in value is measured as
∑10 ∑10
i=1 BIDi ∗ Sharesbid,i + i=1 ASKi ∗ Sharesask,i
N DepV alue = .
2
The depth is calculated for each time recorded in the data. It is averaged over each
15-minute interval and over the whole sample period.
The 15-minute trading size is the average trading size at this period and it is
then averaged over the whole sample period. The trading size in value which is
trading size timed by its corresponding trading price is also measured.
More recently, with the increased availability of ultra high-frequency data from
stock exchanges and other alternative trading platforms, several papers have looked
at measures of liquidity other than bid-ask spread, including Sandas (2001); Ranaldo
(2004); Hall & Hautsch (2007); Large (2007).
107
In this study, price impact ratio is proposed to measure liquidity cost. Price
impact is the mid-quote price change caused by a trading execution. The price im-
pact ratio (P iRatio) is measured as the ratio of price impact and its corresponding
trading size:
108
Table 5.1: Companies Listed in the US markets. Market capitalisation and share
prices as at 01/04/2011
Name Ticker Consol. Vol Consol. $ Vol Consol. Trades Av. Trade Size
Exon XOM 36,128,159 $2,761.699m 183,030 197.39
Google GOOG 5,271,804 $1,789.620m 38,653 136.38
Ford F 32,404,587 $60.672m 26,246 1,234.65
Darling Int’l DAR 1,091,619 $4.817m 5,514 197.97
Chindex Int’l CHDX 39,739 $244,389 264 150.53
Midas Inc. MDS 39,200 $376,421 284 138.02
Market
Ticker Full Name Sector
Capitalisation
BARC Barclays PLC Financial 26.42b
BATS British American Tobacco PLC Consumer Goods 62.29b
BP BP PLC Basic Materials 83.47b
GSK Glaxo Smith Kline PLC Healthcare 70.19b
HSBC HSBC Holdings PLC Financial 93.16b
VOD Vodafone Group PLC Technology 87.23b
109
The next section provides summaries of descriptive statistics for both datasets.
Then the empirical results on the intraday patterns are presented graphically in
Figures 5.2-5.25, and are discussed in Sections 5.3.2-5.3.5.
Summary statistics for the companies are provided. Analysed variables include:
• Mid-quote price, which is the average price over the sample time period;
• Number of trades per day, which is the average number of trades over the
sample time period;
• Trade size, which is the average number of shares per trade for all the trades
in the sample data;
• Buyer-initiated trade size, which is the average number of shares per trade
for all the buyer-initiated trades in the sample data;
• Seller-initiated trade size, which is the average number of shares per trade
for all the seller-initiated trades in the sample data;
• Bid depth, which is the average number of shares available at the best bid
price for the time period in the sample data;
• Ask depth, which is the average number of shares available at the best ask
price for the time period in the sample data;
• Buy/sell ratio, which is the average daily ratio of daily number of buyer-
initiated trades (DailyN umberbuys ) to daily number of seller-initiated trades
(DailyN umbersells )
110
DailyN umberbuys
daily buy/sell ratio = ;
DailyN umbersells
where DailyN umtrades is the daily number of trades, DailyN umBS is the
daily number of reversal from a buy to a sell, and DailyN umSB is the daily
number of reversal from a sell to a buy.
4
One trading day, from 9:30 to 16:05 equals to 23700 seconds or 395 minutes.
111
Table 5.4: Descriptive Statistics for US stocks.
112
Buyer-initiated trade size 157 189 248 1843 129 335 483
Seller-initiated trade size 200 223 241 2237 124 329 559
Bid depth (no. of shares) 205 436 1025 57839 227 1584 10219
Ask depth (no. of shares) 202 247 918 46268 223 1254 8185
Buy/Sell ratio 1.1726 0.9295 1.0904 1.2761 0.9873 0.7943 1.0417
Probability of reversal 0.4255 0.4500 0.6135 0.9430 0.1816 0.4297 0.5072
Note: The numbers reported in this table are the average values over 19 trading days (Feb. 2009).
The average number of trades per day for the six stocks is 8,981, which implies
that more than 22 transactions are occurring per minute. About one transaction
happens per second for bigger stocks (GOOG and XOM). In contrast, about one
transaction happens every five minutes for thinly traded stock MDS. The stocks
with higher market capitalisation are traded more frequently than those with lower
market capitalisation.
The average trade size of the six stocks is 517, about half of the trade size ten
years ago.5 There are five stocks with an average trade size less than 400. The
average buyer-initiated trade size of the six stocks is 483, smaller than the average
seller-initiated trade size (559).
The ask(bid) depth is larger than buyer(seller)-initiated trade size for each
stock. The buy/sell ratio is the ratio of the number of buyer-initiated trades to
the number of seller-initiated trades.
The average buy/sell ratio of the six stocks is 1.0417. Three of the stocks,
MDS, DAR and F, have buy/sell ratios larger than one which reflect that there are
more buyer-initiated trades than seller-initiated trades, and the other three (CHDX,
GOOD and XOM) are smaller than one which suggest that there are more seller-
initiated trades than buyer-initiated trades. It is interesting to see how the stock
price moves in the sample period. Figure 5.1 plots the price movement during
the sample period (Feb. 2009) for stock XOM. Since the buy/sell ratio of XOM
is 0.7943, it is not surprising to see that the price falls over the sample period in
Figure 5.1: the price rises from 76.69 and reaches a peak (80.34) at the end of the
first week in the sample period, and then drops for the rest of the sample period
(ending at 67.90).
There are two stocks with a trade reversal probability larger than 0.5, and four
5
Henker Henker & Wang (2006) investigated the average trade size for 401 stocks and more
than 200 trading days in 1999. They found that the average buyer-initiated trade size is 1166 and
the average seller-initiated trade size is 1096.
113
stocks with a trade reversal probability less than 0.5. While F has a very high
reversal probability 0.9430, GOOG has a very low reversal probability 0.1816.
The average probability of trade reversal is very close to 0.5, suggesting that in
general the probability that a trade is followed by another trade with the same sign
is similar to the probability that it is followed by a trade with reverse sign for these
six stocks.
Figure 5.1: Price of XOM during Feb. 2009 (from Yahoo Finance)
114
Table 5.5: Descriptive Statistics for UK stocks.
115
Buyer-initiated trade size 3853 660 3382 1598 2463 11173 3855
Seller-initiated trade size 3856 656 3320 1569 2403 11426 3872
Bid depth (no. of shares) 8220 2274 8593 9378 6622 60499 15931
Ask depth (no. of shares) 8394 2388 8428 10096 6783 65373 16910
Buy/Sell ratio 1.0010 1.0036 1.0048 1.0402 1.0059 1.1405 1.0327
Probability of reversal 0.4825 0.4857 0.4759 0.4742 0.4762 0.4672 0.4769
Note: The numbers reported in this table are the average values over 126 trading days (April-September 2010).
The fifth and the sixth rows are the values for buyer-initiated trade size and sell-
initiated trade size respectively. These values indicate that buyer-initiated trade
size almost equals seller-initiated trade size. This suggests that it is not necessary
to assume that buyer-initiated trade size differs from seller-initiated trade size in
theoretical models.
The seventh and eighth rows are the values of bid depth and ask depth sepa-
rately. Observing these values, the differences between bid depth and ask depth
are very small for the six stocks. This suggests that the limit order book is sym-
metric at least at the best levels in these six stocks.
The ninth row is the values of buy/sell ratio. The buy/sell ratio nearly equals
to one in all the six stocks.
The last row in the table reports the values of probability of reversal. All of the
six stocks have a trade reversal probability very close to 0.5. This suggests that
in general the probability that a trade is followed by another trade with the same
sign is similar to the probability that it is followed by a trade with reverse sign for
these six stocks. This result is consistent with the finding above for the US stocks.
Price volatility is a direct measure of risk and an indirect measure of the level of
information (French & Roll, 1986).
Figure 5.2 shows all the six stocks have U-shaped intraday pattern on price volatil-
ity, which is consistent with the findings in prior literature (shown in Table 2.2 in
Chapter 2). The results support the predictions of the Brock & Kleidon (1992)
model which predicts higher volatility at market open and close.
116
Intraday Price Volatility for the UK stocks
As shown in Figure 5.3, the volatility is relatively higher at market open and close,
and relatively lower in the middle of the day for all the six UK stocks. This finding
is in line with the U-shaped intraday pattern on price volatility found in previous
literature (shown in Table 2.2 in Chapter 2).
117
−3
x 10
12
0.018
11
0.016
10
0.014
9
Absolute Log Return
8 0.012
6
0.008
0.006
4
0.004
3
2 0.002
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
12
10
0.015
Absolute Log Return
6 0.01
2 0.005
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
8
6
5
6
Absolute Log Return
5 4
4
3
2
2
1 1
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
118
Price Volatility Price Volatility
0.16 0.1
0.09
0.14
0.08
0.12
0.07
Price Volatility
Price Volatility
0.1 0.06
0.05
0.08
0.04
0.06
0.03
0.04 0.02
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
0.08
0.2
0.07
0.06
0.15
Price Volatility
Price Volatility
0.05
0.1
0.04
0.03
0.05
0.02
0 0.01
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
0.07 0.09
0.065
0.08
0.06
0.07
Price Volatility
Price Volatility
0.055
0.06
0.05
0.05
0.045
0.04
0.04
0.03
0.035
0.03 0.02
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
119
5.2.3 Intraday Bid-ask Spread
As shown in Figure 5.4, the proportional bid-ask spreads in five stocks (MDS,
DAR, F, GOOG and XOM) do not exhibit the U-shaped intraday pattern as ob-
served by many empirical studies (Chung et al., 1999; Lee et al., 1993; Madhavan
et al., 1997) which examine the intraday pattern for the NYSE market. How-
ever, the finding is consistent with Henker & Wang (2006), Chan et al. (1995) and
Werner & Kleidon (1996), who examine intraday patterns on the NYSE, NAS-
DAQ and the LSE markets respectively, and all demonstrate a reverse S-shaped
intraday pattern on bid-ask spread: it is relatively high at market open, is stable in
the middle of the trading day, and drops at market close. As shown in Figure 5.4,
only CHDX has a U-shaped intraday pattern on bid-ask spread consistent with the
findings in Abhyankar et al. (1997), Ahn & Cheung (1999) Chung et al. (1999),
Lee et al. (1993), Lehmann & Modest (1994), Madhavan et al. (1997) and Vo
(2007).
120
0.035 0.035
0.03 0.03
Proportional Bid−Ask Spread
0.02 0.02
0.015 0.015
0.01 0.01
0.005 0.005
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
9
6.6
8
Proportional Bid−Ask Spread
6.4
6.2
6
5
5.8
4
3 5.6
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
6.5
1.4
6
Proportional Bid−Ask Spread
1.2
5.5
0.8
4.5
0.6
4
0.4 3.5
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
121
−4
x 10 Proportional Bid−Ask Spread −4
x 10 Proportional Bid−Ask Spread
14 14
13 13
12 12
11 11
10 10
Pro. Spread
Pro. Spread
9 9
8 8
7 7
6 6
5 5
4 4
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
1.4
12
1.3
1.2
10
1.1
Pro. Spread
Pro. Spread
8 1
0.9
6
0.8
0.7
4
0.6
2 0.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
−4
x 10 Proportional Bid−Ask Spread −4
x 10 Proportional Bid−Ask Spread
10 13
12
9
11
8
10
7
Pro. Spread
Pro. Spread
8
6
7
5
4
5
3 4
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
122
x 10
−10 Time−weighted Proportional Bid−Ask Spread −10
x 10 Time−weighted Proportional Bid−Ask Spread
13 12
12 11
11 10
10 9
TW Pro. Spread
TW Pro. Spread
9 8
8 7
7 6
6 5
5 4
4 3
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
x 10
−9 Time−weighted Proportional Bid−Ask Spread −10
x 10 Time−weighted Proportional Bid−Ask Spread
3 12
11
2.5
10
2
TW Pro. Spread
TW Pro. Spread
1.5
1
7
0.5
6
0 5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
x 10
−10 Time−weighted Proportional Bid−Ask Spread −10 Time−weighted Proportional Bid−Ask Spread
8 x 10
11
7 10
9
6
TW Pro. Spread
TW Pro. Spread
4
6
3
5
2 4
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
123
5.2.4 Intraday Market Depth
Figures 5.7 & 5.8 demonstrate the intraday behaviours of market depths for the
US stocks. As shown in these figures, bid depth and ask depth exhibit an almost
identical shape of intraday pattern. There are four stocks (MDS, CHDX, GOOG
and XOM) exhibiting a U-shaped intraday pattern on both bid and ask depths.
DAR has a J-shaped intraday pattern on market depth, while F has an S-shaped
intraday pattern on market depth. The results are inconsistent with the inverted
U-shaped pattern on market depth observed by Ahn & Cheung (1999); Lee et al.
(1993); Li et al. (2005); Vo (2007). These studies also report a negative association
between intraday spread and market depth, which is not observed either in this
thesis.
Intraday patterns on market depths for the UK stocks are demonstrated in Figures
5.9-5.11. There are three stocks (BATS, GSK and VOD) exhibiting an S-shaped
intraday pattern on market depths. HSBC has a U-shaped intraday pattern on
market depths. For BARC and BP, it is clear to see that market depth is very
high at market close. As shown in the Figures 5.10-5.11, bid depth has an almost
identical intraday pattern with ask depth.
Intraday patterns on near market depths for the UK stocks are demonstrated
in Figures 5.12-5.14. All of the six stocks exhibit an S-shaped intraday pattern
on near market depth: it is relatively lower at market open, and relatively higher
at market close. As seen from the Figures 5.13-5.14, near bid depth has a nearly
identical intraday pattern with near ask depth.
The results on both measures of market depths are inconsistent with the in-
124
verted U-shaped intraday pattern observed by Ahn & Cheung (1999); Lee et al.
(1993); Li et al. (2005); Vo (2007). However, the near depth (Figure 5.12) shows
a negative association with the bid-ask spread (Figures 5.5-5.6), confirming the
findings on the relationship between spread and depth in Ahn & Cheung (1999);
Lee et al. (1993); Li et al. (2005); Vo (2007). While the near depth is relatively
higher during the trading day, that is at market close for the six UK stocks, the
spread is relatively lower; while the near depth is relatively lower during the trad-
ing day, that is at market open, the spread is relatively higher.
125
4
4 x 10
x 10 8
4
7
3.5
3 6
2.5 5
Bid Depth
Bid Depth
2 4
1.5 3
1 2
0.5 1
0 0
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
2.5 12
2 10
Bid Depth
Bid Depth
1.5 8
1 6
0.5 4
0 2
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
1.6 14
1.4 12
1.2 10
Bid Depth
Bid Depth
1 8
0.8 6
0.6 4
0.4 2
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
126
4
4 x 10
x 10 7
3.5
6
3
2.5 5
2 4
Ask Depth
Ask Depth
1.5 3
1 2
0.5 1
0 0
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
12
10
1.5
8
Ask Depth
Ask Depth
6
1
0.5
2
0 0
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
1.6
12
1.4
10
1.2
Ask Depth
Ask Depth
6
0.8
4
0.6
0.4 2
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
127
Depth in Share Depth in Share
10000 3000
2800
9500
2600
9000
Depth (Share)
Depth (Share)
2400
8500
2200
8000
2000
7500
1800
7000 1600
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
12000
9500
11000
10000
9000
Depth (Share)
Depth (Share)
9000
8000
8500
7000
6000
8000
5000
7500 4000
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
8000
7500
Depth (Share)
7
Depth (Share)
6
7000
6500
4
6000 3
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
128
Bid Depth in Share Bid Depth in Share
10000 2800
9500 2600
9000 2400
8500 2200
8000 2000
7500 1800
7000 1600
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
12000
9500
11000
10000
Bid Depth (Share)
9000
9000
8000
8500
7000
6000
8000
5000
7500 4000
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
8
8000
7
7500
Bid Depth (Share)
Bid Depth (Share)
6
7000
6500
5
6000 4
5500 3
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
129
Ask Depth in Share Ask Depth in Share
10500 3200
3000
10000
2800
9500
2600
9000
2400
8500
2200
8000
2000
7500
1800
7000 1600
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
12000
9500
11000
9000
10000
Ask Depth (Share)
8500 9000
8000
8000
7000
7500
6000
7000 5000
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
10
8000
9
8
Ask Depth (Share)
Ask Depth (Share)
7500
7000
6
5
6500
6000 3
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
130
5
x 10 Near Depth in Share 4
x 10 Near Depth in Share
1.6 7
6.5
1.5
6
1.4
5.5
1.3
Near Depth (Share)
1.2 4.5
4
1.1
3.5
1
3
0.9
2.5
0.8 2
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
1.7
1.6 2.5
1.5
Near Depth (Share)
1.4 2
1.3
1.2 1.5
1.1
1 1
0.9
0.8 0.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
5
x 10 Near Depth in Share 6
x 10 Near Depth in Share
1.4 2.2
2
1.3
1.8
1.2 1.6
Near Depth (Share)
1.4
1.1
1.2
1 1
0.8
0.9
0.6
0.8 0.4
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
131
5
x 10 Bid Near Depth in Share 4
x 10 Bid Near Depth in Share
1.5 7
6.5
1.4
1.3
5.5
Bid Near Depth (Share)
4.5
1.1
4
3.5
1
0.9
2.5
0.8 2
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
1.7
1.6 2.5
1.5
Bid Near Depth (Share)
1.4 2
1.3
1.2 1.5
1.1
1 1
0.9
0.8 0.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
5
x 10 Bid Near Depth in Share 6
x 10 Bid Near Depth in Share
1.4 2
1.3
1.2 1.5
Bid Near Depth (Share)
1.1
1 1
0.9
0.8 0.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
132
5
x 10 Ask Near Depth in Share 4
x 10 Ask Near Depth in Share
1.6 7
6.5
1.5
6
1.4
5.5
Ask Near Depth (Share)
1.2 4.5
4
1.1
3.5
1
3
0.9
2.5
0.8 2
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
1.6
2.5
1.5
1.4
Ask Near Depth (Share)
2
1.3
1.2
1.5
1.1
1
1
0.9
0.8 0.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
5
x 10 Ask Near Depth in Share 6
x 10 Ask Near Depth in Share
1.4 2.2
2
1.3
1.8
1.2
Ask Near Depth (Share)
1.6
1.1 1.4
1.2
1
0.9
0.8
0.8 0.6
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
133
5.2.5 Intraday Trade Size and Volume
The intraday patterns on trading volume for the six US stocks are shown in Figures
5.15 & 5.16. All of the six stocks have a U-shaped intraday pattern on trading
volume. The result confirms the finding in Foster & Viswanathan (1993); Jain &
Gun-Ho (1988); Lee et al. (1993); Lockwood & Linn (1990); McInish & Wood
(1990b, 1992); Wood et al. (1985) who examine the intraday patterns on the NYSE
and the finding in Chan et al. (1995) who examine the intraday patterns in the
NASDAQ.
It is interesting to find that trading frequency and trade size also both exhibit
a U-shaped intraday pattern as shown in Figures 5.19 & 5.21.
Intraday patterns on trading volume for the six UK stocks are shown in Figures
5.17 & 5.18. The six stocks all have a U-shaped intraday pattern on trading vol-
ume. Trading frequency shown in Figure 5.20 also exhibits a U-shaped intraday
pattern. The results are consistent with the finding of Werner & Kleidon (1996)
who examine the intraday pattern on the LSE and the findings for the NYSE mar-
ket in Foster & Viswanathan (1993); Jain & Gun-Ho (1988); Lee et al. (1993);
Lockwood & Linn (1990); McInish & Wood (1990b, 1992); Wood et al. (1985).
It is interesting to observe that there is a sharp increase of trading volume and
trading frequency between 2:30 p.m. and 3:00 p.m. for all the six stocks in Figures
5.17-5.20. This sharp increase in trading volume in the afternoon has been also
documented by Cai et al. (2004) who investigate the intraday patterns on the LSE.
It is due to the open of the US markets, as these six stocks are listed at both the
134
LSE and the NYSE. US markets opening at 2:30 p.m. GMT positively impact
on the trading activities of these stocks in terms of trading volume and trading
frequency.
Intraday patterns on trade size for the six UK stocks are shown in Figures
5.22 & 5.23. There are four stocks (BARC, BATS, BP and HSBC) exhibiting
a U-shaped intraday pattern on trade size. GSK and VOD have different shapes
of intraday pattern with the other stocks: while trade size is very large at market
close, it is smallest before market close.
135
5000 8000
4500
7000
4000
6000
3500
5000
3000
Trading Volume
Trading Volume
2500 4000
2000
3000
1500
2000
1000
1000
500
0 0
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
5 10
4 8
Trading Volume
Trading Volume
3 6
2 4
1 2
0 0
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
1.8
3.5
1.6
3 1.4
1.2
Trading Volume
Trading Volume
2.5
2
0.8
1.5 0.6
0.4
1
0.2
0.5 0
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
136
4 4
x 10 x 10
4.5 4
4 3.5
3.5
3
3
Trade Volume (dollars)
2.5
2
2
1.5
1.5
1
1
0.5 0.5
0 0
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
2.5
2
2
Trade Volume (dollars)
1.5
1.5
0.5
0.5
0 0
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
12
10 10
Trade Volume (dollars)
6 5
2 0
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
137
x 10
6 Trading Volume in Share 4
x 10 Trading Volume in Share
2.2 14
2
12
1.8
1.6 10
1.4
8
1.2
1 6
0.8
4
0.6
0.4 2
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
x 10
6 Trading Volume in Share x 10
5 Trading Volume in Share
3 4
3.5
2.5
3
Trading Volume (Share)
2
2.5
2
1.5
1.5
0.5 0.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
5
x 10 Trading Volume in Share x 10
6 Trading Volume in Share
14 4
3.5
12
3
10
Trading Volume (Share)
2.5
6
1.5
4
1
2 0.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
138
x 10
8 Trading Volume in Value 8 Trading Volume in Value
7 x 10
3
6
2.5
5
Trading Volume (Value)
1.5
1
2
1 0.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
x 10
8 Trading Volume in Value 8
x 10 Trading Volume in Value
12 4.5
11
4
10
3.5
9
Trading Volume (Value)
3
8
7 2.5
6
2
5
1.5
4
1
3
2 0.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
x 10
8 Trading Volume in Value 8 Trading Volume in Value
8 x 10
6
5.5
7
6
4.5
Trading Volume (Value)
4
5
3.5
4
3
3 2.5
2
2
1.5
1 1
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
139
14 20
18
12
16
10
14
Number of Trades
Number of Trades
8
12
10
6
8
4
2
4
0 2
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
120
300
100
250
Number of Trades
Number of Trades
80
200
60
150
40
100
20
0 50
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
2200
1800
2000
1600
1800
1400
Number of Trades
Number of Trades
1600
1200 1400
1200
1000
1000
800
800
600
600
400 400
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
140
Market Order Frequency Market Order Frequency
500 200
450
400
150
Market Order Frequency
300
100
250
200
150 50
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
800 200
180
700
160
Market Order Frequency
600
140
500
120
400
100
300
80
200 60
100 40
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
450
300
400
250
Market Order Frequency
350
300 200
250
150
200
100
150
100 50
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
141
400 450
400
350
350
300
300
Avergae Trade Size
250
200
200
150
150
100
100
50 50
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
450 5500
5000
400
4500
350
Avergae Trade Size
4000
300 3500
3000
250
2500
200
2000
150
1500
100 1000
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
190
800
180
700
170
Avergae Trade Size
600
160
150
500
140
400
130
300
120
110 200
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
142
Trading Size in Share Trading Size in Share
4800 700
4600
4400
650
4000
3800
600
3600
3400
3200 550
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
1650
3800
1600
1550
3600
Trading Size (Share)
1500
3400 1450
1400
3200
1350
1300
3000
1250
2800 1200
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
3200 1.2
3000 1.15
1.1
Trading Size (Share)
2800
Trading Size (Share)
2600 1.05
2400 1
2200 0.95
2000 0.9
1800 0.85
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
143
x 10
6 Trading Size in Value x 10
6 Trading Size in Value
1.55 1.55
1.5
1.5
1.45
1.45
1.4
Trading Size (Value)
1.3
1.35
1.25
1.2
1.3
1.15
1.25
1.1
1.05 1.2
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
x 10
6 Trading Size in Value x 10
6 Trading Size in Value
1.9 2.1
1.8
2
1.7
1.9
Trading Size (Value)
1.6
1.8
1.5
1.7
1.4
1.6
1.3
1.2 1.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
x 10
6 Trading Size in Value x 10
6 Trading Size in Value
2.2 1.9
2.1
1.8
2
1.9
1.7
Trading Size (Value)
1.8
1.7 1.6
1.6
1.5
1.5
1.4
1.4
1.3
1.2 1.3
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
144
5.2.6 Intraday Price Impact
Intraday patterns on price impact for the six US stocks are demonstrated in Figure
5.24. There are four stocks (DAR, F, GOOG and XOM) exhibiting a reverse S-
shaped intraday pattern on price impact: it is highest at market open and lowest at
market close. For MDS and CHDX, the price impact in the morning is generally
higher than the price impact in the afternoon.
Intraday patterns on price impact for the UK stocks are shown in Figure 5.25. All
of the six stocks have a reverse S-shaped intraday pattern on price impact: it is
highest at market open, gradually decreases over the trading day, and is lowest at
market close. This finding is inconsistent with the U-shaped intraday pattern on
price impact observed in the HKSE by Chan (2000). The result indicates that the
market liquidity of these six stocks is increasing over the trading day, being lowest
at market open and highest at market close. It suggests that time-of-the-day is an
important consideration when constructing price impact functions and designing
trade execution strategies, which however is ignored in the literature on optimal
trading strategy (see the review in Chapter Two).
In contrast to the observation on the HKSE in Chan (2000), price impact does
not rebound before the market close as shown in Figures 5.24 & 5.25. This obser-
vation cannot be explained by private information as in Chan (2000) who asserts
that larger trades reveal more private information leading to larger price impact.
As shown in Figures 5.21, 5.22 and 5.23, the average trade size is very large at the
market close, negatively associated with low price impact in Figures 5.24 & 5.25.
It is interesting to find that price impact (Figure 5.25) has a negative associ-
145
ation with near depth (Figures 5.12 & B.7). While near depth is relatively lower
during the trading day, price impact is relatively higher; while near depth is rela-
tively higher during the trading day, price impact is relatively lower. The finding
confirms the conclusions in Hopman (2007) that price impact is mainly deter-
mined by the the order book.
146
x 10
−4 Price Impact / Trade Size (share) −5 Price Impact / Trade Size (share)
x 10
14
13
12
3 11
Price Impact Ratio
2 8
1 5
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
x 10
−5 Price Impact / Trade Size (share) x 10
−6 Price Impact / Trade Size (share)
5 5
4.5
4.5
4
4
3.5
Price Impact Ratio
3.5
3
2.5
2.5
2
2
1.5
1.5 1
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
x 10
−4 Price Impact / Trade Size (share) x 10
−5 Price Impact / Trade Size (share)
4.5 5
4
4.5
3.5
4
Price Impact Ratio
3.5
2.5
3
2
2.5
1.5
1 2
9:30 10:30 11:30 12:30 13:30 14:30 15:30 9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time Time
147
−7
x 10 Price Impact / Trade Size (share) −6
x 10 Price Impact / Trade Size (share)
5.5 1.6
5
1.4
4.5
4 1.2
Price Impact Ratio
2.5 0.8
2
0.6
1.5
1 0.4
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
4.5
7
3.5 6
Price Impact Ratio
Price Impact Ratio
3
5
2.5
2 4
1.5
3
0.5 2
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
x 10
−7 Price Impact / Trade Size (share) −7 Price Impact / Trade Size (share)
7 x 10
5
4.5
6
4
5
3.5
Price Impact Ratio
4
3
3 2.5
2
2
1.5
1
1
0 0.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
148
5.3 Summary
This chapter presented an empirical investigation of intraday behaviours of a num-
ber of interesting variables using the data drawn from the NYSE-Euronext TAQ
database and the LSE ROB database. Six stocks from the US markets and six
stocks from the UK markets were selected to perform this task.
This study contributes to the literature by documenting the up-to-date intraday
behaviours of a number of liquidity metrics. The findings in this study are of inter-
est to academics and trading desks. A better understanding of intraday behaviours
of market liquidity could help theorist in developing comprehensive models. It
also emphasises the importance of microstructure tick by tick data, which could
be applied to aggregation techniques, with implications beyond the microstructure
concerns. The results of this study are summarised as follows.
• The observed intraday patterns on market depths in this study are incon-
sistent with the inverted U-shaped pattern demonstrated by Ahn & Cheung
(1999), Lee et al. (1993), Li et al. (2005) and Vo (2007).
• It is interesting to find that the near market depths of the UK stocks have
shown an S-shaped intraday pattern. Moreover, it is found that there is a
negative association between the near depth and bid-ask spread, confirming
149
the relationship identified by Ahn & Cheung (1999), Lee et al. (1993), Li
et al. (2005) and Vo (2007).
A natural question to ask which is worth further research is, what subpop-
ulation of the market participants is constituting the limit order book and what
proportion of the market participants is contributing to the trading volume and
market depth. To answer this question, further information on the identities of
market participants is needed.
150
Chapter 6
It is well known that a buying transaction moves the stock price up and a
selling transaction drives it down. Price impact is the price change caused by
the transaction. In most limit order markets, the order book is transparent to all
market participants. A few studies have argued that the degree of price impact
is affected by the agent intelligence due to the transparency of limit order books.
As suggested by Farmer et al. (2004), the concavity of price impact is due to the
agent’s selective liquidity taking, namely agents condition the size of their trades
on liquidity, executing large orders when liquidity is high and small orders when
liquidity is low. Similar arguments are presented in Hopman (2007) and Weber &
151
Rosenow (2006).
This chapter examines whether the price impact of market orders is affected
by the intelligence of the agents who place market orders. The objective of this
chapter is to investigate whether the available market information is exploited by
“intelligent” agents when placing their market orders, thus affecting the magni-
tude of the influences of their trades on the asset’s price. Novelly, an agent-based
modelling is adopted to accomplish this task.
This chapter is organised as follows: a review of related work on agent-based
modelling of limit order markets is conducted in Section 6.1; a zero-intelligence
based model of limit order market is presented in Section 6.2; a description of
experimental setup is given in Section 6.3; results and discussions are provided in
Section 6.4, followed by a summary of chapter in Section 6.5.
152
model, the arrivals of the order flows composed of market orders, limit orders and
order cancelations are modeled as Poisson processes. Order sizes are produced
from a half-normal distribution.
Another study which simulates a limit order market in the spirit of the ZI idea
is conducted by Daniel (2006). In this model, there are 100 ZI traders endowed
with the same cash and shares. The arrival of each trade is modeled as a Poisson
process. At each arrival time, the trader chooses to buy or sell with probability
1/2, and decides to submit a market order, or a limit order, or cancels a previous
submitted order with probabilities πm , πl and 1−πm −πl respectively. This model
distinguishes two types of limit orders according to order aggressiveness. Traders
place a limit order uniformly distributed inside the bid-ask spread with probability
πin , or power-law distributed away from the spread with probability 1 − πin . The
volumes of incoming limit orders are produced from a log-normal distribution,
and the sizes of market orders are the same as those of the best counterpart orders.
Their model reproduces the principal stylized facts exhibited by real markets.
The most recent relevant work is the study by Huang et al. (2012). They build
an agent-based stock market model consisting of ZI agents to mimic the Taiwan
Stock Market (TWSE). Unlike the continuous matching in most limit order mar-
kets, order matching on the TWSE is organized every 25 seconds. In their model
at each simulated time corresponding 0.01 second of real time, there are five possi-
ble events happening in the artificial market: limit order submission, market order
submission, order cancelation, order matching and no activity. The probabilities
of these events are estimated using real data from TWSE, which are then used for
simulating the artificial market. Like Smith et al. (2003), they use a stochastic
order size which is generated randomly from a half-normal distribution. In the
study, they compare the liquidity costs in the real market to the simulated market,
which is measured as the difference of the virtual payment at the disclosed price
153
when the order is entering the market and the actual transaction payment. The re-
sult shows that the liquidity cost generated by the simulation data are higher than
those for the TWSE data which is possibly caused by their overestimated market
order size.
Many zero-intelligence models have been devoted to investigating market be-
haviours and market structure. A couple of studies have investigated the stylised
facts with zero-intelligence markets. These studies, including Ladley & Schenk
(2009), Bartolozzi (2010) and Palit et al. (2012), show that some stylised facts can
be obtained from the simulated markets with interacting zero-intelligence agents,
indicating that many stylised facts of limit order markets do not rely on individual
strategic behaviours, but are derived from the interaction of the market mechanism
and non-strategic agents. In addition, Duffy (2006) analyses bubbles and crashes
with a zero-intelligence market and show that very little trading strategy is is re-
quired to reproduce them. LiCalzi & Pellizzari (2007) investigate the performance
of four different types of market protocols. Aloud & Tsang (2011) show that the
intraday and interweek seasonality of FX market trading activity emerge with a
simple agent-based models of zero-intelligence traders.
154
order to come as close as possible to a realistic order flow.
In the model, there are two groups of agents: buy agents and sell agents. All the
buy (sell) limit/market orders are placed by the buy (sell) agent. It is assumed that
each hypothetical time in the artificial market corresponds to one millisecond in
real market. At each time in the artificial market, a buy agent or a sell agent is
chosen with probability 1/2. The chosen agent at each time can perform one of
the four actions as below to fulfill his investment object:
• do nothing,
With probability λo , the agent will do nothing at all; with probability λm , the agent
will submit a market order to the market; with probability λl , the agent will submit
a limit order to the market; with probability λc , the agent will cancel a limit order
which he previously placed and is not executed. The sum of these probabilities
has to be one (λo + λm + λl + λc = 1). Without loss of generality, it is assumed
that the agent always cancels the oldest limit order which he previously placed.
If the agent wants to submit a limit order, he can choose from four types of
limit order according to the order’s aggressiveness. These four types of limit
orders are:
155
• an inside-spread limit order, which is placed inside the bid-ask spread,
• a spread limit order, which is placed at the best bid (ask) price if it is a buy
(sell), and
• an off-spread limit order, which is placed inside the order book with a less
attractive price than the best quote.
With probability λcrs , the agent chooses a crossing limit order; with probability
λinspr , the agent uses an inside-spread limit order; with probability λspr , the agent
adopts a spread limit order; with probability λof f spr , the agent places an off-spread
limit order. The sum of these probabilities is one (λcrs + λinspr + λspr + λof f spr =
1). It is assumed that crossing buy (sell) limit orders are always placed at the best
ask (bid) price.2 If the size of the crossing buy (sell) limit order exceeds the depth
at the best ask (bid) quote, the unexecuted part of the buy (sell) limit order will
be placed at the best ask (bid) quote. The inside-spread limit orders are uniformly
placed between the best bid quote and the best ask quote. The placement of off-
spread limit order follows a power-law distribution with exponent βof f −p ,3 and
various order sizes are allowed in the model, which are generated from log-normal
distributions.4
2
This assumption is made based on the observation of LSE market that crossing limit orders
are rarely placed far away from the best quote on the opposite side of the market.
3
Empirical work (Zovko & Farmer, 2002; Potters & Bouchaud, 2003) finds that the relative
price of the off-spread limit order follows a power-law distribution. The relative price is the dif-
ference between the limit price of the order and the best quote.
4
Empirical work (Maslov & Millis, 2001) finds that order size is roughly distributed like a
log-normal distribution with a power law tail.
156
Algorithm 2 Artificial Limit Order Market
Generate a random number from a uniform distribution (0, 1) and determine the agent type according to the
probability 0.5.
switch Agent do
case Buyer
Generate a random number from a uniform distribution (0, 1) and determine the action type
according to the probabilities λo , λm , λl and λc .
switch Action do
case Do nothing
Do nothing at all.
endsw
case Submit a market order
Execute a market order with the order size generated from a log-normal distribution with
parameters µmo and σmo
endsw
case Submit a limit order
Generate a random number from a uniform distribution (0, 1) and determine the limit
order type according to probabilities λcrs , λinspr , λspr and λof f spr .
switch LimitOrder do
case Crossing Limit Order
Submit a limit order at the best ask price with the order size generated from a
log-normal distribution with parameters µcrs and σcrs .
Execute the crossing limit order. If it is not fully executed, place the rest of the
limit order at the best ask price on the order book.
endsw
case Inside-spread Limit Order
Generate a random value denoted as Pinspr from a uniform distribution
(BestBid, BestAsk).
Place a limit order at the price Pinspr on the order book with the order size
generated from a log-normal distribution with parameters µinspr and σinspr .
endsw
case Spread Limit Order
Place a limit order at the best bid price on the order book with the order size
generated from a log-normal distribution with parameters µspr and σspr .
endsw
case Off-spread Limit Order
Generate a random value denoted as RPof f spr from a power-law distribution
with exponent βof f −p .
Place a limit order at the price (BestBid − RPof f spr ) on the order book
with the order size generated from a log-normal distribution with parameters
µof f spr and σof f spr .
endsw
endsw
endsw
case Cancel an outstanding limit order
Cancels the oldest outstanding limit order that the buyer previously submitted.
endsw
endsw
endsw
case Seller
(similar to the case of buyer)
endsw
endsw
157
6.3 Experimental Setup
The setup of the experiment is explained in this section.
In order to make the model more realistic, the 14 parameters (shown in Table 6.2)
of the model are estimated using real data from London Stock Exchange (LSE).
One important reason why the LSE market is studied is that it provides data that
contain details of every order and every trade which enables us to calculate the
parameters of the model. This section provides a brief introduction to the LSE
data and describes how to estimate the parameters of the model using the data.
For this study, the stock Barclays Capital is chosen, which is one of the most fre-
quently traded stocks in LSE. The sample data covers details of all orders and
trades from 1th April to 30th September 2010. Only the continuous trading ses-
sion is considered. The records before 8:00:00 and after 16:30:00 are ignored.
Table 6.1 shows the descriptive statistics of the trades and orders data for Bar-
clays Capital.
The data covers 126 trading days. During the continuous trading session, there
are 30,600,000 milliseconds in each trading day. The numbers of market orders,
limit orders and order cancelations5 and the probabilities of these events on each
day are calculated. As it is assumed that only one event occurs at each millisecond
in the model, the events occurring at the rest of the trading period are ‘do noth-
ing’ events. The probability parameters for the four events (do nothing λo , limit
5
We take order deletion and order expiration in ROB data as the same, both are counted as
order cancelation events.
158
Table 6.1: Descriptive Statistics of ROB Data at Sep. 6, 2010 for Barclays Capital
Descriptive Statistics
Average midquote price: 323.04
Average bid-ask spread: 0.11
Average trade size (pounds): 2,110,606
Average trade size (shares): 6,537
Number of trades: 4,329
Number of order cancelations: 68,783
Number of market orders: 3,972
Number of limit orders: 142,368
order λl , cancelation λc and market order λm ,) of the model are estimated as the
average daily probabilities from the real data. Similar calculations are performed
for the probabilities of the limit order types on each trading day using LSE data.
The probability parameters for limit order types (λcrs , λinspr , λspr and λof f spr ) in
the model are estimated as the average daily probabilities over the whole period
weighted by the total number of limit orders on each trading day.
In the model, each order size is drawn from a log-normal distribution of the func-
tional form:
exp(µ + σ ∗ rnorm )
where µ and σ are parameters, rnorm is a random number drawn from N(0,1), and
exp is an exponential function of the natural number. Each relative limit price is
drawn from the power-law function as:
159
where r is a random number uniformly generated from (0,1), xmin and β are the
parameters which need to be estimated. The data from the whole period is used
to estimate these parameters for all kinds of orders using the method of maximum
likelihood.6 In order to better fit the power-law distribution, extreme values xt
whose probabilities satisfy P (x > xt ) < 0.01 or P (x < xt ) < 0.01 are excluded.
All the estimated parameters are shown in Table 6.2.
The model is simulated using Matlab. In the model, there are always at least
three levels on each side of the order book in order to prevent the order book from
being empty. The artificial market runs for 34,200,000 hypothetical milliseconds
(corresponding to 9 and a half hours) in each simulation. In some cases, the ar-
tificial market may be unstable initially due to the stochastic order flows. Thus,
the first 3,600,000 milliseconds (corresponding to 1 hour) are used to warm up the
market. Only the later 30,600,000 milliseconds which correspond to the contin-
uous trading session in one trading day are used. The artificial market is run for
30 artificial trading days. Like the LSE, the system has a data recording function
which records the details of every trade and every order.
6
The matlab code for estimating the power-law distributions is developed by
the researchers at Santa Fe Institute, which can be downloaded from the website
http://tuvalu.santafe.edu/aaronc/powerlaws/.
160
Table 6.2: Parameters of Artificial Limit Order Market Simulation
161
6.4.1 Results of Probabilities of Events and Limit Order Types
After 30 simulation runs of the artificial market, the numbers of events, orders and
probabilities were recorded. Table 6.3 shows the means and standard deviations
of these over the 30 simulated trading days. An observation from the table is that
the events and orders probabilities in the simulated market are very close to those
in the LSE market (shown in Table 6.2).
The order sizes of different order types in the LSE market and those from the
simulated market were compared. Table 6.4 shows some summary statistics of
order sizes and relative limit prices for the six-month period (126 trading days) in
the LSE data and for the 30-artificial-day period in the simulated data respectively.
One can observe that the average order sizes for all order types and the average
162
relative limit prices in the simulated market are very close to those in the LSE.
163
Table 6.4: Summary Statistics of Order Sizes and Relative Limit Prices
Min Max Mean S.D. Observations
LSE Data 1 789,367 3,916 6,558 1,184,045
Market Order Size
Simulated Data 2 786,637 4,721 10,481 281,970
LSE Data 3 12,500,000 10,562 46,111 93,200
Crossing Limit Order Size
Simulated Data 36 543,378 9,676 16,716 22,080
LSE Data 1 2,476,197 3,902 4,761 2,881,792
Inside-spread Limit Order Size
164
Simulated Data 16 351,554 4,237 5,384 684,870
LSE Data 1 3,398,413 3,723 4,782 5,087,395
Spread Limit Order Size
Simulated Data 33 183,278 3,867 4,028 1,212,240
LSE Data 1 3,666,101 5,966 11,910 21,412,078
Off-spread Limit Order Size
Simulated Data 16 564,201 5,839 7,123 5,094,300
LSE Data 0.05 100.00 1.29 2.76 21,412,078
Off-spread Limit Order’s Relative Price
Simulated Data 0.05 99.99 0.93 4.72 5,107,980
6.4.3 Results of Price Impact vs. Trade Size
This study adopts the method used in Lillo et al. (2002) and Lillo et al. (2003)
to measure the price impact of a market order. Letting the logarithm of midquote
price be p, the price impact caused by a market order is calculated as
where pbef ore is the price just before the market order arrived at the market and
paf ter is the price immediately after the order is executed. The methods used to
measure the trade size vary in previous literature. Lillo et al. (2003) measure it as
traded value in dollars divided by the stock value while Hopman (2007) measure it
as the number of shares in the order divided by the number of shares outstanding.
In this study, the trade size is measured as the shares of the market order divided
by the total trading volume in each trading day.
The average behavior of price impact is investigated by dividing the data based
on trade size into 10 bins and compute the average price impact for the data in each
bin. Figures 6.1 and 6.2 depict the relationship between the price impact and trade
sizes in the LSE and the simulated market respectively.
From Figures 6.1, one finds that the relationship between the price impact and
trade size is nonlinear and concave. Larger trades do not always have higher price
impact than smaller trades. This finding is consistent with the conclusion in pre-
vious literature. There are three explanations for this concavity in the literature.
The first explanation is that large-order trades have private information about the
market price. The second explanation is that large-order traders are patient traders
who wait for periods of high liquidity (Farmer et al., 2004). The third explana-
tion is that the order book has deeper liquidities away from the best bid or ask
(Bouchaud et al., 2002).
165
x 10
−4 price impact vs. trade size in LSE market
3.5
2.5
price impact
1.5
0.5
1 2 3 4 5 6 7 8 9 10
normalized trade size −3
x 10
Figure 6.1: Price Impact vs. Trade Size in the LSE market
166
x 10
−3 price impact vs. trade size in simulated market
8
5
price impact
0
1 2 3 4 5 6 7 8 9 10
normalized trade size −3
x 10
Figure 6.2: Price Impact vs. Trade Size in the simulated market
167
By comparing the price impacts in the two markets, one can find that generally
the price impact in simulated market is larger than that in the LSE market. The
price impacts for the smallest trade sizes are very close in the two markets, but
the price impacts for larger trade sizes (ranging from 2 ∗ 10−3 to 10 ∗ 10−3 ) in
simulated market are bigger than those in the LSE market.
There are two possible reasons to explain the difference on price impact be-
tween the simulated market and the real market. One possible reason is due to the
difference between the price gaps of limit order book in these two markets. If the
limit price gaps in the simulated market are larger than those in the real market, it
is possible that the price impact in the simulated market is larger than that in real
market. However, this reason can be excluded by the fact that the average relative
limit price in simulated market is smaller than that in the LSE market (shown in
Table 6.4).
The other possible reason is that traders in the LSE market execute their orders
intelligently, for example, by observing the market conditions. The intelligent
agents in real market condition their order sizes on market liquidity. Farmer et al.
(2004) and Hopman (2007) both find that large orders are traded when the market
liquidity is deep and small orders are traded when the market liquidity is shallow.
However, the trader agents in the simulated market are ‘zero intelligent’ who do
not care about the market liquidity when trading their orders. Therefore, the price
impacts caused by trading large orders in the simulated market are higher than the
price impacts in the LSE market, which is shown by the results in Figures 6.1 &
6.2. This indicates that agent intelligence plays an important role in determining
the magnitude of price impact, and suggests that agent intelligence is needed when
simulating an artificial market which tries to replicate the relationship between
price impact and market order size.
168
6.5 Summary
Many studies have shown that the price impact of a trade is a concave function of
its trade size, which is often called the “concavity” of price impact. Recently, a
number of studies (Farmer et al., 2004; Hopman, 2007; Weber & Rosenow, 2006)
argue that the concavity is due to selective liquidity taking: traders submit large
orders when the market is more liquidity, and small orders when the market is
less liquid. In an earlier study, Admati & Pfleiderer (1988) also argue that both
liquidity and informed traders prefer to trade when the market is thick, that is when
their trading has little effect on prices. This chapter investigates whether agent
intelligence plays an important role in determining the magnitude of price impact.
An agent-based modeling approach is adopted to perform this task. The advantage
of this approach is that it is easy to analyse one specific factor by isolating it in the
simulation. An zero-intelligence based artificial market was simulated in order to
examine the price impact caused by the zero-intelligence agents.
This chapter provides evidence supporting that agent intelligence is a critical
factor in determining the magnitude of price impact. It contributes to the liter-
ature on price impact. The finding is of interest to academics and practitioners.
It suggests that agent intelligence is an important factor when modelling price
impact. This chapter also contributes to the literature on agent-based modelling
of financial markets. It indicates that agent intelligence is a necessary condition
when simulating an artificial market where replicating realistic price impact is a
concern.
169
Chapter 7
• Cui, W., Brabazon, A. and O’Neill, M. (2010). Evolving Efficient Limit Or-
der Strategy Using Grammatical Evolution. Proceedings of the 2010 IEEE
Congress on Evolutionary Computation, pp. 1-6, Barcelona, Spain. (Cui
et al., 2010d)
170
2010 International Conference on Applications of Evolutionary Computa-
tion, Lecture Notes in Computer Science 6025, pp. 192-201. (nominated as
best paper) (Cui et al., 2010c)
171
to minimise the price impact of trading a large order. As reviewed in Section
2.5.1 of Chapter 2, one of the key assumptions in these models is that only market
orders are adopted.
This chapter aims to shed light on the effect of order choice on the price impact
of trading a large order. To the best of my knowledge, this is the first study which
specifically looks at this issue in the context of designing optimal trade execution
strategies. This chapter finds that order choice is an important determinant of the
design of optimal trading strategies. Using limit orders can help to minimise the
price impact of trading large quantities of orders. As the important task of provid-
ing liquidity in limit order markets is assigned to the complex trading interactions
enabled by the emergence and disclosure of the limit order book, the state of the
limit order book is extremely important for practitioners who use it to optimise
their trading strategies. In this chapter, this consideration is also accounted in the
design of execution strategies.
This chapter is organised as follows. A review of related work on trade exe-
cution and the genetic algorithm is given in Section 7.1; experimental design is
described in Section 7.2; experimental setup is explained in Section 7.3; empiri-
cal results are documented in Section 7.4; a summary of this chapter is given in
Section 7.5.
172
In their study, a large order is to be completed within one trading day. The or-
der is divided into ten child orders which are submitted to the market at regular
intervals of half an hour. The relative sizes of these child orders are determined
according to share volume trading patterns, which typically follow a U-shaped
pattern with increased volumes trading at the open and close. The child orders
are placed into the market as limit orders at the best available price and the Evo-
lutionary Algorithm is used to find the optimal lifetime that a limit order would
remain on the order book (if it had not already been executed) before it was au-
tomatically ticked over the spread to close out the trade. The fitness function was
the Volume Weighted Average Price (VWAP) performance of that strategy rela-
tive to the benchmark daily VWAP. Each strategy was trained on three months’
worth of transaction-level data using a market simulator. The results were tested
out of sample on three highly liquid stocks and tested separately for sell side and
buy side. The in sample and out of sample performances of the evolved strategies
were better than those of pure market order strategies and pure limit order strate-
gies. In Lim & Coggins (2005b), the strategies were tested using historical data.
An agent-based artificial market is used instead in the present study.
173
various types of limit orders with different levels of aggressiveness plays an im-
portant role in determining the price impact when trading a large order. Empir-
ical evidence suggests that the state of the order book affects order placement
strategies. This effect is taken into account in the second and the third exper-
iments, where the trader is allowed to use market information to determine his
order choice. In the second experiment, the trader can place a limit order at three
levels of aggressiveness, aggressive limit order, moderate limit order, and passive
limit order, which are explained below. The aim of the second experiment is to
examine whether the choice between these three types of limit orders influences
the price impact of trading a large order. In the third experiment where the trader
can use a combination of market order and moderate limit order, the objective is
to investigate whether the choice between market order and limit order affects the
price impact of trading a large order.
• Aggressive limit order is a limit order whose limit price is one tick better
than the best price in the order book.
• Moderate limit order is a limit order which is placed at the best price in the
order book.
• Passive limit order is a limit order whose limit price is one tick worse than
the best price in the order book.
In these three experiments, the performances of the evolved strategies are com-
pared with those of simple execution strategies which only use one type of order.
In the first experiment, the evolved strategy is compared with a simple market
order strategy which only adopts market orders. In the second experiment, the
evolved strategy is compared with a simple aggressive limit order strategy, a sim-
ple moderate limit order strategy and a simple passive limit order strategy which
only use aggressive limit orders, moderate limit orders and passive limit orders
174
respectively. In the third experiment, the combined strategy is compared with
simple market order strategy and simple limit order strategy which only employs
market orders and moderate limit orders respectively.
Performance Evaluation
The standard industry metric for measuring trade execution performance is
the VWAP measure, short for Volume Weighted Average Price. The VWAP price
as a quality of execution measurement was first developed by Berkowitz et al.
(1988), who argued that ‘a market impact measurement system requires a bench-
mark price that is an un-biased estimate of prices that could be achieved in any
relevant trading period by any randomly selected trader’ and then defined VWAP
as an appropriate benchmark that satisfied this criteria.
The VWAP is calculated as the ratio of the value traded and the volume traded
within a specified time horizon (Berkowitz et al., 1988)
∑
(V olume ∗ P rice)
V W AP = ∑
(V olume)
where V olume represents the number of shares in each trade and P rice represents
its corresponding traded price. An example is shown in Table 7.1.
In order to evaluate the performance of a trade execution strategy, its VWAP
is compared against the VWAP of the overall market. The rationale here is that
performance of a trade execution strategy is considered good if the VWAP of
the strategy is more favorable than the VWAP of the market within the trading
period and poor if the VWAP of the strategy is less favorable than the VWAP of
the market within the trading period. For example, if the VWAP of a buy strategy
(V W AP strategy ) is lower than the market VWAP (V W AP market ), it is considered
a good trade execution strategy. Conversely, if the V W AP strategy is higher than
the V W AP market , it is considered a poor trade execution strategy. Although this
175
Table 7.1: VWAP Calculation of A Sample Buy Strategy
Submission Traded
Shares Value
Time Price
Child Order 1: t0 400 ∗ 50.15 = 20,060
600 ∗ 50.16 = 30,096
Child Order 2: t1 (t0 + ∆t) 1,000 ∗ 50.40 = 50,400
Child Order 3: t2 (t0 + 2∆t) 200 ∗ 50.34 = 10,068
800 ∗ 50.36 = 40,288
Child Order 4: t3 (t0 + 3∆t) 1,000 ∗ 50.39 = 50,390
Child Order 5: t4 (t0 + 4∆t) 1,000 ∗ 50.68 = 50,680
Child Order 6: t5 (t0 + 5∆t) 1,000 ∗ 51.10 = 51,100
Child Order 7: t6 (t0 + 6∆t) 1,000 ∗ 50.87 = 50,870
Child Order 8: t7 (t0 + 7∆t) 700 ∗ 50.98 = 35,686
300 ∗ 51.00 = 15,300
Child Order 9: t8 (t0 + 8∆t) 1,000 ∗ 50.39 = 50,390
Child Order 10: t9 (t0 + 9∆t) 1,000 ∗ 50.26 = 50,260
Total: 10,000 505,588
VWAP = 505, 588/10, 000 = 50.5588
is a simple metric, it largely filters out the effects of volatility, which composes
market impact and price momentum during the trading period (Almgren, 2008).
The performance evaluation functions are as follows (which were used by Lim
& Coggins (2005b)):
104 ∗(V W AP strategy −V W AP market )
(BuyStrategy)
V W AP market
V W AP Ratio =
10 ∗(V W AP market −V W AP strategy )
4
V W AP market
(SellStrategy)
where V W AP market is the average execution price which takes into account all
the trades over the day excluding the strategy’s trades. This corrects for bias,
especially if the order is a large fraction of the daily volume (Lim & Coggins,
176
2005b). For both buy and sell strategies, the smaller the VWAP Ratio, the better
the strategy is. If the combined strategies outperform the simple execution strate-
gies in terms of minimising price impact, it can be concluded that order choice is
an important determinant of trade execution strategies.
The design of an execution strategy can be considered of consisting of two
stages. The first stage is to divide a big block of shares into multiple small orders,
and the second stage is to determine the parameters of each small order, including
order type (limit/market order), submission time, limit price of limit order and
lifetime (the time length when a limit order appears in the order book before it
is cancelled or changed). How to divide a large trade depends on the order size
and trading time. The following three sections describe the designs of execution
strategies in these three experiments respectively.
In this experiment, the large-quantity order is equally divided into 30 small orders,
and submit each small order into the market at regular intervals over one trading
day. In the design of the combined execution strategy, limit orders with varied
levels of aggressiveness are allowed. A genetic algorithm is adopted as the learn-
ing method of the trader who learns where to place his limit order in the order
book and when to cross his limit order over the bid-ask spread if it has not been
fully executed. The representation of the trading strategy in the genetic algorithm
method is shown in Figure 7.1.
The order aggressiveness is distinguished by the variable ci which represents
the relative price of order i. The following examples are used to illustrate how
to use the variable ci to determine the level of aggressiveness of each order. For
example, at the time of order submission, the best bid and best ask in the market
are 49.00 and 51.00 respectively and then the bid-ask spread is 2.00, assuming
177
1 ĂĂ 30 1 ĂĂ 30
1 30
1̢ 30
• ci < 2.00 means that order i will be placed at 49.00 + ci , and its lifetime bi
means that at the end of its lifetime any unfilled part (if there is) of order i
will get crossed over the bid-ask spread for trading completion;
• ci > 2.00 or ci = 2.00 means that order i is a marketable limit order which
will be executed immediately at price 51.00.
In this experiment, a large-quantity order is equally divided into ten small orders
and submitted to the market at regular intervals over the trading day. Three types
of limit orders with varied levels of aggressiveness are considered: aggressive
limit order, moderate limit order and passive limit order. Two execution strategies
with two different settings of limit order’s lifetime are devised. One takes a short
lifetime, while the other takes a long lifetime. These two lifetime settings are
explained as follows. If the limit order is not fully executed at the end of its
lifetime, it will get crossed over the bid-ask spread for trading completion.
• In the short-lifetime strategy, each limit order can survive until the end of
its interval period.
• In the long-lifetime strategy, each limit order can survive until the end of
the trading day.
178
As prior literature indicates that the state of the limit order book affects or-
der placement strategies, both this experiment and the next experiment take into
account this effect. A range of possible explanatory variables, also known as in-
formation indicators, have been suggested in the literature. Six variables, which
are commonly employed in recent literature of market microstructure, are adopted
in the experiments. The explanations of these six variables are shown in Table 7.2.
Variables Definitions
BidDepth Number of shares at the best bid
AskDepth Number of shares at the best ask
Total number of shares at the best five ask prices divided by
RelativeDepth
total number of shares at the best five bid and ask prices
Spread Difference between the best bid price and best ask price
Volatility Standard deviation of the most recent 20 mid-quotes
Number of positive price changes within the past ten
PriceChange minutes divided by the total number of quotes submitted
within the past ten minutes
179
represents the average bid depth of the market, AvgAskDepth represents the av-
erage ask depth of the market, AvgRelativeDepth represents the average rela-
tive depth of the market, AvgSpread represents the average spread of the market,
AvgV olatility represents the average volatility of the market and AvgP riceChange
represents the average price change of the market.
<lc> ::= if (<stamt>)
class = "AggressiveLimitOrder"
else {
if (<stamt>)
class = "ModerateLimitOrder"
else
class = "PassiveLimitOrder"
}
<stamt> ::= (<stamt><op><stamt>)|<cond1>|<cond2>|
<cond3>|<cond4>|<cond5>|<cond6>|
<cond7>|<cond8>
<op> ::= and
<cond1> ::= (BidDepth<comp>AvgBidDepth)
<cond2> ::= (AskDepth<comp>AvgAskDepth)
<cond3> ::= (RelativeDepth<comp>AvgRelativeDepth)
<cond4> ::= (Spread<comp>AvgSpread)
<cond5> ::= (Volatility<comp>AvgVolatility)
<cond6> ::= (PriceChange<comp>AvgPriceChange)
<cond7> ::= (PercOfTradedVolume<comp><threshold>)
<cond8> ::= (PercOfPastTime<comp><threshold>)
<comp> ::= <less>|<more>|<lessE>|<moreE>
<less> ::= "<"
<more> ::= ">"
<lessE> ::= "<="
<moreE> ::= ">="
<threshold> ::= 0.1|0.2|0.3|0.4|0.5|0.6|0.7|0.8|0.9
180
mitted. Otherwise, a moderate limit order is submitted if V olatility <= AvgV olatility,
or a passive limit order is submitted if V olatility > AvgV olatility.
if (PercOfTradedVolume<0.5 and PercOfPastTime>=0.8)
AggressiveLimitOrder
else{
if (Volatility<=AvgVolatility)
ModerateLimitOrder
else
PassiveLimitOrder
}
In this experiment, a large-quantity order is equally divided into ten small orders
and submitted to the market at regular intervals over the trading day. Both market
orders and moderate limit orders are allowed in the design of execution strategy.
Any unfilled orders at the end of trading day will get crossed over the bid-ask
spread for trading completion. As in experiment two, a grammatical evolution
algorithm is used as the learning method for the trader in order to learn the rules
on how to choose between market orders and moderate limit orders based on the
six information indicators of the limit order book. The grammar adopted in the
grammatical evolution algorithm is shown in Figure 7.4.
An example of an trade execution strategy evolved using the grammar in Fig-
ure 7.4 is illustrated in Figure 7.5. Using this example strategy, if (RelativeDepth >
AvgRelativeDepth) is true, a market order is submitted, otherwise, a moderate
limit order is submitted.
181
<lc> ::= if (<stamt>)
class = "MarketOrder"
else
class = "ModerateLimitOrder"
<stamt> ::= <cond1><op><cond2><op><cond3><op>
<cond4><op><cond5><op><cond6>
<op> ::= and | or
<cond1> ::= (BidDepth>AvgBidDepth) is <boolean>
<cond2> ::= (AskDepth>AvgAskDepth) is <boolean>
<cond3> ::= (RelativeDepth>AvgRelativeDepth) is
<boolean>
<cond4> ::= (Spread>AvgSpread) is <boolean>
<cond5> ::= (Volatility>AvgVolatility) is <boolean>
<cond6> ::= (PriceChange>AvgPriceChange) is <boolean>
<boolean> ::= True | False
if (RelativeDepth>AvgRelativeDepth) is True
MarketOrder
else
ModerateLimitOrder
182
7.3 Artificial Market Simulators
The execution strategies are tested in an artificial market simulator. Critically, in
the experiments the actions of the evolved execution strategies employed by the
simulated trader impacts on the state of the order book facing all the other agents
in the stock market and therefore impacts on their actions. In turn, the actions of
those agents impact on the order book facing the trader and therefore on the utility
of her execution strategy. In other words, the training and testing environment is
dynamic and allows examination of the issues of market impact and opportunity
cost. on trade execution. The use of an artificial stock market environment to
test the utility of execution strategies is a novel contribution of this chapter, and
opens up the door to a wide range of future work in this domain. Different mar-
ket simulators are used to test those three experiments. The purpose of this is to
examine whether the execution strategies keep robust in different market environ-
ments. Specifically, simulator I is adopted to test the strategies in experiment one,
while simulator II is employed to test the strategies in experiments two and three.
7.3.1 Simulator I
In the artificial market simulator I, the agents are equally likely to generate a
buy order or a sell order. The order can be a market order, a limit order, or a
cancellation of a previous limit order. When an agent is active, she can try to
issue a cancelation order with probability λc (oldest orders are canceled first), a
market order with probability λm , a limit order with probability λl = 1 − λc − λm .
In the model, the limit order price is uniformly distributed inside the spread with
probability λin , and power-law distributed outside the spread with probability 1 −
λin . Limit order price ranges are illustrated in Figure 7.6.
In this model, order generation is modeled as a Poisson process, which means
183
Price range of incoming limit buy orders
that the time between orders follows an exponential distribution. As each incom-
ing buy (sell) market order arrives, the market agent will match it with the best ask
(bid) limit order stored in the order book. If this market order is fully filled by the
first limit order, the unfilled part will be matched to the next best ask (bid) limit
order until it is fully filled. As each incoming limit order arrives, the market agent
will store it in the order book according to price and time priority. As each incom-
ing cancelation order arrives, the market agent will delete the relevant limit order
in the order book. In the simulation, a Swarm platform in JAVA (Swarm, 2009) is
adopted, which is one of the most popular agent-based modeling platforms. The
algorithm used in the simulation I is described in Algorithm 3.
In order to ensure that the order flows generated by the artificial market are
economically plausible, all the parameters in the model are derived from previous
literature (Chakraborti et al., 2011; Farmer et al., 2005b,c,a, 2006; Mike & Farmer,
2008; Toth et al., 2009). The parameters used in the simulation are presented in
Table 7.3.
184
Algorithm 3 Artificial Market Simulator I
Explanation Value
Initial Price price0 = 100
Tick Price δ = 0.01
Probability of Cancellation Order λc = 0.07
Probability of Market Order λm = 0.33
Probability of Limit Order λl = 0.60
Probability of Limit Order in Spread λin = 0.35
Probability of Limit Order Out of Spread λout = 0.65
Limit Price Tail Index 1 + α = 1.3
Order Size (µ, σ) ∼ (4.5, 0.8) ∗ 100 shares
Waiting Time τ = 6, 90
185
7.3.2 Simulator II
186
Algorithm 4 Artificial Market Simulator II
Generate a random number from a uniform distribution (0, 1) and determine the agent type according to the
probability 0.5.
switch Agent do
case Buyer
Generate a random number from a uniform distribution (0, 1) and determine the order type according
to the probabilities λm , λl and λc .
switch Order Type do
case Market order
Execute a market order with the order size generated from a power-law distribution with
exponent µ2
endsw
case Limit order
Generate a random number from a uniform distribution (0, 1) and determine the limit
order type according to probabilities λinSpread , λatBest , andλinBook .
switch Limit Order Type do
case Inside-spread Limit Order
Generate a random value denoted as Pinspr from a uniform distribution
(BestBid, BestAsk).
Place a limit order at the price Pinspr on the order book with the order size
generated from a power-law distribution with exponent µ3 .
endsw
case Spread Limit Order
Place a limit order at the best bid price on the order book with the order size
generated from a power-law distribution with exponent µ3 .
endsw
case Off-spread Limit Order
Generate a random value denoted as RPof f spr from a power-law distribution
with exponent µ1 .
Place a limit order at the price (BestBid − RPof f spr ) on the order book
with the order size generated from a power-law distribution with exponent µ3 .
endsw
endsw
endsw
case Cancelation order
Cancels the oldest outstanding limit order that the buyer previously submitted.
endsw
endsw
endsw
case Seller
(similar to the case of buyer)
endsw
endsw
187
Table 7.4: Initial Parameters for Artificial Limit Order Market II
Explanation Value
Initial Price price0 = 50
Tick Price δ = 0.01
Probability of Order Cancellation λc = 0.34
Probability of Market Order λm = 0.16
Probability of Limit Order λl = 0.50
Probability of Limit Order in Spread λinSpread = 0.32
Probability of Limit Order at Best Quote λatBest = 0.33
Probability of Limit Order off the Best Quote λinBook = 0.35
Limit Price Power Law Exponent 1 + µ1 = 2.5
Market Order Size Power Law Exponent 1 + µ2 = 2.7
Limit Order Size Power Law Exponent 1 + µ3 = 2.1
188
7.4 Results and Discussions
Results of the three experiments are presented and discussed as below.
The Combined-I strategy was evolved using the parameters presented in Table 7.5,
and then was evaluated in the artificial market for 30 simulation runs. Its VWAP
ratio is shown in Table 7.6. The VWAP Ratio reveals the difference between the
volume weighted execution price of Combined-I orders and the average traded
price of all orders during the whole simulation time. The better strategies have
smaller VWAP ratios.
Table 7.5: Parameters for Genetic Algorithm in Experiment One
Parameter Value
Population size 30
Maximum number of generation 100
Generation gap 0.8
Crossover rate 0.75
Mutation rate 0.05
Selection method Stochastic Universal Sampling
Crossover method Single-Point
The VWAP ratio of simple market order strategy (SM), which was evaluated
in the artificial market for 30 simulation runs, is also presented in Table 7.6. In
order to analyze the Combined-I strategy, the execution types of the 30 orders
are also recorded in the experiment. The three execution types are explained as
follows.
189
2. LO. It represents limit order. If the order is executed against market orders
with opposite order sign some time after its submission, it is denoted as LO.
3. Crossed. If the order is not executed in the required time period but gets
executed at the end of the period for trading completeness, it is denoted as
Crossed.
From Table 7.6, the Combined-I strategy outperforms the SM strategy signif-
icantly, both in-sample and out-of-sample, which is consistent with the results in
Lim & Coggins (2005b). Table 7.6 shows that the Combined-I strategy, which
has more orders executed via LOs, has a smaller VWAP ratio, meaning better per-
formance. All the Combined-I strategies with negative VWAP ratios have more
orders executed in the way of LO than those executed in the two other ways, ex-
cept the best out-of-sample strategy in Table 7.6. Also, Combined-I strategies
have achieved better VWAP than that of the whole simulation time for buy and
sell in in-sample test, which is showed by the negative values of VWAP ratios.
This is more significant for the sell order.
190
7.4.2 Results of Experiment Two
The Combined-II strategy was evolved using the parameters presented in Table
7.7, and then was evaluated in the artificial market for 240 simulation runs. Its
VWAP ratio is shown in Tables 7.8 & 7.9. The VWAP Ratio reveals the differ-
ence between the volume weighted execution price of Combined-II orders and the
average traded price of all orders during the whole simulation time. The better
strategies have smaller VWAP ratios.
Parameter Value
Population size 100
Maximum number of generation 40
Generation gap 0.8
Crossover rate 0.9
Mutation rate 0.01
Selection method Roulette
Crossover method Single-Point
The results (all out of sample) of buy strategies and sell strategies are provided
in Tables 7.8 & 7.9. The “S-T” represents short-term lifetime and the “L-T” repre-
sents long-term lifetime. The “Mean” is the average VWAP ratio of each strategy
over the 240 days, and “S.D.” represents the standard deviation of the average
(daily) VWAP ratio. P-values for the null hypothesis H1 : meanSA ≤ meanGE ,
H2 : meanSM ≤ meanGE , H3 : meanSP ≤ meanGE are also shown in the table,
to indicate the degree of statistical significance of the performance improvement
of Combined-II strategies over the two simple strategies. The figures show that
the null hypotheses are rejected at the ≤ 0.01 level.
Based on the results, Combined-II strategies notably outperform the three
benchmark strategies, a simple aggressive limit order strategy (SA), a simple mod-
est limit order strategy (SM) and a simple passive limit order strategy (SP). The
191
performances of these four strategies can be described as follows.
192
Table 7.8: Results of Experiment Two (Buy Orders)
193
Note: SA Strategy represents Simple Aggressive limit order Strategy.
SM Strategy represents Simple Moderate limit order Strategy.
SP Strategy represents Simple Passive limit order Strategy.
S.D. is short for Standard Deviation.
S-T is short for Short-Term lifetime.
L-T is short for Long-Term lifetime.
Table 7.9: Results of Experiment Two (Sell Orders)
194
Note: SA Strategy represents Simple Aggressive limit order Strategy.
SM Strategy represents Simple Moderate limit order Strategy.
SP Strategy represents Simple Passive limit order Strategy.
S.D. is short for Standard Deviation.
S-T is short for Short-Term lifetime.
L-T is short for Long-Term lifetime.
7.4.3 Results of Experiment Three
The Combined-III strategy was evolved using the parameters presented in Table
7.10, and then was evaluated in the artificial market for 240 simulation runs. Its
VWAP ratio is shown in Table 7.11. The VWAP Ratio reveals the difference
between the volume weighted execution price of Combined-III orders and the
average traded price of all orders during the whole simulation time. The better
strategies have smaller VWAP ratios.
Parameter Value
Population size 100
Maximum number of generations 40
Generation gap 0.8
Crossover rate 0.9
Mutation rate 0.01
Selection method Roulette
Crossover method Single-Point
The results (all out of sample) of buy strategies and sell strategies are pro-
vided in Table 7.11. The “Mean” is the average VWAP ratio of each strategy over
the 240 days, and “S.D.” represents the standard deviation of the average (daily)
VWAP ratio. P-values for the null hypothesis H1 : meanSM ≤ meanCombined−III
and H2 : meanSL ≤ meanCombined−III are also shown in the table, to indicate the
degree of statistical significance of the performance improvement of Combined-III
strategies over the two simple strategies. The figures show that the null hypotheses
are rejected at the ≤ 0.01 level.
Based on the results, Combined-III strategies notably outperform the two bench-
mark strategies, a simple market order strategy (SM) and a simple limit order strat-
egy (SL). The negative VWAP ratios of -1.42 and -23.21 show that the GE evolved
strategies achieve better execution prices than the average execution price of the
195
Table 7.11: Results of Experiment Three
market. The small standard deviations of 0.49 and 0.48 indicate that Combined-III
strategy is robust over the tested trading days. The performance of SL strategies
seems more volatile than those of SM strategies and Combined-III strategies, and
the performance of SM strategies is more stable than those of the other two kinds
of strategies. Comparing the performance of the strategies for buy and sell orders,
it can be observed that the performances of sell strategies are better than those of
buy strategies, which means that trading costs of buys are higher than those of
sells. This asymmetry is consistent with previous empirical findings.
7.4.4 Discussions
The results in the three experiments all show that the combined strategies out-
perform the simple strategies. This indicates that order choice affects the perfor-
mance of trade execution strategies, that is the price impact of trading large-orders,
and suggests that order choice is an important decision in large-order trade execu-
tion.
In the above experiments, both buy and sell strategies are tested. The results
of these experiments all show that sell strategies generally perform better than
buy strategies, confirming the asymmetric price impacts of institutional trades
found in previous literature (Bikker et al., 2007; Chan & Lakonishok, 1993, 1995;
196
Gemmill, 1996; Holthausen et al., 1987, 1990; Keim & Madhavan, 1995b, 1996,
1997; Kraus & Stoll, 1972).
Several explanations appear in the literature to account for this asymmetry
phenomenon. Chan & Lakonishok (1993) and Keim & Madhavan (1996) argue
that sells are more often liquidity-motivated rather than information-based than
buys. Buys create new long-term positions and thus imply a preference to hold
a particular stock. Saar (2001) provides a different explanation for the price im-
pact asymmetry. He builds a theoretical model which demonstrates how the price
impact asymmetry can arise. The main implication of the model is that the his-
tory of price performance of a stock affects the degree of asymmetry: the longer
the run of price appreciations, the less positive the difference in permanent price
impact between buys and sells. When the price run-up is long enough, sells may
even have higher price impact than buys. Another explanation for the price impact
asymmetry is given by Chiyachantana et al. (2004). They find that the asymmetry
depends on particular market conditions: price effects of buyer-initiated trades are
greater in bull markets (as in 1997-1998) whereas those of seller-initiated trades
are larger in bear markets (as in 2001). Boscuk & Lasfer (2005) take a different
view and show that the type of investor and the combination of the size of the
trade and the trader’s resulting level of ownership are the major determinants of
price impact asymmetry at the London Stock Exchange.
7.5 Summary
Order choice problem and large-order trading problem have been studied sepa-
rately in the market microstructure literature. However, large order trading with
various order types has not been investigated. This chapter sheds light on large-
order traders’ use of limit orders. It examined whether order choice affects the
197
price impact of trading a large order. Different combinations of order types were
investigated. Agent-based artificial markets were simulated in order to evaluate
the trading strategies. One advantage of this performance evaluation approach is
that the simulated market can capture the dynamic effect of trading while histori-
cal data can not.
The results show that the combined-order-type strategies perform better than
the simple-order-type strategies in terms of price impact. This confirms the finding
in Keim & Madhavan (1997) that the investment style affects trading costs. This
study also demonstrates that buys are more expensive than sells, which is consis-
tent with the findings in Bikker et al. (2007); Chan & Lakonishok (1993, 1995);
Gemmill (1996); Holthausen et al. (1987, 1990); Keim & Madhavan (1995b,
1996, 1997); Kraus & Stoll (1972).
This chapter compliments the prior literature on trade execution strategies,
providing evidence that order choice plays an important role in determining the
price impact when trading a large order. The findings in this chapter are of interest
to academics. When modelling the behaviours of large-order traders, order choice
as an import factor should be taken into account. Moreover, the results provide
useful insights for institutional traders who are obligated to liquidate or acquire
a big position, suggesting that large-order execution strategies adopting multiple
order types can perform better than those using single order type.
In addition, this chapter contributes to the literature on agent-based modellings
of financial markets. It makes the first attempt to use agent-based modelling to
evaluate the performance of trade execution strategies. The artificial market model
developed in this study can be extended to examine the effect of high-frequency
trading on market quality.
198
Part III
Conclusions
199
Chapter 8
This chapter begins with a brief summary of the thesis and the contributions it has
made. The limitations of this thesis are highlighted in Section 8.2. Suggestions
for future work complete the chapter in Section 8.3.
1. Does price impact on the LSE and the NYSE exhibit an intraday pattern?
3. Does order choice affect the price impact of trading large orders?
200
analysis, several steps were implemented to preprocess the data in Chapter 4. The
entries in the TAQ data recorded during non-normal trading periods were deleted,
as well as the entries with non-positive values. Identified outliers in the TAQ
data were also removed. An algorithm was developed for inferring the hidden
information contained in the ROB data. Then the limit order book for each trading
day was rebuilt using the ROB data. With the clean data, six stocks selected from
the US markets and six stocks selected from the UK markets were analysed. The
results on intraday patterns generally confirm those found in the previous studies
as reviewed in Chapter 2. In particular, intraday price impact is found to be reverse
S-shaped for US and UK stocks.
The study in Chapter 6 addressed the second research question. As motivated
by the argument in Farmer et al. (2004) that traders condition their order sizes
based on market liquidity, this study investigated whether agent intelligence af-
fects the magnitude of price impact. An agent-based modelling approach was
adopted, as this method facilitates the isolation of a relevant factor in the market
simulation. An artificial limit order market composed of zero-intelligence agents
was simulated. It captured the salient features of electronic limit order markets
including continuous trading, a visible book of orders, price-time priority rules,
instantaneous trade reporting rules, order cancellation capabilities, and both limit
order and market order functionality. In addition, the artificial market was cali-
brated using the LSE ROB data. The results showed that the price impact observed
in the artificial market was generally larger than that observed in the real market,
indicating that agent intelligence is an important determinant of the magnitude of
price impact.
Price impact is an significant component of trading cost, and thus controlling
price impact is important for improving execution performance. The study in
Chapter 7 examined whether order choice affects the performance of large-order
201
execution. Several combined strategies, which used various types of orders, were
developed and their performances was then evaluated using price impact. The
results were benchmarked against simple strategies which adopted a single or-
der type. The results show that the combined strategies outperformed the simple
strategies, indicating that order choice is important in controlling price impact for
large-order execution.
Arising from this thesis, these series of experiments help our understanding
of price impact. It identifies the important intraday behaviours of price impact,
the crucial role of agent intelligence in determining the magnitude of price im-
pact, and the significance of order choice in determining the price impact of trad-
ing large orders. These findings have further implications for research on market
microstructure, for example, understanding how securities markets function and
developing comprehensive models of market microstructure. Moreover, they are
also of interest to institutional traders and trading desks.
8.1.1 Contributions
Through the gathering together of the literature on market microstructure and the
literature on agent-based financial markets and the subsequent implementation of
a series of experiments in the domain, a number of key insights are generated.
This section reviews the contributions of this thesis as follows.
202
price impact and trade size, studies on large price impact, studies of intraday
phenomena on price volatility, bid-ask spread, trading volume and market
depth, studies on optimal trading strategies for a single asset, and studies on
order submission strategies. This chapter uncovered several research gaps,
which led to the experimental studies of this thesis. Chapter 3 reviewed
various applications of agent-based modelling to financial markets, and re-
vealed that there had been little attempt to use agent-based modelling for
investigating price impact.
As some studies (Ahn & Cheung, 1999; Lee et al., 1993; Li et al., 2005; Vo,
2007) have documented an intraday pattern on market depth, price impact
may exhibit an intraday pattern because price impact is affected by market
liquidity. This thesis analysed intraday behaviours of price impact, using
the recent data drawn from the NYSE-Euronext TAQ database and the LSE
ROB database. It for the first time documented a reverse S-shaped intraday
pattern on price impact in UK and US markets. Moreover, it found that
price impact had a negative association with near market depth. The result
suggests that the information conveyed by price impact is consistent with
near market depth as indicators of intraday market liquidity.
The previous studies on intraday phenomena are dated. This thesis anal-
ysed intraday behaviours of market liquidity, using recent data drawn from
the NYSE-Euronext TAQ database and the LSE ROB database, and pro-
vided up-to-date evidence on intraday behaviours of price volatility, bid-ask
spread, market depth, trading volume, trading frequency and trade size in
203
UK and US markets. Unlike previous studies on intraday phenomena which
only examined the market depth at the best level of the limit order book, this
thesis for the first time analyses the intraday behaviour of market depth for
up to ten levels of the limit order book in the UK market.
Prior studies on price impact typically found that price impact is a concave
function of trade size. Some of them (e.g. Farmer et al. (2004); Hopman
(2007); Weber & Rosenow (2006)) argued that this concavity was due to
selective liquidity taking, namely agents conditioning order size on market
liquidity. However, little study was conducted to investigate this. This thesis
for the first time investigated whether agent intelligence plays an important
role in determining the magnitude of price impact. The results support the
hypothesis that agent intelligence plays an important role in determining the
magnitude of price impact.
204
Agent-based modelling have been applied to economics and finance for a
long time, but there has been little attempt to use ABM for investigating
price impact. This thesis makes the first attempt to investigate price impact
using ABM in its two experimental studies. It laid the framework for this
use, and the model developed here can be extended for other applications,
like investigation of the market effect of high-frequency trading.
205
route their orders to the cheapest trading place in order to reduce trading costs. A
number of studies are focusing on this issue. For example, Foucault & Menkveld
(2008) empirically examines smart order routing systems, and Rawal (2010) dis-
cusses the importance of intelligent decision-making in order routings.
206
of order type and order size. This investigation would shed light on how liquidity
is supplied and demanded across multiple linked markets.
207
Appendix A
One of the aims of this thesis is to investigate whether price impact exhibits an
intraday pattern and whether this intraday pattern is consistent across different
stocks in US and UK markets. Therefore, the stocks are chosen from different
industries and with different market capitalisations. The chosen time period is
a normal period. During these time periods, there were no disturbances in the
markets. The chosen length of the time period is enough to generate intraday
patterns. Figures A.1 & A.2 illustrate the intraday curves of price volatility using
one-day data and one-month day separately.
208
−3
x 10
7
5
Absolute Log Return
0
9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time
209
−3
x 10
9
6
Absolute Log Return
1
9:30 10:30 11:30 12:30 13:30 14:30 15:30
Time
210
Appendix B
This appendix includes some results from experiment two in Chapter 5. This the-
sis measures market depth in share and in value as well as time-weighted market
depth for UK stocks. Chapter 5 includes the figures showing intraday pattern on
market depth in share. This appendix presents the intraday patterns on market
depth in value and time-weighted market depth. From Figures B.1-B.10, it can be
observed that the intraday patterns on market depth in value and on time-weighted
market depths are almost identical to the intraday patterns on market depth in share
as shown in Chapter 5.
211
Time−weighted Depth in Share Time−weighted Depth in Share
11000 3000
10500
2800
10000
2600
TW Depth (Share)
TW Depth (Share)
9500
2400
9000
2200
8500
2000
8000
7500 1800
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
13000
10500
12000
10000 11000
TW Depth (Share)
TW Depth (Share)
10000
9500
9000
9000 8000
7000
8500
6000
8000 5000
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
10
8500
8000
TW Depth (Share)
TW Depth (Share)
7500
7000
6
6500
5
6000 4
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
212
6
x 10 Depth in Value 6
x 10 Depth in Value
3.2 6.5
3.1
6
3
2.9 5.5
Depth (Value)
Depth (Value)
2.8
5
2.7
2.6 4.5
2.5
4
2.4
2.3 3.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
1.5
4.4
1.4
1.3
4.2
1.2
Depth (Value)
Depth (Value)
4 1.1
3.8
0.9
0.8
3.6
0.7
3.4 0.6
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
6
x 10 Depth in Value 7
x 10 Depth in Value
5.4 1.5
1.4
5.2
1.3
5
1.2
4.8
1.1
Depth (Value)
Depth (Value)
4.6 1
0.9
4.4
0.8
4.2
0.7
4
0.6
3.8 0.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
213
6
x 10 Time−weighted Depth in Value 6
x 10 Time−weighted Depth in Value
3.6 7
3.4 6.5
3.2 6
TW Depth (Value)
TW Depth (Value)
3 5.5
2.8 5
2.6 4.5
2.4 4
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
1.5
4.8
1.4
1.3
4.6
TW Depth (Value)
TW Depth (Value)
1.2
4.4 1.1
4.2
0.9
0.8
4
0.7
3.8 0.6
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
6
x 10 Time−weighted Depth in Value 7
x 10 Time−weighted Depth in Value
6 1.6
5.8 1.5
1.4
5.6
1.3
5.4
TW Depth (Value)
TW Depth (Value)
1.2
5.2
1.1
5
1
4.8
0.9
4.6
0.8
4.4 0.7
4.2 0.6
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
214
6
x 10 Bid Depth in Value x 10
6 Bid Depth in Value
3.1 6.5
3
6
2.9
2.8 5.5
Bid Depth (Value)
2.5 4.5
2.4
4
2.3
2.2 3.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
1.4
4.4
1.3
1.2
4.2
Bid Depth (Value)
1.1
4 1
0.9
3.8
0.8
0.7
3.6
0.6
3.4 0.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
6
x 10 Bid Depth in Value 6
x 10 Bid Depth in Value
5.4 14
13
5.2
12
5
11
4.8
Bid Depth (Value)
Bid Depth (Value)
10
4.6
9
4.4
8
4.2
7
4 6
3.8 5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
215
6
x 10 Ask Depth in Value 6
x 10 Ask Depth in Value
3.2 7
3.1
6.5
6
2.9
Ask Depth (Value)
2.7
5
2.6
4.5
2.5
4
2.4
2.3 3.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
1.4
4.4
1.3
4.2 1.2
Ask Depth (Value)
1.1
4
1
3.8 0.9
0.8
3.6
0.7
3.4 0.6
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
6
x 10 Ask Depth in Value 7
x 10 Ask Depth in Value
5.4 1.5
1.4
5.2
1.3
5
1.2
4.8
Ask Depth (Value)
1.1
4.6 1
0.9
4.4
0.8
4.2
0.7
4
0.6
3.8 0.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
216
x 10
5 Time−weighted Near Depth in Share 4
x 10 Time−weighted Near Depth in Share
1.6 7
6.5
1.5
1.4
5.5
TW Near Depth (Share)
4.5
1.2
4
3.5
1.1
1
2.5
0.9 2
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
x 10
5 Time−weighted Near Depth in Share 5
x 10 Time−weighted Near Depth in Share
1.8 3
1.7
2.5
1.6
1.5
TW Near Depth (Share)
2
1.4
1.3
1.5
1.2
1.1
1
0.9 0.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
1.3 2
1.25 1.8
1.2
1.6
TW Near Depth (Share)
TW Near Depth (Share)
1.15
1.4
1.1
1.2
1.05
1
1
0.8
0.95
0.9 0.6
0.85 0.4
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
217
7
x 10 Near Depth in Value 8
x 10 Near Depth in Value
5 1.6
1.4
4.5
1.2
Near Depth (Value)
3.5
0.8
3
0.6
2.5 0.4
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
7.5
3
2.5
6.5
Near Depth (Value)
6 2
5.5
1.5
1
4.5
4 0.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
7
x 10 Near Depth in Value 8
x 10 Near Depth in Value
9 3
8.5
2.5
8
7.5
Near Depth (Value)
1.5
6.5
6
1
5.5
5 0.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
218
7
x 10 Time−weighted Near Depth in Value 8
x 10 Time−weighted Near Depth in Value
5 1.6
1.4
4.5
1.2
TW Near Depth (Value)
3.5
0.8
3
0.6
2.5 0.4
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
8
3
7.5
7 2.5
TW Near Depth (Value)
6.5
2
6
5.5 1.5
5
1
4.5
4 0.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
7
x 10 Time−weighted Near Depth in Value 8
x 10 Time−weighted Near Depth in Value
9 3
8.5
2.5
8
TW Near Depth (Value)
2
7.5
7
1.5
6.5
5.5 0.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
219
7
x 10 Bid Near Depth in Value 8
x 10 Bid Near Depth in Value
5 1.6
1.4
4.5
1.2
Bid Near Depth (Value)
3.5
0.8
3
0.6
2.5 0.4
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
8
3
7.5
7 2.5
Bid Near Depth (Value)
6.5
2
6
5.5 1.5
5
1
4.5
4 0.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
7
x 10 Bid Near Depth in Value 8
x 10 Bid Near Depth in Value
9 3
8.5
2.5
8
Bid Near Depth (Value)
7.5
2
1.5
6.5
6
1
5.5
5 0.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
220
7
x 10 Ask Near Depth in Value 8
x 10 Ask Near Depth in Value
5 1.6
1.4
4.5
1.2
Ask Near Depth (Value)
3.5
0.8
3
0.6
2.5 0.4
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
7.5
3
2.5
Ask Near Depth (Value)
6.5
6 2
5.5
1.5
1
4.5
4 0.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
7
x 10 Ask Near Depth in Value 8
x 10 Ask Near Depth in Value
9 3
8.5
2.5
8
Ask Near Depth (Value)
7.5
2
1.5
6.5
6
1
5.5
5 0.5
8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00 8:00 9:00 10:00 11:00 12:00 13:00 14:00 15:00 16:00
Time Time
221
Bibliography
Abhyankar, A., Ghosh, D., Levin, E. and Limmack, R. (1997). ‘Bid-ask spreads,
trading volume and volatility: Intra-day evidence from the London Stock Ex-
change’, Journal of Business Finance and Accounting, Vol. 24, No. 3, pp. 343–
362.
Ahn, H., Bae, K. and Chan, K. (2001). ‘Limit Orders, Depth, and Volatility:
Evidence from the Stock Exchange of Hong Kong’, Journal of Finance, Vol. 56,
No. 2, pp. 767–788.
Ahn, H. and Cheung, Y. (1999). ‘The intraday patterns of the spread and depth in
a market without market makers: The Stock Exchange of Hong Kong’, Pacific-
Basin Finance Journal, Vol. 7, No. 5, pp. 539–556.
Aitken, M., Almeida, N., Harris, F. and McInish, T. (2007). ‘Liquidity supply in
electronic markets’, Journal of Financial Markets, Vol. 10, No. 2, pp. 144–168.
Aitken, M., Berkman, H. and Mak, D. (2001). ‘The use of undisclosed limit orders
on the Australian Stock Exchange’, Journal of Banking and Finance, Vol. 25,
No. 8, pp. 1589–1603.
222
Aitken, M., Kua, A., Brown, P., Watter, T. and Izan, H. (1995). ‘An Intraday Anal-
ysis of the Probability of Trading on the ASX at the Asking Price’, Australian
Journal of Management, Vol. 20, No. 2, pp. 115–154.
223
Aloud, M. and Tsang, E. (2011). ‘Modelling the trading behaviour in high-
frequency markets’, in Proceedings of the 3rd Computer Science and Electronic
Engineering Conference, pp. 7–12.
Arifovic, J. (1996). ‘The Behavior of the Exchange Rate in the Genetic Algorithm
and Experimental Economies’, Journal of Political Economy, Vol. 104, No. 3,
pp. 510–541.
Arthur, W., Holland, J., LeBaron, B., Palmer, R. and Tayler, P. (1997). ‘Asset pric-
ing under endogenous expectations in an artificial stock market’, in W. Arthur,
S. Durlauf, & D. Lane (eds.), The Economy as an Evolving Complex System II,
Addison-Wesley.
Bae, K., Jang, H. and Park, K. (2003). ‘Traders’ choice between limit and market
orders: evidence from NYSE stocks’, Journal of Financial Markets, Vol. 6,
No. 4, pp. 517–538.
224
Barclay, M. and Warner, J. (1993). ‘Stealth trading and volatility : Which trades
move prices?’, Journal of Financial Economics, Vol. 34, No. 3, pp. 281–305.
Bartolozzi, M. (2010). ‘A Multi Agent Model for the Limit Order Book Dynam-
ics’, European Physical Journal B, Vol. 78, No. 2, pp. 265–273.
Berkowitz, S., Logue, D. and Noser, E. (1988). ‘The total cost of transactions on
the NYSE’, Journal of Finance, Vol. 43, No. 1, pp. 97–112.
Biais, B., Hillion, P. and Spatt, C. (1995). ‘An empirical analysis of the limit order
book and the order flow in the Paris Bourse’, Journal of Finance, Vol. 50, No. 3,
pp. 1655–1689.
225
Bikker, J., Spierdijk, L. and Sluis, P. (2007). ‘Market Impact Costs of Institutional
Equity Trades’, Journal of International Money and Finance, Vol. 1, No. 27, pp.
974–1000.
Black, F. (1971). ‘Toward a Fully Automated Stock Exchange, Part I’, Financial
Analysts Journal, Vol. 27, No. 4, pp. 28–35.
Bloomfield, R., O’Hara, M. and Saar, G. (2005). ‘The ”make or take” decision
in an electronic market: Evidence on the evolution of liquidity’, Journal of
Financial Economics, Vol. 75, No. 2, pp. 165–199.
Blume, M. and Goldstein, M. (1997). ‘Quotes, Order Flow, and Price Discovery’,
Journal of Finance, Vol. 52, No. 1, pp. 221–244.
Bouchaud, J., Farmer, J. and Lillo, F. (2009). ‘How markets slowly digest changes
in supply and demand’, in T. Hens & K. Schenk-Hoppe (eds.), Handbook of
Financial Markets: Dynamics and Evolution, pp. 57–160, North Holland, US.
226
Bouchaud, J., Gefen, Y., Potters, M. and Wyart, M. (2004). ‘Fluctuations and
response in financial markets: The subtle nature of ‘random’ price changes’,
Quantitative Finance, Vol. 4, No. 2, pp. 57–62.
Brock, W. and Kleidon, A. (1992). ‘Periodic market closure and trading volume:
A model of intraday bids and asks’, Journal of Economic Dynamics and Con-
trol, Vol. 16, No. 3, pp. 451–489.
Cai, C., Hudson, R. and Keasey, K. (2004). ‘Intraday bid-ask spreads, trading
volume and volatility: recent empirical evidence from the London Stock Ex-
change’, Journal of Business Finance and Accounting, Vol. 31, No. 5, pp. 647–
676.
Cao, C., Hansch, O. and Wang, X. (2008). ‘Order Placement Strategies In A Pure
Limit Order Book Market’, Journal of Financial Research, Vol. 26, No. 2, pp.
113–140.
227
Cao, C., Hansch, O. and Wang, X. (2009). ‘The information content of an open
limit order book’, Journal of Futures Markets, Vol. 29, No. 1, pp. 16–41.
Chaboud, A., Chiquoine, B., Hjalmarsson, E. and Vega, C. (2009). ‘Rise of the
machines: algorithmic trading in the foreign exchange market’. Working paper,
Board of Governors of the Federal Reserve System (US).
Chakravarty, S. and Holden, C. (1995). ‘An integrated model of market and limit
orders’, Journal of Financial Intermediation, Vol. 4, No. 3, pp. 213–241.
Chan, K., Christie, W. and Schultz, P. (1995). ‘Market structure and the intra-
day pattern of bid-ask spreads for NASDAQ securities’, Journal of Business,
Vol. 68, No. 1, pp. 35–60.
Chan, L. and Lakonishok, J. (1995). ‘The behavior of stock prices around institu-
tional trades’, Journal of Finance, Vol. 50, No. 5, pp. 1147–1174.
228
Chan, N., LeBaron, B., Lo, A. and Poggio, T. (2001). ‘Agent-based models of
financial markets: A comparison with experimental markets’. Working paper,
MIT.
Chan, Y. (2000). ‘The price impact of trading on the stock exchange of Hong
Kong’, Journal of Financial Markets, Vol. 3, No. 1, pp. 1–16.
Chen, S., Chang, C. and Du, Y. (2012). ‘Agent-based economic models and econo-
metrics’, Knowledge Engineering Review, Vol. 27, No. 2, pp. 187–219.
Chen, S. and Yeh, C. (1997). ‘Toward a computable approach to the efficient mar-
ket hypothesis: An application of genetic programming’, Journal of Economic
Dynamics and Control, Vol. 21, No. 5, pp. 1043–1063.
Chen, S. and Yeh, C. (2002). ‘On the emergent properties of artificial stock mar-
kets: the efficient market hypothesis and the rational expectations hypothesis’,
Journal of Economic Behavior & Organization, Vol. 49, No. 2, pp. 217–239.
Cheung, Y., Ho., R., Pope, P. and Draper, P. (1994). ‘Intraday stock return volatil-
ity: The Hong Kong evidence’, Pacific-Basin Finance Journal, Vol. 2, No. 1,
pp. 261–276.
229
Chiarella, C., Dieci, R. and He, X. (2009a). ‘Heterogeneity, Market Mechanisms,
and Asset Price Dynamics’, in Handbook of Financial Markets: Dynamics and
Evolution, pp. 277–344, North Holland, Amsterdam.
Chiyachantana, C., Jain, P., Jiang, C. and Wood, R. (2004). ‘International Evi-
dence on Institutional Trading Behavior and Price Impact’, Journal of Finance,
Vol. 59, No. 2, pp. 869–898.
Chung, K., Van Ness, B. and Van Ness, R. (1999). ‘Limit orders and the bid-ask
spread’, Journal of Financial Economics, Vol. 53, No. 3, pp. 255–287.
Cont, R. (2001). ‘Empirical properties of asset returns: stylized facts and statisti-
cal issues’, Quantitative Finance, Vol. 1, No. 2, pp. 223–236.
230
Cristelli, M., Pietronero, L. and Zaccaria, A. (2011). ‘Critical Overview of Agent-
Based Models for Economics’. Working paper, arXiv. org.
Cui, W., Brabazon, A. and O’Neill, M. (2009a). ‘Efficient Trade Execution Us-
ing a Genetic Algorithm in an Order Book Based Artificial Stock Market’, in
Proceedings of the 11th Annual Conference Companion on Genetic and Evolu-
tionary Computation Conference, pp. 2023–2028, ACM Press, New York, NY,
USA.
Cui, W., Brabazon, A. and O’Neill, M. (2010a). ‘An Analysis of Price Impact’,
in Proceedings of the 3rd International Conference of European Research Con-
sortium on Informatics and Mathematics, London, UK.
231
Trade Execution’, in A. Brabazon & M. O’Neill (eds.), Natural Computing in
Computational Finance (volume III), pp. 51–69, Springer-Verlag, Berlin.
Cui, W., Brabazon, A. and O’Neill, M. (2010c). ‘Evolving Dynamic Trade Ex-
ecution Strategies Using Grammatical Evolution’, in Proceedings of the 2010
International Conference on Applications of Evolutionary Computation, Lec-
ture Notes in Computer Science 6025, pp. 191–200, Springer-Verlag, Berlin.
Cui, W., Brabazon, A. and O’Neill, M. (2010d). ‘Evolving Efficient Limit Or-
der Strategy Using Grammatical Evolution’, in Proceedings of the 2010 IEEE
Congress On Evolutionary Computation, pp. 1–6, IEEE Press.
Daniels, M., Farmer, D., Gillemot, L., Iori, G. and Smith, E. (2003). ‘Quantitative
Model of Price Diffusion and Market Friction Based on Trading as a Mecha-
nistic Random Process’, Physical Review Letters, Vol. 90, No. 10, pp. 1–4.
232
Decovny, S. (2008). ‘Asian-Pacific gears up for algorithmic trading’, Market View,
Vol. 1, No. 1, p. 13.
Dufour, A. and Engle, R. (2000). ‘Time and the price impact of a trade’, Journal
of Finance, Vol. 55, No. 6, pp. 2467–2498.
Easley, D. and O’Hara, M. (1992). ‘Time and the process of security price adjust-
ment’, Journal of Finance, Vol. 47, No. 2, pp. 577–605.
Eisler, Z., Bouchaud, J. and Kockelkoren, J. (2012). ‘The price impact of or-
der book events: market orders, limit orders and cancellations’, Quantitative
Finance, Vol. 12, No. 9, pp. 1395–1419.
233
Ellul, A., Holden, C., Jain, P. and Jennings, R. (2007). ‘Order dynamics: recent
evidence from the NYSE’, Journal of Empirical Finance, Vol. 14, No. 3, pp.
636–661.
Esser, A. and Monch, B. (2007). ‘The navigation of an iceberg: The optimal use
of hidden orders’, Finance Research Letters, Vol. 4, No. 1, pp. 68–81.
Evans, M. and Lyons, R. (2002). ‘Order Flow and Exchange Rate Dynamics’,
Journal of Political Economy, Vol. 110, No. 1, pp. 170–180.
Farmer, D., Gillemot, L., Iori, G., Krishnamurthy, S., Smith, E. and Daniels, M.
(2005a). ‘A random order placement model of price formation in the continuous
double auction’, in L. Blume & S. Durlauf (eds.), The Economy as an Evolving
Complex System III, Oxford University Press.
Farmer, J., Gerig, A., Lillo, F. and Mike, S. (2006). ‘Market efficiency and the
long-memory of supply and demand: Is price impact variable and permanent or
fixed and temporary?’, Quantitative Finance, Vol. 6, No. 2, pp. 107–112.
Farmer, J. and Lillo, F. (2004). ‘On the origin of power-law tails in price fluctua-
tions’, Quantitative Finance, Vol. 4, No. 1, pp. 7–10.
Farmer, J. D., Gillemot, L., Lillo, F., Mike, S. and Sen, A. (2004). ‘What really
causes large price changes?’, Quantitative Finance, Vol. 4, No. 4, pp. 383–397.
234
Farmer, J. D., Patelli, P. and Zovko, I. (2005b). ‘The predictive power of zero intel-
ligence models in financial markets’, in Proceedings of the National Academy
of Sciences of the United States of America, Vol. 102, pp. 2254–2259.
Foucault, T. (1999). ‘Order flow composition and trading costs in a dynamic limit
order market’, Journal of Financial Markets, Vol. 2, No. 2, pp. 99–134.
Foucault, T., Kaden, O. and Kandel, E. (2005). ‘The limit order book as a market
for liquidity’, Review of Financial Studies, Vol. 18, No. 1, pp. 1171–1217.
Foucault, T. and Menkveld, A. (2008). ‘Competition for Order Flow and Smart
Order Routing Systems’, Journal of Finance, Vol. 63, No. 1, pp. 119–158.
235
French, K. and Roll, R. (1986). ‘Stock return variances: the arrival of information
and the reaction of traders’, Journal of Financial Economics, Vol. 17, No. 1,
pp. 5–26.
Fruth, A., Schoeneborn, T. and Urusov, M. (2011). ‘Optimal trade execution and
price manipulation in order books with time-varying liquidity’. Available at:
http://arxiv.org/abs/1109.2631.
Gatheral, J., Schied, A. and Slynko, A. (2011). ‘Exponential Resilience and Decay
of Market Impact’, in F. Abergel, B. Chakrabarti, A. Chakraborti, & M. Mitra
(eds.), Econophysics of Order-driven Markets, Spring-Verlag, Italy.
Gillemot, L., Farmer, J. and Lillo, F. (2005). ‘There’s more to volatility than
volume’. Available at: http://arxiv.org/abs/physics/0510007.
Glosten, L. (1994). ‘Is the Electronic Open Limit Order Book Inevitable?’, Jour-
nal of Finance, Vol. 49, No. 4, pp. 1127–1161.
236
Glosten, L. and Milgrom, P. (1985). ‘Bid, ask and transaction prices in a special-
ist market with heterogeneously informed traders’, Journal of Financial Eco-
nomics, Vol. 14, No. 1, pp. 71–100.
Goldstein, M., Irvine, P., Kandel, E. and Wiener, Z. (2009). ‘Brokerage Commis-
sions and Institutional Trading Patterns’, Review of Financial Studies, Vol. 22,
No. 12, pp. 5175–5212.
Gould, M., Porter, M., Williams, S., McDonald, M., Fenn, D. and Howison, S.
(2011). ‘Limit order books’. Working paper, arXiv. org.
Griffiths, M., Smith, B., Turnbull, D. and White, R. (2000). ‘The costs and de-
terminants of order aggressiveness’, Journal of Financial Economics, Vol. 56,
No. 1, pp. 65–88.
Hall, A. and Hautsch, N. (2006). ‘Order aggressiveness and order book dynamics’,
Empirical Economics, Vol. 30, No. 1, pp. 973–1005.
Hall, A. and Hautsch, N. (2007). ‘Modelling the buy and sell intensity in a limit
order book market’, Journal of Financial Markets, Vol. 10, No. 3, pp. 249–286.
237
Handa, P., Schwartz, R. and Tiwari, A. (2003). ‘Quote setting and price formation
in an order-driven market’, Journal of Financial Markets, Vol. 6, No. 1, pp.
461–489.
Harris, L. and Hasbrouck, J. (1996). ‘Market vs. Limit Orders - The SuperDOT
Evidence On Order Submission Strategy’, Journal of Financial and Quantita-
tive Analysis, Vol. 31, No. 2, pp. 213–231.
Hasbrouck, J. (1999). ‘The dynamics of discrete bid and ask quotes’, The Journal
of finance, Vol. 54, No. 6, pp. 2109–2142.
Hasbrouck, J. and Saar, G. (2002). ‘Limit Orders and Volatility in a Hybrid Mar-
ket: The Island ECN’. Available at: http://ssrn.com/abstract310940.
Hausman, J., Lo, A. and MacKinlay, A. (1992). ‘An ordered probit analysis of
transaction stock prices’, Journal of Financial Economics, Vol. 31, No. 3, pp.
319–379.
238
Hautsch, N. and Huang, R. (2012). ‘The market impact of a limit order’, Journal
of Economic Dynamics and Control, Vol. 36, No. 4, pp. 501 – 522.
Hendershott, T. and Riordan, R. (2012). ‘Algorithmic Trading and the Market for
Liquidity’, Journal of Financial and Quantitative Analysis (forthcoming).
Holthausen, R., Leftwich, R. and Mayers, D. (1987). ‘The effect of large block
transactions on security prices: A cross-sectional analysis’, Journal of Finan-
cial Economics, Vol. 19, No. 2, pp. 237–267.
Hopman, C. (2007). ‘Do supply and demand drive stock prices?’, Quantitative
Finance, Vol. 7, No. 1, pp. 37–53.
239
Hora, M. (2006). ‘Tactical Liquidity Trading and Intraday Volume’. Available at:
http://ssrn.com/abstract=931667.
Huang, Y., Chen, S., Hung, M. and Yu, T. (2012). ‘Liquidity cost of market orders
in the Taiwan Stock Market: A study based on an order-driven agent-based
artificial stock market’, International Review of Financial Analysis, Vol. 23,
pp. 72–80.
Iori, G., Daniels, M., Farmer, J., Gillemot, L., Krishnamurthy, S. and Smith, E.
(2003). ‘An analysis of price impact function in order-driven markets’, Physica
A, Vol. 324, No. 1-2, pp. 146–151.
Jain, P. (2003). ‘Institutional design and liquidity at stock exchanges around the
world’.
Jain, P. and Gun-Ho, J. (1988). ‘The Dependence between Hourly Prices and Trad-
ing Volume’, Journal of Financial and Quantitative Analysis, Vol. 23, No. 3,
pp. 269–283.
240
Kaniel, R. and Liu, H. (2006). ‘So What Orders Do Informed Traders Use?’,
Journal of Business, Vol. 79, No. 4, pp. 1867–1913.
Keim, D. and Madhavan, A. (1996). ‘The upstairs market for large-block transac-
tions: analysis and measurement of price effects’, Review of Financial Studies,
Vol. 9, No. 1, pp. 1–36.
Kim, G. and Markowitz, H. (1989). ‘Investment rules, margin, and market volatil-
ity’, Journal of Portfolio Management, Vol. 16, No. 1, pp. 45–52.
Koksal, B. (2012). ‘An analysis of intraday patterns and liquidity on the Istanbul
stock exchange’. Available at: http://mpra.ub.unimuenchen.de/35968/.
241
Koza, J. (2010). ‘Human-competitive results produced by genetic programming’,
Genetic Programming and Evolvable Machines, Vol. 11, No. 3, pp. 251–284.
Kraus, A. and Stoll, H. (1972). ‘Price impacts of block trading on the New York
Stock Exchange’, Journal of Finance, Vol. 27, No. 3, pp. 569–588.
Ladley, D. and Schenk, K. (2009). ‘Do stylised facts of order book markets need
strategic behaviour’, Journal of Economics Dynamics & Control, Vol. 33, No. 3,
pp. 817–831.
242
Lee, C., Mucklow, B. and Ready, M. (1993). ‘Spreads, depths, and the impact
of earnings information: An intraday analysis’, Review of Financial Studies,
Vol. 6, No. 2, pp. 345–375.
Lee, C. and Ready, M. (1991). ‘Inferring Trade Direction from Intraday Data’,
Journal of Finance, Vol. 46, No. 2, pp. 733–746.
Lee, Y., Fok, R. and Liu, Y. (2001). ‘Explaining intraday pattern of trading volume
from the order flow data’, Journal of Business Finance and Accounting, Vol. 28,
No. 3, pp. 199–230.
Lehmann, B. and Modest, D. (1994). ‘Trading and Liquidity on the Tokyo Stock
Exchange: A Bird’s Eye View’, Journal of Finance, Vol. 49, No. 3, pp. 951–
984.
Li, Y., Van Ness, B. and Van Ness, R. (2005). ‘Daily and Intraday Patterns in
Spread and Depth for Limit Orders and Specialists’, Quaterly journal of busi-
ness and economics, Vol. 44, No. 3, pp. 3–14.
LiCalzi, M. and Pellizzari, P. (2007). ‘Simple market protocols for efficient risk
sharing’, Journal of Economic Dynamics and Control, Vol. 31, No. 11, pp.
3568–3590.
Lillo, F., Farmer, J. and Mantegna, R. (2002). ‘Single Curve Collapse of the
Price Impact Function for the New York Stock Exchange’. Available at:
http://arxiv.org/abs/cond-mat/0207428.
243
Lillo, F., Farmer, J. and Mantegna, R. (2003). ‘Master curve for price impact
function’, Nature, Vol. 421, No. 3, pp. 129–130.
Lillo, F., Mike, S. and Farmer, J. (2005). ‘Theory for long memory in supply and
demand’, Physical Review E, Vol. 71, No. 6, pp. 1–11.
Lim, M. and Coggins, R. (2005a). ‘The immediate price impact of trades on the
Australian Stock Exchange’, Quantitative Finance, Vol. 5, No. 4, pp. 365–377.
Liu, W. (2009). ‘Monitoring and limit order submission risks’, Journal of Finan-
cial Markets, Vol. 12, No. 1, pp. 107–141.
Lo, I. and Sapp, S. (2010). ‘Order Aggressiveness and Quantity: How Are They
Determined in a Limit Order Market?’, Journal of International Financial Mar-
kets, Institutions and Money, Vol. 20, No. 3, pp. 223–243.
244
Lux, T. (2009). ‘Stochastic Behavioral Asset Pricing Models and the Stylized
Facts’, in Handbook of Financial Markets: Dynamics and Evolution, North
Holland.
Maslov, S. and Millis, M. (2001). ‘Price fluctuations from the order book per-
spective - empirical facts and a simple model’, Physica A, Vol. 299, No. 1, p.
234.
McInish, T. and Wood, R. (1990a). ‘An analysis of transactions data for the
Toronto Stock Exchange: Return patterns and end-of-the-day effect’, Journal
of Banking & Finance, Vol. 14, No. 2, pp. 441–458.
245
McKay, R., Hoai, N., Whigham, P., Shan, Y. and O’Neill, M. (2010). ‘Grammar-
based Genetic Programming: a survey’, Genetic Programming and Evolvable
Machines, Vol. 11, No. 4, pp. 365–396.
Mike, S. and Farmer, J. (2008). ‘An empirical behavioral model of liquidity and
volatility’, Journal of Economic Dynamics and Control, Vol. 32, No. 1, pp.
200–234.
Miller, M. (2008). ‘Don’t let your robots grow up to be traders: Artificial intel-
ligence, human intelligence, and asset-market bubbles’, Journal of Economic
Behavior & Organization, Vol. 68, No. 1, pp. 163–166.
Moazeni, S., Coleman, T. and Li, Y. (2010). ‘Optimal Portfolio Execution Strate-
gies and Sensitivity to Price Impact Parameters’, SIAM Journal on Optimiza-
tion, Vol. 20, No. 3, pp. 1620–1654.
Neely, C. and Weller, P. (1999). ‘Technical trading rules in the European monetary
system’, Journal of International Money and Finance, Vol. 18, No. 1, pp. 429–
458.
Neely, C. and Weller, P. (2001). ‘Technical analysis and central bank intervention’,
Technical analysis and central bank intervention, Vol. 20, No. 7, pp. 949–970.
246
Neely, C. and Weller, P. (2003). ‘Intraday technical trading in the foreign exchange
market’, Intraday technical trading in the foreign exchange market, Vol. 22,
No. 2, pp. 223–237.
Neely, C., Weller, P. and Dittmar, R. (1997). ‘Is technical analysis in the foreign
exchange market profitable? A genetic programming approach’, Journal of
Financial and Quantitative Analysis, Vol. 32, No. 4, pp. 405–428.
NYSE (2006). TAQ 3 User’s Guide (version 1.0.9), New York Stock Exchange
Inc.
Palit, I., Phelps, S. and Ng, W. (2012). ‘Can a Zero-Intelligence Plus Model Ex-
plain the Stylized Facts of Financial Time Series Data?’, in Proceedings of the
11th International Conference on Autonomous Agents and Multiagent Systems,
pp. 653–660.
247
Palmer, R., Arthur, W., Holland, J., LeBaron, B. and Tayler, P. (1994). ‘Artifi-
cial economic life: a simple model of a stockmarket’, Physica D: Nonlinear
Phenomena, Vol. 75, No. 1-3, pp. 264–274.
Pascual, R. and Verdas, D. (2009). ‘What pieces of limit order book information
matter in explaining order choice by patient and impatient traders?’, Quantita-
tive Finance, Vol. 9, No. 1, pp. 527–545.
Peterson, M. and Sirri, E. (2002). ‘Order Submission Strategy And The Curi-
ous Case Of Marketable Limit Orders’, Journal of Financial and Quantitative
Analysis, Vol. 37, No. 2, pp. 221–241.
248
eral One-Sided Limit-Order Book’, SIAM Journal on Financial Mathematics,
Vol. 2, No. 1, pp. 183–212.
Rosu, I. (2009). ‘A Dynamic Model of the Limit Order Book’, Review of Financial
Studies, Vol. 22, No. 1, pp. 4601–4641.
249
Sefiane, S. and Benbouziane, M. (2012). ‘Portfolio Selection Using Genetic Al-
gorithm’, Journal of Applied Finance & Banking, Vol. 2, No. 4, pp. 143–154.
Seppi, D. (1997). ‘Liquidity provision with limit orders and a strategic specialist’,
Review of Financial Studies, Vol. 10, No. 2, pp. 103–150.
Simon, H. (1996). The Sciences of the Artificial, MIT Press, 3rd edn.
Torre, N. (1997). BARRA Market Impact Model Handbook, BARRA Inc., Berke-
ley.
Toth, B., Kertesz, J. and Farmer, J. (2009). ‘Studies of the limit order book around
large price changes’, European Physical Journal B., Vol. 71, No. 1, pp. 499–
510.
250
Vergote, O. (2005). ‘How to match trades and quotes for NYSE stocks’. Available
at: http://ssrn.com/abstract808984.
Verhoeven, P., Ching, S. and Ng, H. (2004). ‘Determinants of the decision to sub-
mit market or limit orders on the ASX’, Pacific-Basin Finance Journal, Vol. 12,
No. 3, pp. 1–18.
Vo, M. (2007). ‘Limit orders and the intraday behavior of market liquidity: Ev-
idence from the Toronto stock exchange’, Global Finance Journal, Vol. 17,
No. 3, pp. 379–396.
Wald, J. and Horriga, H. (2005). ‘Optimal Limit Order Choice’, Journal of Busi-
ness, Vol. 78, No. 2, pp. 597–620.
Weber, P. and Rosenow, B. (2005). ‘Order book approach to price impact’, Quan-
titative Finance, Vol. 5, No. 1, pp. 357–364.
Weber, P. and Rosenow, B. (2006). ‘Large stock price changes: volume or liquid-
ity?’, Quantitative Finance, Vol. 6, No. 1, pp. 7–14.
Werner, I. and Kleidon, A. (1996). ‘U.K. and U.S. trading of British cross-listed
stocks: an intraday analysis of market integration’, Review of Financial Studies,
Vol. 9, No. 2, pp. 619–664.
Wood, R., MiInish, T. and Ord, J. (1985). ‘An Investigation of Transactions Data
for NYSE Stocks’, Journal of Finance, Vol. 40, No. 3, pp. 723–739.
251
Yang, J. (2002). ‘The Efficiency of an Artificial Double Auction Stock Market
with Neural Learning Agents’, in S. Chen (ed.), Evolutionary Computation in
Economics and Finance, pp. 85–106, Springer-Verlag.
252