Algorithmic Trading
Algorithmic Trading
Disclaimer
This workshop is for educational purposes only and does not constitute an offer to
sell, a solicitation to buy, or a recommendation for any security; nor does it
constitute an offer to provide investment advisory or other services by the
speakers. Nothing contained herein constitutes investment advice or offers any
opinion with respect to the suitability of any security and any views expressed
herein should not be taken as advice to buy, sell, or hold any security or as an
endorsement of any security or company. The speakers are not responsible for the
losses incurred due to the buying and selling of securities.
Outline
● Overview of financial markets
● Electronic exchange
● Automated Trading
● May 6, 2010 ?
History of Financial Markets
Amsterdam Stock Exchange Chicago Board of Trade New York Stock Exchange
17th Century 1980’s 21st Century
● Brokers
● Market Makers
Trading Instruments
● Electronic exchange
● Automated Trading
● May 6, 2010 ?
Electronic Exchange
● Faster execution
● Decimalization
● API trading
Working of a Electronic Exchange
Basic Order Types
● Electronic exchange
● Automated Trading
● May 6, 2010 ?
Discretionary vs Systematic
Discretionary Systematic
● It can be backtested and risks can be quantified using historical data and quantitative
models.
● Avoid human cognitive biases and risk associated with human emotions.
● Complex strategies can be only executed using systematic trading as they are not
possible for humans. A good example is HFT strategies.
● Systematic Trading strategies can be fully automated to run without any human
intervention.
Algorithmic Trading
● Development of electronic trading platforms lead to automate execution, which
lowered the bar of algorithmic trading.
● Technologies like DMA (Direct Market Access) and FIX (Financial Information
eXchange) gave access to real-time information. This also increased the quality and
granularity of historical data.
● Lower latency and increased data granularity gave birth to a high speed version of
algorithmic trading know as High Frequency Trading or HFT.
● High Frequency Trading involves buying and selling securities in a very small duration
of time usually a HFT position lasts for less than a second. And this is repeated
multiple times during a normal trading session.
● High Frequency Trading can be only executed using a computer algorithm. Analyzing
the markets at nanosecond level and sending multiple orders in a fraction of second
is not possible manually.
Outline
● Overview of financial markets
● Electronic exchange
● Automated Trading
● May 6, 2010 ?
Architecture of a Trading System
● Trading systems depends on data
for trade generation from the
trading strategy.
● Pairs-trading
● Lack of Transparency: Automated trading system can get very complex and turns into a
black box.
● Bug in the algorithm: With increasing complexity the chances of having bugs in the system
increases and in turn increases the chance of catastrophe.
https://www.bbc.com/news/magazine-19214294
https://www.henricodolfing.com/2019/06/project-failure-case-study-knight-capital.html
Outline
● Overview of financial markets
● Electronic exchange
● Automated Trading
● May 6, 2010 ?
Time-series Momentum
Notebook Link : https://bit.ly/3vLUHJo
May 6, 2010 ?
Flash Crash of 2010
More into Flash Crash
References
● Harris Larry, 2002. Trading and Exchanges: Market Microstructure for Practitioners.
● Barry Johnson, 2009. Algorithmic Trading and DMA: An Introduction to Direct Access Trading
Strategies
● Edward Leshik, Jane Cralle, 2011. An Introduction to Algorithmic Trading: Basic to Advanced
Strategies
● Álvaro Cartea, Sebastian Jaimungal, José Penalva, 2015. Algorithmic and High-Frequency
Trading
● Chan, 2008. Quantitative Trading: How to Build Your Own Algorithmic Trading Business.
References
● Carver Robert, 2015. Systematic Trading: A unique new method for designing trading and investing
systems
● Moskowitz, Tobias J. and Moskowitz, Tobias J. and Ooi, Yao Hua and Pedersen, Lasse Heje, Time
Series Momentum (September 1, 2011). Chicago Booth Research Paper No. 12-21, Fama-Miller
Working Paper, Available at SSRN: https://ssrn.com/abstract=2089463 or
http://dx.doi.org/10.2139/ssrn.2089463
● Gatev, Evan and Goetzmann, William N. and Rouwenhorst, K. Geert, Pairs Trading: Performance of a
Relative Value Arbitrage Rule (February 2006). Yale ICF Working Paper No. 08-03, Available at
SSRN: https://ssrn.com/abstract=141615 or http://dx.doi.org/10.2139/ssrn.141615