Professional Documents
Culture Documents
2018_Kaila
Aalto_University
today
High-frequency trading HFT
algorithmic trading
limit order book
What is algorithmic trading?
Ruth Kaila 3
Algorithmic trading Decimalization: A system where
security prices are quoted using
a decimal format rather than
fractions (3.25 vs 3 ¼). Before
2001, markets in the United
States utilized fractions in
price quotes.
Traditional
Long-term investing
Execution
latency
HFT
high frequence trading
low
Picture: valuewalk
Market fragmentation, example
Picture: valuewalk
Market making and the limit order book
Ruth Kaila 14
If there is a book order that matches the
incoming order then a trade is executed. The
new order is termed aggressive (or LIMIT ORDER BOOK LOB
marketable) because it initiated the trade,
while the existing order from the book is
deemed passive.
Bid – purchase
Offer/ask - sale
From lecture 1
• A market maker is a broker-dealer firm that assumes the risk of holding a certain
number of shares of a particular security in order to facilitate the trading of that
security. Each market maker competes for customer order flow by displaying buy and
sell quotations for a guaranteed number of shares, and once an order is received
from a buyer, the market maker immediately sells from its own inventory or seeks an
offsetting order.
• The Nasdaq is the prime example of an operation of market makers, given that there
are more than 500 member firms that act as Nasdaq market makers, keeping the
financial markets running efficiently.
•
Market making
When placing limit orders, the market maker is subject to two risks:
Inventory risk
• The potential loss the market maker might incur when the value of his
inventory declines in price due to natural market movements. Thus, the market
maker accumulating a long position (buying) in a downward-trending market is
likely to experience a loss on his position, at least for a short term.
• When the market maker whishes to close his position, he may face competition
from other parties looking to sell their positions at the same time.
Risk of adverse selection
• Potential loss due to informational differences between the market maker and
a market taker.
Simple market
making strategies
Fixed offset
• Continuous placing of limit orders at a predetermined number of ticks away from
the market price, on both sides of the market.
• Limit orders placed at current market quotes are likely to be executed.
• In most financial instruments, market makers are allowed to place limit orders only
within 10 percent of the current market price, to prevent quotes far away from the
market from executing at times of extreme volatility.
• The smaller the offset of a limit order from the market price is a simple strategy, the
higher the probability of order execution, and the more frequent the resulting
reallocation of the market maker’s capital. Frequency of trading has been shown to
be the key to market maker’s profitability.
Volatility-dependent offset
• one way to vary the offset is to make it a function of volatility.
• In high-vola conditions, limit orders farther away from the market are likely to be hit.
Offset is a function of order-arrival rate
Amount of information available about
the Limit-Order-Book LOB
• Market makers are typically assumed to provide liquidity, and therefore they
are often afforded special trading privileges related to order flow and trade
execution. Such privileges include
– access to order flow and order flow information,
– direct connections to exchange trading mechanisms,
– low transaction costs, and high transaction speeds.
• In return, they are often assumed to perform the social and market function
of supplying liquidity, for example by absorbing temporary order imbalances.
Several measures
for liquidity
• The tightness of the bid-ask spread
– Reflects the degree of competition among limit order-placing traders
• Market depth at best bid and best ask
– ability to sustain relatively large orders without impacting the price of the
security
• Shape of the order book
– When available, level II data can be used to calculate the exact amount of
aggregate supply and demand available on a given trading venue.
• Price sensitivity of order-flow imbalance
– How the price moves following an order; low liquidity makes the market eat
through the limit order book, moving the price substantially
• Market resilience
– How fast an order book recovers its shape following a market order
• Et cetera
What is high-frequency trading HFT?
Ruth Kaila 23
What is high-frequency trading HFT?
1 millisecond
High Frequency Trading Today
• MIFID II Markets in Financial Instruments Directive restricts dark pools (Husman next Friday will tell
more)
picture by WSO
HFT firms generally use private money, private technology and a
number of private strategies to generate profits.
Hedge funds 6 %
• generally focus on statistical arbitrage and take advantage of
pricing inefficiencies among various asset classes and securities.
Ideal asset
attributes
to HTF
Similar to other traders
Heavy trading volume -> narrower bid-ask spreads and abundant liquidity
But
Low volatility
• A trading environment where small amounts of profit can be made
with near 100% certainty is preferably to one where larger amounts
of profit can be made with a lesser degree of certainty. (typically
traders prefer high vola)
Low stock price – the volume of trading is important
• As rebates are based on the number of shares traded, so for the same
amount of funds deployed in a trade, an HFT firm can earn a larger
total rebate on a lower-priced stock than on a higher-priced stock.
(typically traders are indifferent to the price)
Name of HFT strategy Description
Ruth Kaila 35
Liquidity providing
Rebate trading
Market making
Trading the tape
Filter trading
Momentum trading
Statistical trading
Statistical arbitrage
Technical trading
Examples:
• News story causes spike in price and large jump in
volume, algorithm rapidly buys.
• Algorithm recognizes a major uptick in the pace of the
bid being hit and shorts stock until pace declines.
Momentum Ignition Strategies
Ruth Kaila 45
high frequency
traders first post
locking limit
orders to attract
slow traders. Then
they rapidly revise
these orders onto
less generous
terms, hoping to
execute profitably
against the
incoming flow of
slow traders'
market orders.
“spoofing.” Suppose the high frequency trader’s true
intention is to buy. Paradoxically, he or she will
initially place limit orders to sell in the order book.
These orders are not intended to be executed.
Therefore they are placed above the best ask. And,
since the high frequency trader is faster than the
other market participants, he or she can rest assured
he or she will have time to cancel the sell orders
before they are executed if good news reach the
market.
Ruth Kaila 48
Positive Impact of HFT on Markets
Increased Liquidity
HFT firms contribute to over 50% of the equity turnover by volume in some major
markets, and play a critical role in providing order flow, increasing the liquidity
level.
Traditional liquidity providers such as market makers now earn rebate fees by
leveraging HFT strategies to make up for the loss of income caused by smaller
spreads.
Narrowing Spreads: The use of algorithms and computers in trading has resulted in
the prices of securities being updated more frequently and more accurately.
This indicates that HFT has resulted in traders providing the most competitive bid-
ask prices and in spreads narrowing.
Increased Volatility: intraday trading with positions generally held only for minutes—or
even just seconds can give rise to price fluctuations and short term volatility.
• High impact on market volatility as HFT trading volumes are high
• The practice of making trades and instantly cancelling them only to trigger automated
buying from other firms is an ethical issue
Disadvantages to the Smaller Investors: HFT firms leverage special services such as co-
location facilities and raw data feeds, which are typically not accessible for smaller firms
and retail investors as they are not able to make the required investments.
• Disadvantage to smaller firms and investors.
• Some HFT firms often enter trades just for the liquidity rebate, but this adds no value to
the retail or long-term investor.
Technology as an Enabler
Co-Located Servers: By cutting down the physical distance between their trading
server and the exchange server, firms ensure that the latency in data transfer between
the two points is minimized. Therefore several HFT firms purchase real estate as close
as possible to securities exchanges, and place the servers of their trading systems in
rented racks belonging to co-location providers.
• the speed of light is becoming a bottleneck for HFT traders to execute trades at a
global level. Traders would like information to flow as fast as possible.
• the optimal point to exploit the price difference between the New York Stock
Exchange and the London Stock Exchange was found to be at a spot in the mid-
Atlantic ocean. Given that infrastructure in the form of undersea data cables
already exists, such floating trade centers could be a possibility in the future.
Market Changes
HFT strategies are based on interpretation of market events and news, and
rely on the correlations between several factors such as pricing, interest rates,
and different markets events.
• need for traders to constantly upgrade their algorithms as their underlying
assumptions change based on various market events.
Reverse engineering
The shelf life of most algorithms remains limited as competitor firms are
generally able to decipher each other’s strategies through reverse
engineering.
• The firms must constantly update and upgrade their strategy.
• Technological innovations have made the frequent upgrades of algorithms
much easier and far more economical than they were in the recent past.
Factors Contributing to Low Latency
New technology has helped to lower the latency
Fiber Optics:
• fiber optics have replaced traditional copper wires for long- distance
network communication
• sharing information between firms across continents much faster.
• recently also possibility to physically shorten the length of cables
- > further reduction in transmission time.
Bandwidth: increased bandwidth - > more information and faster
• Are markets more or less efficient than in the past? Why do we need to
trade on a millisecond timescale?
• Should we have such a fragmented market? Market integrity could be
endangered when technological advantage is misused for abusive tactics
(e.g., by manipulating the price discovery process through excessive order
entries and/or cancellations).