100% found this document useful (2 votes)
27 views

Algorithmic Trading Methods: Applications Using Advanced Statistics, Optimization, and Machine Learning Techniques 2nd Edition Robert Kissell - The ebook is available for quick download, easy access to content

The document provides information about various ebooks available for download at textbookfull.com, focusing on topics such as algorithmic trading, machine learning, and advanced statistics. It highlights specific titles and authors, including Robert Kissell and Stefan Jansen, and offers links for instant access to the ebooks in multiple formats. Additionally, it includes details about the content and structure of the book 'Algorithmic Trading Methods' by Robert Kissell.

Uploaded by

mfnnhamssa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
27 views

Algorithmic Trading Methods: Applications Using Advanced Statistics, Optimization, and Machine Learning Techniques 2nd Edition Robert Kissell - The ebook is available for quick download, easy access to content

The document provides information about various ebooks available for download at textbookfull.com, focusing on topics such as algorithmic trading, machine learning, and advanced statistics. It highlights specific titles and authors, including Robert Kissell and Stefan Jansen, and offers links for instant access to the ebooks in multiple formats. Additionally, it includes details about the content and structure of the book 'Algorithmic Trading Methods' by Robert Kissell.

Uploaded by

mfnnhamssa
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 47

Explore the full ebook collection and download it now at textbookfull.

com

Algorithmic Trading Methods: Applications Using


Advanced Statistics, Optimization, and Machine
Learning Techniques 2nd Edition Robert Kissell

https://textbookfull.com/product/algorithmic-trading-
methods-applications-using-advanced-statistics-optimization-
and-machine-learning-techniques-2nd-edition-robert-kissell/

OR CLICK HERE

DOWLOAD EBOOK

Browse and Get More Ebook Downloads Instantly at https://textbookfull.com


Click here to visit textbookfull.com and download textbook now
Your digital treasures (PDF, ePub, MOBI) await
Download instantly and pick your perfect format...

Read anywhere, anytime, on any device!

Biota Grow 2C gather 2C cook Loucas

https://textbookfull.com/product/biota-grow-2c-gather-2c-cook-loucas/

textbookfull.com

Machine Learning for Algorithmic Trading 2nd Edition


Stefan Jansen

https://textbookfull.com/product/machine-learning-for-algorithmic-
trading-2nd-edition-stefan-jansen/

textbookfull.com

Machine Learning for Algorithmic Trading 2nd Edition


Stefan Jansen

https://textbookfull.com/product/machine-learning-for-algorithmic-
trading-2nd-edition-stefan-jansen-2/

textbookfull.com

Machine Learning for Algorithmic Trading 2nd Edition


Stefan Jansen

https://textbookfull.com/product/machine-learning-for-algorithmic-
trading-2nd-edition-stefan-jansen-3/

textbookfull.com
Optimal Sports Math Statistics and Fantasy Robert Kissell
And Jim Poserina (Auth.)

https://textbookfull.com/product/optimal-sports-math-statistics-and-
fantasy-robert-kissell-and-jim-poserina-auth/

textbookfull.com

Machine Learning: A Bayesian and Optimization Perspective


2nd Edition Sergios Theodoridis

https://textbookfull.com/product/machine-learning-a-bayesian-and-
optimization-perspective-2nd-edition-sergios-theodoridis/

textbookfull.com

Python for Probability, Statistics, and Machine Learning


2nd Edition José Unpingco

https://textbookfull.com/product/python-for-probability-statistics-
and-machine-learning-2nd-edition-jose-unpingco/

textbookfull.com

Advanced Data Analytics Using Python: With Machine


Learning, Deep Learning and NLP Examples Mukhopadhyay

https://textbookfull.com/product/advanced-data-analytics-using-python-
with-machine-learning-deep-learning-and-nlp-examples-mukhopadhyay/

textbookfull.com

Algorithmic Aspects of Machine Learning 1st Edition Ankur


Moitra

https://textbookfull.com/product/algorithmic-aspects-of-machine-
learning-1st-edition-ankur-moitra/

textbookfull.com
Algorithmic Trading Methods
This page intentionally left blank
Algorithmic Trading Methods
Applications using Advanced Statistics,
Optimization, and Machine Learning Techniques
Second Edition

Robert Kissell, Ph.D.


President
Kissell Research Group and Adjunct Faculty Member
Gabelli School of Business, Fordham University
Manhasset, NY, United States
Academic Press is an imprint of Elsevier
125 London Wall, London EC2Y 5AS, United Kingdom
525 B Street, Suite 1650, San Diego, CA 92101, United States
50 Hampshire Street, 5th Floor, Cambridge, MA 02139, United States
The Boulevard, Langford Lane, Kidlington, Oxford OX5 1GB, United Kingdom
Copyright © 2021 Elsevier Inc. All rights reserved.
No part of this publication may be reproduced or transmitted in any form or by any means,
electronic or mechanical, including photocopying, recording, or any information storage and
retrieval system, without permission in writing from the publisher. Details on how to seek
permission, further information about the Publisher’s permissions policies and our
arrangements with organizations such as the Copyright Clearance Center and the Copyright
Licensing Agency, can be found at our website: www.elsevier.com/permissions.
This book and the individual contributions contained in it are protected under copyright by the
Publisher (other than as may be noted herein).
Notices
Knowledge and best practice in this field are constantly changing. As new research and
experience broaden our understanding, changes in research methods, professional practices,
or medical treatment may become necessary.
Practitioners and researchers must always rely on their own experience and knowledge in
evaluating and using any information, methods, compounds, or experiments described herein.
In using such information or methods they should be mindful of their own safety and the safety
of others, including parties for whom they have a professional responsibility.
To the fullest extent of the law, neither the Publisher nor the authors, contributors, or editors,
assume any liability for any injury and/or damage to persons or property as a matter of
products liability, negligence or otherwise, or from any use or operation of any methods,
products, instructions, or ideas contained in the material herein.

Library of Congress Cataloging-in-Publication Data


A catalog record for this book is available from the Library of Congress
British Library Cataloguing-in-Publication Data
A catalogue record for this book is available from the British Library
ISBN: 978-0-12-815630-8

For information on all Academic Press publications visit our website at


https://www.elsevier.com/books-and-journals

Publisher: Brian Romer


Editorial Project Manager: Gabrielle Vincent
Production Project Manager: Paul Prasad Chandramohan
Cover Designer: Matthew Limbert
Typeset by TNQ Technologies
Contents
Preface............................................................................................................................. xix
Acknowledgments........................................................................................................... xxi

CHAPTER 1 Introduction ................................................................................... 1


What is Electronic Trading? ......................................................................... 2
What is Algorithmic Trading? ...................................................................... 3
Trading Algorithm Classifications ................................................................ 3
Trading Algorithm Styles ............................................................................. 4
Investment Cycle .......................................................................................... 5
Investment Objective .................................................................................... 5
Information Content...................................................................................... 6
Investment Styles .......................................................................................... 7
Investment Strategies .................................................................................... 9
Research Data ............................................................................................. 15
Broker Trading Desks................................................................................. 16
Research Function....................................................................................... 17
Sales Function............................................................................................. 18
Implementation Types................................................................................. 19
Algorithmic Decision-Making Process ....................................................... 20
CHAPTER 2 Algorithmic Trading ....................................................................... 23
Advantages.................................................................................................. 25
Disadvantages ............................................................................................. 26
Growth in Algorithmic Trading.................................................................. 27
Market Participants ..................................................................................... 28
Classifications of Algorithms...................................................................... 31
Types of Algorithms ................................................................................... 31
Algorithmic Trading Trends ....................................................................... 35
Day of Week Effect .................................................................................... 37
Intraday Trading Profiles ............................................................................ 39
Trading Venue Classification...................................................................... 42
Displayed Market ................................................................................... 42
Dark Pool ............................................................................................... 42
Dark Pool Controversies ........................................................................ 43
Types of Orders .......................................................................................... 44
Revenue Pricing Models............................................................................. 45
Order Priority ......................................................................................... 46
Execution Options....................................................................................... 46

v
vi Contents

Algorithmic Trading Decisions................................................................... 47


Macro Level Strategies .......................................................................... 47
Micro Level Decisions ........................................................................... 48
Limit Order Models ............................................................................... 48
Smart Order Routers .............................................................................. 48
Algorithmic Analysis Tools........................................................................ 49
Pre-Trade Analysis................................................................................. 49
Intraday Analysis ................................................................................... 49
Post-Trade Analysis ............................................................................... 49
High Frequency Trading............................................................................. 50
Auto Market Making.............................................................................. 50
Quantitative Trading/Statistical Arbitrage.............................................. 52
Rebate/Liquidity Trading ....................................................................... 52
Direct Market Access.................................................................................. 54
CHAPTER 3 Transaction Costs .......................................................................... 57
What are Transaction Costs? ...................................................................... 57
What is Best Execution?............................................................................. 58
What is the Goal of Implementation?......................................................... 58
Unbundled Transaction Cost Components ................................................. 59
Commission............................................................................................ 59
Fees ........................................................................................................ 59
Taxes ...................................................................................................... 59
Rebates ................................................................................................... 60
Spreads ................................................................................................... 60
Delay Cost.............................................................................................. 60
Price Appreciation.................................................................................. 61
Market Impact ........................................................................................ 61
Timing Risk............................................................................................ 62
Opportunity Cost.................................................................................... 62
Transaction Cost Classification................................................................... 62
Transaction Cost Categorization................................................................. 65
Transaction Cost Analysis .......................................................................... 65
Measuring/Forecasting ........................................................................... 66
Cost vs. Profit and Loss ......................................................................... 67
Implementation Shortfall ............................................................................ 67
Complete Execution ............................................................................... 69
Opportunity Cost (Andre Perold)........................................................... 70
Expanded Implementation Shortfall (Wayne Wagner).......................... 71
Contents vii

Implementation Shortfall Formulation........................................................ 74


Trading Cost/Arrival Cost...................................................................... 74
Evaluating Performance .............................................................................. 75
Trading Price Performance..................................................................... 75
Benchmark Price Performance............................................................... 75
VWAP Benchmark................................................................................. 76
Participation-Weighted Price Benchmark .............................................. 77
Relative Performance Measure .............................................................. 78
Pretrade Benchmark ............................................................................... 80
Index-Adjusted Performance Metric ...................................................... 80
Z-Score Evaluation Metric ..................................................................... 81
Market Cost-Adjusted Z-Score .............................................................. 83
Adaptation Tactic ................................................................................... 83
Comparing Algorithms ............................................................................... 84
Nonparametric Tests .............................................................................. 85
Paired Samples ....................................................................................... 86
Sign Test ................................................................................................ 86
Wilcoxon Signed Rank Test .................................................................. 87
Independent Samples .................................................................................. 89
ManneWhitney U Test.......................................................................... 89
Median Test ................................................................................................ 91
Distribution Analysis .................................................................................. 92
Chi-Square Goodness of Fit ....................................................................... 93
KolmogoroveSmirnov Goodness of Fit..................................................... 94
Experimental Design................................................................................... 95
Proper Statistical Tests ........................................................................... 95
Small Sample Size ................................................................................. 95
Data Ties ................................................................................................ 96
Proper Categorization............................................................................. 96
Balanced Data Sets................................................................................. 96
Final Note on Posttrade Analysis ............................................................... 97
CHAPTER 4 Market Impact Models ................................................................... 99
Introduction ................................................................................................. 99
Definition .................................................................................................... 99
Example 1: Temporary Market Impact................................................ 100
Example 2: Permanent Market Impact ................................................ 100
Graphical Illustrations of Market Impact............................................. 101
Illustration #1: Price Trajectory ........................................................... 101
Illustration #2: SupplyeDemand Equilibrium..................................... 102
viii Contents

Illustration #3: Temporary Impact Decay Function............................. 105


Example #3: Temporary Decay Formulation ...................................... 108
Illustration #4: Various Market Impact Price Trajectories .................. 108
Developing a Market Impact Model .................................................... 109
Essential Properties of a Market Impact Model .................................. 110
The Shape of the Market Impact Function .......................................... 112
Example: Convex Shape ...................................................................... 114
Example: Linear Shape ........................................................................ 114
Example: Concave Shape..................................................................... 114
Derivation of Models ................................................................................ 115
Almgren and Chriss Market Impact Model ......................................... 115
I-Star Market Impact Model ..................................................................... 120
Model Formulation ................................................................................... 120
I-Star: Instantaneous Impact Equation ................................................. 121
The Market Impact Equation ............................................................... 122
Derivation of the Model....................................................................... 122
Cost Allocation Method ....................................................................... 123
I* Formulation...................................................................................... 126
Comparison of Approaches.................................................................. 128
CHAPTER 5 Probability and Statistics .............................................................. 129
Introduction ............................................................................................... 129
Random Variables..................................................................................... 129
Probability Distributions ........................................................................... 130
Example: Discrete Probability Distribution Function.......................... 131
Example: Continuous Probability Distribution Function..................... 132
Descriptive Statistics ............................................................................ 135
Probability Distribution Functions............................................................ 136
Continuous Distribution Functions ........................................................... 137
Normal Distribution ............................................................................. 137
Standard Normal Distribution .............................................................. 138
Student’s t-Distribution ........................................................................ 139
Log-Normal Distribution...................................................................... 141
Uniform Distribution............................................................................ 142
Exponential Distribution ...................................................................... 143
Chi-Square Distribution ....................................................................... 145
Logistic Distribution ............................................................................ 146
Triangular Distribution......................................................................... 148
Discrete Distributions................................................................................ 149
Binomial Distribution........................................................................... 149
Poisson Distribution ............................................................................. 150
End Notes.................................................................................................. 150
Contents ix

CHAPTER 6 Linear Regression Models ............................................................. 151


Introduction ............................................................................................... 151
Linear Regression Requirements ......................................................... 154
Regression Metrics............................................................................... 154
Linear Regression ..................................................................................... 156
True Linear Regression Model ............................................................ 156
Simple Linear Regression Model......................................................... 156
Solving the Simple Linear Regression Model ..................................... 157
Standard Error of the Regression Model ............................................. 159
R2 Goodness of Fit............................................................................... 159
T-test: Hypothesis Test......................................................................... 159
F-test: Hypothesis Test ........................................................................ 159
Example: Simple Linear Regression.................................................... 159
Multiple Linear Regression Model ...................................................... 161
Solving the Multiple Linear Regression Model................................... 162
Standard Error of the Regression Model ............................................. 164
R2 Goodness of Fit............................................................................... 164
T-test: Hypothesis Test......................................................................... 164
F-test: Hypothesis Test ........................................................................ 165
Example: Multiple Linear Regression ................................................. 165
Matrix Techniques .................................................................................... 167
Estimate Parameters ............................................................................. 167
Compute Standard Errors of b ............................................................. 168
R2 Statistic ............................................................................................ 169
F-Statistic ............................................................................................. 169
Log Regression Model.............................................................................. 169
Example: Log-Transformation ............................................................. 169
Example: Log-Linear Transformation.................................................. 171
Polynomial Regression Model.................................................................. 171
Fractional Regression Model .................................................................... 172
CHAPTER 7 Probability Models....................................................................... 175
Introduction ............................................................................................... 175
Developing a Probability Model............................................................... 175
Comparison of Linear Regression Model to Probability Model ......... 177
Power Function Model......................................................................... 177
Logit Model.......................................................................................... 178
Probit Model ........................................................................................ 179
Outcome Data....................................................................................... 180
Grouping Data...................................................................................... 182
x Contents

Solving Binary Output Models ............................................................ 182


Step 1: Specify Probability Function ................................................... 182
Step 2: Set Up a Likelihood Function Based on Actual Outcome
Results for all Observations. For Example, If We Have n
Observations, the Loss Function is Specified as Follows................... 183
Solving Probability Output Models .......................................................... 184
Examples ................................................................................................... 186
Example 7.1 Power Function............................................................... 186
Example 7.2 Logit Model .................................................................... 190
Comparison of Power Function to Logit Model ...................................... 191
Example 7.3 Logistic Regression ........................................................ 191
Conclusions............................................................................................... 195
CHAPTER 8 Nonlinear Regression Models......................................................... 197
Introduction ............................................................................................... 197
Regression Models.................................................................................... 198
Linear Regression Model ..................................................................... 198
Polynomial Regression Model ............................................................. 198
Fractional Regression Model ............................................................... 199
Log-linear Regression Model............................................................... 200
Logistic Regression Model .................................................................. 200
Nonlinear Model .................................................................................. 201
Nonlinear Formulation .............................................................................. 201
Solving Nonlinear Regression Model....................................................... 202
Estimating Parameters............................................................................... 202
Maximum Likelihood Estimation (MLE) ............................................ 202
Nonlinear Least Squares (Non-OLS)........................................................ 204
Step I: Define the Model...................................................................... 204
Step II: Define the Error Term............................................................. 204
Step III: Define a Loss FunctiondSum of Square Errors................... 205
Step IV: Minimize the Sum of Square Error ....................................... 205
Hypothesis Testing.................................................................................... 205
Evaluate Model Performance.................................................................... 206
Sampling Techniques................................................................................ 207
Random Sampling..................................................................................... 208
Sampling With Replacement .................................................................... 209
Sampling Without Replacement ............................................................... 210
Monte Carlo Simulation............................................................................ 210
Bootstrapping Techniques......................................................................... 211
Jackknife Sampling Techniques ............................................................... 212
Important Notes on Sampling in Nonlinear Regression Models......... 218
Contents xi

CHAPTER 9 Machine Learning Techniques........................................................ 221


Introduction ............................................................................................... 221
Types of Machine Learning...................................................................... 224
Examples ................................................................................................... 225
Cluster Analysis ................................................................................... 225
Classification ............................................................................................. 228
Regression................................................................................................. 229
Neural Networks ....................................................................................... 231
CHAPTER 10 Estimating I-Star Market Impact Model Parameters .......................... 233
Introduction ............................................................................................... 233
I-Star Market Impact Model ..................................................................... 234
Scientific Method ...................................................................................... 235
Step 1: Ask a Question ........................................................................ 235
Step 2: Research the Problem .............................................................. 235
Step 3: Construct a Hypothesis............................................................ 235
Step 4: Test the Hypothesis ................................................................. 236
Step 6: Conclusions Communicate ...................................................... 236
Underlying Data Set............................................................................. 245
Data Definitions ................................................................................... 248
Imbalance/Order Size ........................................................................... 249
Average daily volume .......................................................................... 249
Actual market volume.......................................................................... 249
Stock volatility ..................................................................................... 249
POV Rate ............................................................................................. 249
Arrival Cost.......................................................................................... 250
Model Verification ............................................................................... 250
Model Verification #1: Graphical Illustration...................................... 251
Model Verification #2: Regression Analysis ....................................... 251
Model Verification #3: z-Score Analysis............................................. 251
Model Verification #4: Error Analysis ................................................ 252
Stock Universe ..................................................................................... 252
Analysis Period .................................................................................... 252
Time Period.......................................................................................... 252
Number of Data Points ........................................................................ 252
Imbalance ............................................................................................. 252
Side....................................................................................................... 253
Volume ................................................................................................. 253
Turnover ............................................................................................... 253
VWAP .................................................................................................. 253
xii Contents

First Price ............................................................................................. 254


Average Daily Volume ........................................................................ 254
Annualized Volatility ........................................................................... 254
Size ....................................................................................................... 254
POV Rate ............................................................................................. 255
Cost ...................................................................................................... 255
Estimating Model Parameters .............................................................. 255
Sensitivity Analysis.............................................................................. 257
Cost Curves .......................................................................................... 262
Statistical Analysis ............................................................................... 262
Stock-Specific Error Analysis .............................................................. 265
CHAPTER 11 Risk, Volatility, and Factor Models ................................................. 269
Introduction ............................................................................................... 269
Volatility Measures ................................................................................... 270
Log-Returns.......................................................................................... 270
Average Return .................................................................................... 270
Variance ............................................................................................... 270
Volatility............................................................................................... 271
Covariance............................................................................................ 271
Correlation............................................................................................ 271
Dispersion............................................................................................. 271
Value-at-Risk........................................................................................ 272
Implied Volatility ...................................................................................... 272
Beta ...................................................................................................... 273
Range.................................................................................................... 273
Forecasting Stock Volatility ..................................................................... 274
Volatility Models ................................................................................. 274
Determining Parameters via Maximum Likelihood Estimation .......... 277
Historical Data and Covariance ................................................................ 280
False Relationships............................................................................... 281
Degrees of Freedom ............................................................................. 283
Factor Models ........................................................................................... 288
Matrix Notation.................................................................................... 289
Factor Model in Matrix Notation......................................................... 290
Types of Factor Models ............................................................................ 292
Index Model ......................................................................................... 292
Macroeconomic Factor Models............................................................ 293
Statistical Factor Models...................................................................... 295
Contents xiii

CHAPTER 12 Volume Forecasting Techniques ..................................................... 301


Introduction ............................................................................................... 301
Market Impact Model ............................................................................... 301
Average Daily Volume ............................................................................. 303
Methodology ........................................................................................ 303
Definitions ............................................................................................ 303
Monthly Volume Forecasting Model................................................... 304
Analysis................................................................................................ 304
Regression Results ............................................................................... 306
Observations Over the 19-Year Period: 2000e18 ................................... 306
Observations Over the Most Recent 3-Year Period: 2016e18 ................ 308
Volumes and Stock Price Correlation.................................................. 309
Forecasting Daily Volumes....................................................................... 309
Our Daily Volume Forecasting Analysis is as Follows....................... 310
Variable Notation ................................................................................. 311
ARMA Daily Forecasting Model......................................................... 311
Analysis Goal ....................................................................................... 311
Step 1. Determine Which is More Appropriate: ADV or MDV
and the Historical Look-Back Number of Days ................................. 312
Conclusion #1 ...................................................................................... 312
Step 2. Estimate the DayOfWeek(t) Parameter .................................... 314
Conclusion #2 ...................................................................................... 314
b
Step 3. Estimate the Autoregressive Parameter b................................ 315
Forecast Improvements ........................................................................ 316
Daily Volume Forecasting Model........................................................ 316
Conclusion #3 ...................................................................................... 316
Forecasting Intraday Volumes Profiles ................................................ 317
Forecasting Intraday Volume Profiles.................................................. 320
Predicting Remaining Daily Volume................................................... 321
CHAPTER 13 Algorithmic Decision-Making Framework ......................................... 323
Introduction ............................................................................................... 323
Equations................................................................................................... 324
Variables............................................................................................... 324
Important Equations ............................................................................. 325
Algorithmic Decision-Making Framework............................................... 325
Select Benchmark Price ....................................................................... 326
Comparison of Benchmark Prices ............................................................ 329
Specify Trading Goal ........................................................................... 330
Specify Adaptation Tactic.................................................................... 337
xiv Contents

Projected Cost ...................................................................................... 338


Comparison Across Adaptation Tactics ................................................... 345
Modified Adaptation Tactics..................................................................... 346
How Often Should we Reoptimization Our Tactic?............................ 347
CHAPTER 14 Portfolio Algorithms and Trade Schedule Optimization ...................... 349
Introduction ............................................................................................... 349
Trader’s Dilemma ..................................................................................... 351
Variables............................................................................................... 351
Transaction Cost Equations ...................................................................... 352
Market Impact ...................................................................................... 353
Price Appreciation................................................................................ 353
Timing Risk.......................................................................................... 354
One-Sided Optimization Problem ........................................................ 354
Optimization Formulation......................................................................... 354
Constraint Description.......................................................................... 355
Portfolio Optimization Techniques ........................................................... 358
Quadratic Programming Approach ...................................................... 358
Trade Schedule Exponential ................................................................ 360
Residual Schedule Exponential............................................................ 361
Trading Rate Parameter........................................................................ 362
Comparison of Optimization Techniques ............................................ 364
Portfolio Adaptation Tactics ..................................................................... 368
Description of AIM and PIM for Portfolio Trading ............................ 370
How Often Should we Reoptimize? .................................................... 371
Appendix .............................................................................................. 372
CHAPTER 15 Advanced Algorithmic Modeling Techniques ..................................... 375
Introduction ............................................................................................... 375
Trading Cost Equations ............................................................................ 375
Model Inputs ........................................................................................ 376
Trading Strategy................................................................................... 376
Percentage of Volume .......................................................................... 377
Trading Rate......................................................................................... 377
Trade Schedule..................................................................................... 378
Comparison of POV Rate to Trade Rate ............................................. 378
Trading Time ............................................................................................ 378
Trading Risk Components ........................................................................ 379
Trading Cost ModelsdReformulated.................................................. 380
Market Impact Expression ................................................................... 380
Timing Risk Equation .......................................................................... 382
Contents xv

Derivation of the 1/3 Factor................................................................. 384


Timing Risk For a Basket of Stock ..................................................... 387
Comparison of Market Impact Estimates............................................. 388
Forecasting Covariance ........................................................................ 390
Efficient Trading Frontier .................................................................... 391
Single Stock Trade Cost Objective Function....................................... 393
Portfolio Trade Cost Objective Function ............................................. 394
Managing Portfolio Risk...................................................................... 395
Residual Risk Curve ............................................................................ 395
Minimum Trading Risk Quantity......................................................... 397
Maximum Trading Opportunity........................................................... 398
When to Use These Criteria? ............................................................... 400
Program-Block Decomposition............................................................ 400
CHAPTER 16 Decoding and Reverse Engineering Broker Models with Machine
Learning Techniques .................................................................... 405
Introduction ............................................................................................... 405
Pre-Trade of Pre-Trades............................................................................ 406
I-Star Model Approach ........................................................................ 407
Neural Network Model Approach ....................................................... 413
Portfolio Optimization .............................................................................. 416
What Should the Portfolio Manager Do? ............................................ 419
Deriving Portfolio Optimization Market Impact Models .................... 419
Example: Share Quantity Regression Model....................................... 420
Example: Trade Value Regression Model ........................................... 425
CHAPTER 17 Portfolio Construction with Transaction Cost Analysis ........................ 429
Introduction ............................................................................................... 429
Portfolio Optimization and Constraints .................................................... 430
Transaction Costs in Portfolio Optimization ............................................ 434
Portfolio Management Process ................................................................. 437
Example: Efficient Trading Frontier With and Without Short
Positions .............................................................................................. 437
Example: Maximizing Investor Utility ................................................ 438
Trading Decision Process ......................................................................... 439
What is the Appropriate Optimal Strategy to Use? ............................. 440
Unifying the Investment and Trading Theories........................................ 441
Which Execution Strategy Should the Trader Use? ............................ 443
Cost-Adjusted Frontier.............................................................................. 445
Determining the Appropriate Level of Risk Aversion ............................. 447
Best Execution Frontier ............................................................................ 448
xvi Contents

Portfolio Construction with Transaction Costs......................................... 449


Quest for Best Execution Frontier ....................................................... 451
Example .................................................................................................... 456
Important Findings ............................................................................... 464
Conclusion ................................................................................................ 466
CHAPTER 18 Quantitative Analysis with TCA ...................................................... 469
Introduction ............................................................................................... 469
Quantitative Overlays........................................................................... 469
Market Impact Factor Scores ............................................................... 469
Cost Curves .......................................................................................... 469
Alpha Capture ...................................................................................... 470
Investment Capacity............................................................................. 470
Portfolio Optimization.......................................................................... 470
Backtesting ........................................................................................... 470
Liquidation Cost................................................................................... 471
Sensitivity Analysis.............................................................................. 471
Are The Existing Models Useful Enough For Portfolio
Construction?....................................................................................... 472
Current State of Vendor Market Impact Models ................................. 473
Pretrade of Pretrades ................................................................................. 475
Applications ......................................................................................... 476
Example #1 .......................................................................................... 476
Example #2 .......................................................................................... 477
Example #3 .......................................................................................... 477
Example #4 .......................................................................................... 477
How Expensive is it to Trade? ................................................................. 478
Acquisition and Liquidation Costs....................................................... 481
Portfolio ManagementdScreening Techniques .................................. 484
Backtesting Strategies ............................................................................... 487
Market Impact Simulation ........................................................................ 490
Simulation Scenario ............................................................................. 491
Multi-Asset Class Investing ...................................................................... 495
Investing in Beta Exposure and Other Factors .................................... 495
Example #5 .......................................................................................... 495
Multi-Asset Trading Costs........................................................................ 498
Global Equity Markets ......................................................................... 500
Multi-Asset Classes.............................................................................. 501
Market Impact Factor Scores .................................................................... 508
Current State of Market Impact Factor Scores .................................... 510
Contents xvii

Market Impact Factor Score Analysis ...................................................... 510


Alpha Capture Program ............................................................................ 512
Example #6 .......................................................................................... 513
Example #7 .......................................................................................... 514
Alpha Capture Curves.......................................................................... 516
CHAPTER 19 Machine Learning and Trade Schedule Optimization.......................... 519
Introduction ............................................................................................... 519
Multiperiod Trade Schedule Optimization Problem................................. 520
Setting up the Problem......................................................................... 520
Trader’s Dilemma Objective Function................................................. 521
Nonlinear Optimization Convergence ...................................................... 523
Newton’s Method................................................................................. 525
Example #1 .......................................................................................... 526
Example #2 .......................................................................................... 527
Machine Learning ..................................................................................... 528
Neural Networks .................................................................................. 530
Neural Network Errors......................................................................... 531
Machine Learning Training Experiment................................................... 531
Step I: Generating Simulated Trade Baskets ....................................... 532
Step II: Compile Stock and Basket Data Statistics.............................. 532
Step III: Solve the Multiperiod Trade Schedule Optimization
Problem ............................................................................................... 534
Step IV: Train the NNET..................................................................... 535
Step V. Calculate the Initial Parameter Values for the NNET ............ 536
Principal Component Analysis............................................................. 536
Stepwise Regression Analysis.............................................................. 536
Neural Network Structure .................................................................... 539
Neural Network Error .......................................................................... 539
Performance Results ................................................................................. 540
Conclusions............................................................................................... 542
CHAPTER 20 TCA Analysis Using MATLAB, Excel, and Python ................................ 543
Introduction ............................................................................................... 543
Transaction Cost Analysis Functions ....................................................... 545
Transaction Cost Model............................................................................ 547
MATLAB Functions................................................................................. 549
Excel and Python Functions ..................................................................... 549
TCA Report Examples.............................................................................. 550
Conclusion ................................................................................................ 558
xviii Contents

CHAPTER 21 Transaction Cost Analysis (TCA) Library ........................................... 559


Introduction ............................................................................................... 559
TCA Library......................................................................................... 560
Transaction Cost Analysis Using the TCA Library ................................. 561
List of TCA Functions ......................................................................... 565

Bibliography.................................................................................................................... 569
Index ............................................................................................................................... 577
Preface
Any intelligent fool can make things bigger and more complex. It takes a touch of
genius — and a lot of courage to move in the opposite direction.
Albert Einstein

“Algorithmic Trading Methods: Applications using Advanced Statistics, Optimization, and


Machine Learning Techniques,” Second Edition is a sequel to “The Science of Algorithmic
Trading & Portfolio Management.” This book greatly expands the concepts, foundations,
methodology, and models from the first edition, and it provides new insight into Algorithmic
Trading and Transaction Cost Analysis (TCA) using advanced mathematical techniques,
statistics, optimization, machine learning, neural networks, and predictive analytics.

Algorithmic Trading Methods provides traders, portfolio managers, analysts, students,


practitioners, and financial executives with an overview of the electronic trading environment,
and insight into how algorithms can be utilized to improve execution quality, fund
performance, and portfolio construction.

We provide a discussion of the current state of the market and advanced modeling techniques
for trading algorithms, stock selection and portfolio construction.

This reference book will provide readers with:


 Insight into the new electronic trading environment.
 Overview of transaction cost analysis (TCA) and discussion of proper metrics for cost mea-
surement and performance evaluation.
 Description of the different types of trading algorithms: VWAP/TWAP, Arrival Price,
Implementation Shortfall, Liquidity Seeking, Dark Pols, Dynamic Pricing, Opportunistic,
and Portfolio Trading Algorithms.
 Proven market impact modeling and forecasting techniques.
 Trading costs across various asset classes: equities, futures, fixed income, foreign exchange,
and commodities.
 Advanced forecasting techniques to estimate daily liquidity, monthly volumes, and ADV.
 An algorithmic decision-making framework to ensure consistency between investment and
trading objectives.
 An understanding of how machine learning techniques can be applied to algorithmic trading
and portfolio management.
 A best execution process to ensure funds are positioned to achieve their maximum level of
performance.
 A TCA library that allows investors to perform transaction cost analysis and develop algo-
rithmic trading models on their own desktop.

xix
xx Preface

 A methodology to decode broker models and develop customized market impact models
based on the investment objective of the fund.
Readers will subsequently be prepared to:
 Develop real-time trading algorithms customized to specific institutional needs.
 Design systems to manage algorithmic risk and dark pool uncertainty.
 Evaluate market impact models and assess performance across algorithms, traders, and brokers.
 Implement electronic trading systems.
 Incorporate transaction cost directly into the stock selection process and portfolio optimizers.
For the first time, portfolio managers are not forgotten and will be provided with proven
techniques to better construct portfolios through:
 Stock Selection
 Portfolio Optimization
 Asset Allocation
 MI Factor Scores
 Multi-Asset Investing
 Factor Exposure Investing
The book is categorized in three parts. Part I focuses on the current electronic market
environment where we discuss trading algorithms, market microstructure research, and
transaction cost analysis. Part II focuses on the necessary mathematical models that are used
to construct, calibrate, and test market impact models, as well as to develop single stock and
portfolio trading algorithms. The section further discusses volatility and factor models, as
well as advanced algorithmic forecasting techniques. This includes probability and statistics,
linear regression, probability models, non-linear regression, optimization, machine learning
and neural networks. Part III focuses on portfolio management techniques and TCA, and
shows how market impact can be incorporated into the investment decisions stock selection
and portfolio construction to improve portfolio performance. We introduce readers to an
advanced portfolio optimization process that incorporates market impact and transaction
costs directly into the portfolio optimization. We provide insight in how MI Factor Scores
can be used to improve stock selection, as well as a technique that can be used by portfolio
managers to decipher broker dealer black box models.

The book concludes with an overview of the KRG TCA library. This chapter providers readers
with insight into how the models and methodologies presented in the book can be packaged and
utilized within numerous software packages and programming languages. These include:
MATLAB, Excel Add-Ins, Python, Java, C/Cþþ, .NET, and standalone applications as
.EXE and .COM application files.

And like the Albert Einstein quote above asks, Algorithmic Trading Methods dares to be
different and exhibits the courage to move in new direction. This book presents the
simplicity behind the algorithmic trading curtain, and shows that the algorithmic trading
landscape is not nearly as complex as Einstein’s intelligent industry fools would have us
believe. This book is a must read for all financial investors and students.
Acknowledgments
There have been numerous people over the years who have made significant contributions
to the field and to the material introduced and presented throughout the text. Without their
insights, comments, suggestions, and criticisms, the final version of this book and these
models would not have been possible.
Roberto Malamut, Ph.D., from Cornell University, was instrumental in the develop-
ment of the numerous methodologies, frameworks, and models introduced in this book.
His keen mathematical insight and financial market knowledge helped advance many of
the theories presented throughout the text. He provided the foundation for multiperiod
trade schedule optimization and is by far one of the leading experts in algorithmic trading,
finance, statistics, and optimization. Roberto is a coauthor of the CFA Level III reading
“Trade Strategy and Execution,” CFA Institute 2019, and he and I have coauthored more
leading-edge algorithmic trading papers in peer-reviewed journals than either one of us can
probably remember.
Morton Glantz, my coauthor from Optimal Trading Strategies, provided invaluable
guidance and direction, and helped turn many of our original ideas into formulations that
have since been put into practice by traders and portfolio managers, and have now become
mainstream in the industry.
The All-Universe Algorithmic Trading Team: Roberto Malamut (Captain), Andrew
Xia, Hernan Otero, Deepak Nautiyal, Don Sun, Kevin Li, Peter Tannenbaum, Connie Li,
Nina Zhang, Grace Chung, Jungsun (Sunny) Bae, Arun Rajasekhar, Mustaq Ali, Mike
Blake, Alexis Kirke, Agustin Leon, and Pierre Miasnikof. Thank you for all your con-
tributions and ideas, which have now become ingrained into the algorithmic trading
landscape. Your contribution to algorithmic trading is second to none and has shaped the
industry.
Wayne Wagner provided valuable direction and support over the years. His early
research has since evolved into its own science and discipline known as transaction cost
analysis (TCA). His early vision and research have helped pave the way for making our
financial markets more efficient and investor portfolios more profitable. Robert Almgren
and Neil Chriss provided the groundbreaking work on the efficient trading frontier, and
introduced the appropriate mathematical trading concepts to the trading side of the in-
dustry. Their seminal paper on optimal liquidation strategies is the reason that trading
desks have embraced mathematical models and algorithmic trading.
Victoria Averbukh Kulikov, Director of Cornell Financial Engineering Manhattan,
allowed me to lecture at Cornell on algorithmic trading (Fall 2009 & Fall 2010) and test
many of my theories and ideas in a class setting. I have a great deal of gratitude to her and
to all the students for correcting my many mistakes before they could become part of this
book. They provided more answers to me than I am sure I provided to them during the
semester. Steve Raymar and Yan An from Fordham University for encouraging me to
continue teaching algorithmic trading and to push and encourage students.
Connie Li, Quantitative Analyst and Algorithmic Trading Expert, M.S. in Financial
Engineering from Cornell University, provided invaluable comments and suggestions

xxi
xxii Acknowledgments

throughout the writing of the book. And most importantly, Connie corrected the errors in
my math, the grammar in my writing, and helped simplify the many concepts discussed
throughout the book. Connie Li is also a coauthor of the CFA Level III reading “Trade
Strategy and Execution,” CFA Institute 2019.
Nina Zhang, M.S. in Quantitative Finance and Statistics from Fordham University,
provided insight and suggestions that led to the development of the TCA functions and
TCA Libraries for MATLAB and Excel. Nina is a coauthor of the paper “Transaction Cost
Analysis with Excel and MATLAB” (JOT, Winter 2017).
Grace Chung, M.S. in Mathematical Finance from Rutgers University, provided insight
and suggestions to help incorporate TCA into the portfolio optimization process. Grace is a
coauthor of the paper “An Application of Transaction Cost in the Portfolio Optimization
Process” (JOT, Spring 2016).
Jungsun “Sunny” Bae, M.S. in Information Systems from Baruch College, is a leading
researcher and practitioner in machine learning and natural language processing. Sunny
was instrumental in helping to develop machine learning applications for their use in
multiperiod trade schedule optimization. She is coauthor of the paper “Machine Learning
for Algorithmic Trading and Trade Schedule Optimization” (JOT Fall 2018).
Scott Bentley, Ph.D., was my publisher for Algorithmic Trading Methods, Second
Edition. He provided invaluable guidance, suggestions, comments, and encouragement
throughout both projects. He is a major reason for the success of both books.
Scott Wilson, Ph.D., provided invaluable insight and direction for modeling trading
costs across the various asset classes, and was influential in helping to structure the
concepts behind the factor exposure allocation scheme.
John Carillo, Jon Anderson, Sebastian Ceria, Curt Engler, Marc Gresack, Kingsley
Jones, Scott Wilson, Eldar Nigmatullin, Bojan Petrovich, Mike Rodgers, Deborah Bere-
bichez, Jim Poserina, Tom Kane, Dan Keegan, and Diana Muzan for providing valuable
insight, suggestions, and comments during some of the early drafts of this manuscript. This
has ultimately led to a better text. The team at Institutional Investor (now IPR), Brian
Bruce, Allison Adams, Debra Trask, and Melinda Estelle, for ongoing support and the
encouragement to push forward and publish with new ideas and concepts.
A special thanks to Richard Rudden, Stephen Marron, John Little, Cheryl Beach, Russ
Feingold, Kevin Harper, William Hederman, John Wile, and Kyle Rudden from my first
job out of college at R.J. Rudden Associates (now part of Black and Veatch) for teaching
the true benefits of thinking outside the box, and showing that many times a nontraditional
approach could often prove to be the most insightful.
Additionally, Trista Rose, Hans Lie, Richard Duan, Alisher Khussainov, Thomas
Yang, Joesph Gahtan, Fabienne Wilmes, Erik Sulzbach, Charlie Behette, Min Moon,
Kapil Dhingra, Harry Rana, Michael Lee, John Mackie, Nigel Lucas, Steve Paridis,
Thomas Reif, Steve Malin, Marco Dion, Michael Coyle, Anna-Marie Monette, Mal Selver,
Ryan Crane, Matt Laird, Charlotte Reid, Ignor Kantor, Aleksandra Radakovic, Deng
Zhang, Shu Lin, Ken Weston, Andrew Freyre-Sanders, Mike Schultz, Lisa Sarris, Joe
Gresia, Mike Keigher, Thomas Rucinski, Alan Rubenfeld, John Palazzo, Jens Soerensen,
Acknowledgments xxiii

Adam Denny, Diane Neligan, Rahul Grover, Rana Chammaa, Stefan Balderach, Chris
Sinclaire, James Rubinstein, Frank Bigelow, Rob Chechilo, Carl DeFelice, Kurt Burger,
Brian McGinn, Dan Wilson, Kieran Kilkenny, Kendal Beer, Edna Addo, Israel Moljo,
Peter Krase, Emil Terazi, Emerson Wu, Trevor McDonough, Simon (I still do not know
his last name), Jim Heaney, Emilee Deutchman, Seth Weingram, and Jared Anderson.
My previous algorithmic trading students who provided tremendous insight into
algorithmic trading models through numerous questions:
Fall 2009 (Cornell): Sharath Alampur, Qi An, Charles Bocchino, Sai Men Chua,
Antoine Comeau, Ashish Dole, Michael Doros, Ali Hassani, Steven Hung, Di Li, Sandy
Mtandwa, Babaseyi Olaleye, Arjun Rao, Pranav Sawjiany, Sharat Shekar, Henry Zhang,
Xiaoliang Zhu.
Fall 2010 (Cornell): Alisher Khussainov, Shubham Chopra, Jeff Yang, Woojoon Choi,
Ruke Ufomata, Connie Li, Poojitha Rao, Zhijiang Yang, Seung Bae Lee, Ke Zhang, Ming
Sheng.
Fall 2015 (Fordham): Lu An, Chad Brown, Tyler Carter, Isabel Du Zhou, Tianzuo
Feng, Ying Gao, Zhen Huang, Xichen Jin, Aditya Khaparde, Hanchao Li, Shuang Lin, Yi
Liu, Xiaomin Lu, Jinghan Ma, Jinshu Ma, Fupeng Peng, Boyang Qin, Zilun Shen, Fen-
gyang Shi, Alton Tang, Jiahui Wang, Xiaoyi Wang, Jieqiu Xie, Jiaqi Yang, Anya Zaitsev,
Ning Zhang, Yufei Zhang, Yi Zheng, Ruoyang Zhu, Yuhong Zhu, Yunzheng Zhu.
Spring 2016 (Fordham): Amit Agarwal, Yash Bhargava, Richard Brewster, Yizhuoran
Cao, Liangao Chen, Nan Chen, Zhaoyi Ding, Ruiqun Fan, Rui Ge, Tianyuan He, Yue Jia,
Anqi Li, Yang Li, Hsin-Han Lin, Dongming Liu, Kuan-Yin Liu, Bingwan Liu, Yunpeng
Luo, Shihui Qian, Yisheng Qian, Wenlu Qiao, Shao Qiu, Vadim Serebrinskiy, Nitin
Sharma, Yuxin Shi, Hongyi Shu, Ethan Soskel, Shuyi Sui, Zhifang Sun, Ming Wang, Wen
Xiong, Chen Xueqing, Kaicheng Yang, Siqi Yi, Shuwei Zhan, Huidong Zhang, Diyuan
Zhang, Xianrao Zhu, Ying Zhu.
Summer 2016 (Fordham): Eric Adams, Mohammad Alhuneidi, Sergei Banashko,
Zheng Duan, Alexander Flaster, Yuting Guo, Junchi Han, Christian Hellmann, Yushan
Hou, Yangxiu Huang, Ziyun Huang, Hanchen Jin, Xi Jing, Yuxiao Luo, Edward
Mccarthy, Ryan McNally, Francesk Nilaj, Xiaokang Sun, Yinxue Sun, Guoliang Wang,
Melanie Williams, Zihao Yan, Yitong Zheng.
Fall 2017 (Fordham): Maha Almansouri, Seongjun Bae, Jinshuo Bai, Subhasis Bhadra,
Shiwen Chen, Taihao Chen, Yutong Chen, Yichen Fan, James Ferraioli, Patrick Fuery,
Ziqing Gao, Bingxin Gu, Yang Hong, Tingting Huang, Keyihong Ji, Owen Joyce, Jiayuan
Liu, Xun Liu, Xin Lu, Rui Ma, Mengyang Miao, Xueting Pan, Xiao Tan, Yaokan Tang,
Mengting Tian, Hongyuan Wang, Ning Wang, Yimei Wang, Jiajin Wu, Hansen Xing,
Zheng Zheng, Yuan Zhou.
Spring 2017 (Fordham): Jianda Bi, Sean Burke, Beilun Chen, Yilun Chen, Tamar
Chikovani, Niclas Dombrowski, Chong Feng, Fangfei Gao, Masoud Ghayoumi, Man
Avinash Gill, Jiangxue Han, Yuze Ji, Shuxin Li, Lianhao Lin, Chang Liu, Xinyi Liu, Yi
Luo, Tianjie Ma, Nicholas Mata, John Mitchell, Mathieu Nicolas, Boyuan Su, Haoyue
Sun, Yifan Tang, Tuo Wang, Weixuan Wang, Minqi Wang, Qijin Wu, Junhao Wu, Yifan
xxiv Acknowledgments

Wu, Wei Wu, Xin Xiong, Mao Yang, Kai Yang, Kirill Zakharov, Tongqing Zhang,
Haojian Zheng, Jiri Beles, Brian Block, Chaitanya Motla, Rongxin Wang, Ye Zhang.
Fall 2018 (Fordham): Jennifer Dunn, Nadir Bajwa, Riley Coyne, Robert Genneken III,
Connor Griffin, Liesel Judas, Lubaba Khan, Steve Kotoros, Ryan Mertz, James O’Hara,
Lokesh Sivasriaumphai, Roberto Stevens.
Spring 2019 (Fordham): Charles Blackington, Rong Deng, Lei Feng, Luoyi Fu,
Tianlun Gao, Yutong Guo, Tong Han, Yuxuan He, Danny Hemchand, Alana Higa, Boyu
Hu, Lan Huang, Brandon Jaskulek, Zhiyan Jiang, Athanasios Katsiouris, Rachel Keough,
Tanya Krishnakumar, Anqi Li, Chenxi Li, Yiteng Li, Kuiren Liao, Xin Liu, Xuwen Lyu,
Yaakov Musheyev, Ziwen Pan, Luman Sun, Chengxin Wang, Jingzhi Wang, Yutong
Xing, Yuxin Xu, Yazhuo Xue, Deyi Yu, Xiang Ning Zang, Yixiao Zhang, Zhizhe Zhao,
Lujun Zhen, Zepeng Zhong, Ruiyang Zou, Yingting Zou.
In addition to all those who have made significant contribution to the field of algo-
rithmic trading, unfortunately, there are also those who have impeded the progress of
algorithmic trading and quantitative finance. These individuals have been mostly moti-
vated by greed and their never-ending quest for self-promotion. The nice thing is that
many are no longer in the financial industry, but there are still a few too many who remain.
A list of those individuals is available upon request.

Best regards,
Robert Kissell, Ph.D.
Chapter
1
Introduction
To say that electronic algorithmic trading has disrupted the financial envi-
ronment is truly an understatement. Algorithmic trading has transformed
the financial marketsdfrom the antiquated days of manual labor, human
interaction, pushing, yelling, shoving, paper confirmations, and the occa-
sional fist-fightdinto a system with electronic audit trails and trading facil-
itated using computers, complex mathematical formulas, machine learning,
and artificial intelligence.
Nowadays, the trading floors of these antiquated exchanges more resemble
a university library than they do a global center of trade and commerce.
Many of the glamourous trading floors of years ago, such as the floor of
the New York Stock Exchange, have been relegated to just another stop
on a historical walking tour of downtown New York City.
Trading floors are no longer an active center of trading commerce. Trading
floors are relatively quiet and are no longer littered with filled will paper or-
ders and confirmations. Today, all trading occurs electronically in data cen-
ters with computers rather than people matching orders.
In 2019, electronic trading comprised approximately 99.9% of all equity
volume and algorithmic trading comprised approximately 92% of all equity
volume.1 The remaining 8% of the orders that are not executed via an algo-
rithm are still transacted electronically. But in these situations, brokers still
route orders via a computer trading system to different exchanges, venues,
and/or dark pool to be transacted in accordance with specified pricing rules
define by these brokers.
Fig. 1.1 illustrates the evolution of electronic and algorithmic trading over
the period 2000e19. Electronic trading in the early years was dominated
by firms such as Instinet, Island, and ITG/Posit, and occurred mostly in
NASDAQ/OTC stocks. Electronic trading grew from 15% in 2000 to
99.9% in 2019. The only trading that does not occur electronically today

1
Source: Kissell Research Group, www.KissellResearch.com.
Algorithmic Trading Methods, Second Edition. https://doi.org/10.1016/B978-0-12-815630-8.00001-6
Copyright © 2021 Elsevier Inc. All rights reserved. 1
2 CHAPTER 1 Introduction

Electronic and Algorithmic Trading


120.0%

100.0%

80.0%

60.0%

40.0%

20.0%

0.0%

Electronic Trading Algorithmic Trading

n FIGURE 1.1 Electronic and Algorithmic Trading. Source: Kissell Research Group.

(<0.1%) occurs through special situation sales and transactions. Otherwise,


all trading in US markets occurs electronically.
Over the same period, algorithmic trading exploded grew from 1% of total
market volume in 2000 to 93% in 2019. The biggest increase in algorithmic
trading occurred first in August 2007 due to the quant meltdown and then
again in 2008e09 due to the financial crisis. It was during these periods of
high volatility, trading difficulty, and rapid price changes that institutions
realized the benefits of algorithmic trading. During these times, investors
were faced with rapidly adverse price movement and decreased transactable
liquidity. Time delay encountered in when disseminating orders to brokers
for immediate execution were often met with information leakage, less
favorable transaction prices, and lower profits margins. To avoid these hos-
tile trading conditions, investors turned to the more advanced trading sys-
tems and the usage of algorithms so that they could better control their
orders, keep their trading intentions hidden, and achieve more favorable
transaction prices.
The old-fashioned trading system environment we once know where we call
our broker, market-maker, or specialist over the phone are long gone.
Welcome to the new financial environment.

WHAT IS ELECTRONIC TRADING?


Electronic Trading is the process of transacting orders over a computer sys-
tem or network rather than via a phone call or fax sent to your broker where
you need to state your order, trading intentions, and any special instruction.
Electronic trading could be as simple as entering a buy order into a retail
trading system using a computer terminal, or more recently, via a mobile
app. Electronic trading could also be more advanced and complex such
Trading Algorithm Classifications 3

as situations where investors route orders to different trading venues for


execution at specified prices, within price spreads, or for execution at
different times of the day. In all these cases, electronic trading encompasses
any order that generates via a computer connection.
Electronic trading should not be anything new. In fact, much of our daily lives
have become mobile and we are connected to the internet almost twenty-four
seven. Think of all the purchases we make on the internet including every-
thing from movie, sports, theater, and entertainment tickets; clothing, travel,
hotel, and airfare, automobile, and at times even home purchases.

WHAT IS ALGORITHMIC TRADING?


Algorithmic trading in its simplest form is the computerized execution of a
financial instrument following a prespecified set of trading rules and instruc-
tions. Investors, instead of sending an order to a broker for execution or
routing an order to an exchange, simply enter the order into the algorithm
for execution. Algorithms then slice larger orders into smaller pieces for
execution over the day, and at various trading venues, to achieve the best
market prices and reduce overall trading costs.
The primary goal of algorithmic trading is to ensure that the implementation
of the investment decision is be consistent with the investment objective of
the fund and to manage the overall transaction costs of the order and
achieve the favorable prices.

TRADING ALGORITHM CLASSIFICATIONS


Trading algorithms are classified into three categories: execution algo-
rithms, profit seeking algorithms, and high frequency trading algorithms.
n Execution Algorithms: An execution algorithm is tasked to transact the
investment decision made by the investor or portfolio manager. The man-
ager determines what to buy or sell based on their investment style and
fund investment objective, and then enters the order into the algorithm.
The algorithm will then execute the order and implement the decision
following a set of rules specified by the portfolio manager.
n Profit Seeking Algorithms: A profit seeking algorithm is an algorithm
that will both determine what to buy and/or sell in the market and will
execute those decisions without interaction by the portfolio manager.
For example, these algorithms will use real-time price information and
market data such as prices, volume, volatility, and price spreads to deter-
mine what to buy or sell, and will then implement a trade when the con-
ditions are favorable to the investor. Profit seeking algorithms seek to
4 CHAPTER 1 Introduction

earn a profit based on a quantitative model, market mispricing, or a stat-


arb strategy based on pairs, index funds, or ETFs.
n High Frequency Trading: High frequency trading (HFT) is a type of
profit-seeking algorithm that seeks to earn a short-term trading profit.
The holding period for an HFT trader will often only last for a few seconds
or less and HFT trading will tend not hold any overnight position as it ex-
poses the fund to much increment risk. HFT algorithms are characterized by
very high turnover rates and they seek to profit by exploiting market mis-
pricing and liquidity conditions across different exchange, venues, and
dark pools. HFT algorithms are also notorious for trying to uncover the
buying and/or selling intentions of long-term investor through processing
market data, prices, and quotes, and then using this information to their
advantage to achieve a profit. All HFT algorithms are profit seeking algo-
rithms, but not all profit seeking algorithms are HFT.

TRADING ALGORITHM STYLES


There are many different types of trading algorithms in the market, each
with a unique name that often does not adequately describe how the algo-
rithm will transact in the marketplace. To help managers differentiate algo-
rithms, they are often classified as aggressive, working order, or passive.
Managers need to determine the algorithm that will transact in a manner
consistent with the investment object of the fund. These are:
n Aggressive: Algorithms that will trade aggressively in the market
with the goal of transacting shares at a specified price or better. These
algorithms have often been described as liquidity seeking algorithms
and/or liquidity sweeping algorithms. These algorithms will likely trade
aggressively in the market and take liquidity across multiple venues
when there is volume at the specified price or better. They tend to trade
with more market order than limit orders.
n Working Order: Algorithms that trade in the market following prescribed
rules based on the needs of investors. These algorithms will often seek to
balance the tradeoff between trading cost and market risk, as well as seek
to maximize the specified investment objectives. These algorithms will
trade with an appropriate balance and mix of limit and market orders.
n Passive: Algorithms that trade in a very passive manner and using mostly
limit orders. These algorithms will also seek to trade greater quantities of
shares in dark pools to minimize information leakage and to ensure that
the execution of the order does not provide the market with signals per-
taining to the trading intentions of the fund.
Exploring the Variety of Random
Documents with Different Content
*** END OF THE PROJECT GUTENBERG EBOOK SCHRIFTEN 17:
NOVELLEN 1 ***

Updated editions will replace the previous one—the old editions will
be renamed.

Creating the works from print editions not protected by U.S.


copyright law means that no one owns a United States copyright in
these works, so the Foundation (and you!) can copy and distribute it
in the United States without permission and without paying
copyright royalties. Special rules, set forth in the General Terms of
Use part of this license, apply to copying and distributing Project
Gutenberg™ electronic works to protect the PROJECT GUTENBERG™
concept and trademark. Project Gutenberg is a registered trademark,
and may not be used if you charge for an eBook, except by following
the terms of the trademark license, including paying royalties for use
of the Project Gutenberg trademark. If you do not charge anything
for copies of this eBook, complying with the trademark license is
very easy. You may use this eBook for nearly any purpose such as
creation of derivative works, reports, performances and research.
Project Gutenberg eBooks may be modified and printed and given
away—you may do practically ANYTHING in the United States with
eBooks not protected by U.S. copyright law. Redistribution is subject
to the trademark license, especially commercial redistribution.

START: FULL LICENSE


THE FULL PROJECT GUTENBERG LICENSE
PLEASE READ THIS BEFORE YOU DISTRIBUTE OR USE THIS WORK

To protect the Project Gutenberg™ mission of promoting the free


distribution of electronic works, by using or distributing this work (or
any other work associated in any way with the phrase “Project
Gutenberg”), you agree to comply with all the terms of the Full
Project Gutenberg™ License available with this file or online at
www.gutenberg.org/license.

Section 1. General Terms of Use and


Redistributing Project Gutenberg™
electronic works
1.A. By reading or using any part of this Project Gutenberg™
electronic work, you indicate that you have read, understand, agree
to and accept all the terms of this license and intellectual property
(trademark/copyright) agreement. If you do not agree to abide by all
the terms of this agreement, you must cease using and return or
destroy all copies of Project Gutenberg™ electronic works in your
possession. If you paid a fee for obtaining a copy of or access to a
Project Gutenberg™ electronic work and you do not agree to be
bound by the terms of this agreement, you may obtain a refund
from the person or entity to whom you paid the fee as set forth in
paragraph 1.E.8.

1.B. “Project Gutenberg” is a registered trademark. It may only be


used on or associated in any way with an electronic work by people
who agree to be bound by the terms of this agreement. There are a
few things that you can do with most Project Gutenberg™ electronic
works even without complying with the full terms of this agreement.
See paragraph 1.C below. There are a lot of things you can do with
Project Gutenberg™ electronic works if you follow the terms of this
agreement and help preserve free future access to Project
Gutenberg™ electronic works. See paragraph 1.E below.
1.C. The Project Gutenberg Literary Archive Foundation (“the
Foundation” or PGLAF), owns a compilation copyright in the
collection of Project Gutenberg™ electronic works. Nearly all the
individual works in the collection are in the public domain in the
United States. If an individual work is unprotected by copyright law
in the United States and you are located in the United States, we do
not claim a right to prevent you from copying, distributing,
performing, displaying or creating derivative works based on the
work as long as all references to Project Gutenberg are removed. Of
course, we hope that you will support the Project Gutenberg™
mission of promoting free access to electronic works by freely
sharing Project Gutenberg™ works in compliance with the terms of
this agreement for keeping the Project Gutenberg™ name associated
with the work. You can easily comply with the terms of this
agreement by keeping this work in the same format with its attached
full Project Gutenberg™ License when you share it without charge
with others.

1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside the
United States, check the laws of your country in addition to the
terms of this agreement before downloading, copying, displaying,
performing, distributing or creating derivative works based on this
work or any other Project Gutenberg™ work. The Foundation makes
no representations concerning the copyright status of any work in
any country other than the United States.

1.E. Unless you have removed all references to Project Gutenberg:

1.E.1. The following sentence, with active links to, or other


immediate access to, the full Project Gutenberg™ License must
appear prominently whenever any copy of a Project Gutenberg™
work (any work on which the phrase “Project Gutenberg” appears,
or with which the phrase “Project Gutenberg” is associated) is
accessed, displayed, performed, viewed, copied or distributed:
This eBook is for the use of anyone anywhere in the United
States and most other parts of the world at no cost and with
almost no restrictions whatsoever. You may copy it, give it away
or re-use it under the terms of the Project Gutenberg License
included with this eBook or online at www.gutenberg.org. If you
are not located in the United States, you will have to check the
laws of the country where you are located before using this
eBook.

1.E.2. If an individual Project Gutenberg™ electronic work is derived


from texts not protected by U.S. copyright law (does not contain a
notice indicating that it is posted with permission of the copyright
holder), the work can be copied and distributed to anyone in the
United States without paying any fees or charges. If you are
redistributing or providing access to a work with the phrase “Project
Gutenberg” associated with or appearing on the work, you must
comply either with the requirements of paragraphs 1.E.1 through
1.E.7 or obtain permission for the use of the work and the Project
Gutenberg™ trademark as set forth in paragraphs 1.E.8 or 1.E.9.

1.E.3. If an individual Project Gutenberg™ electronic work is posted


with the permission of the copyright holder, your use and distribution
must comply with both paragraphs 1.E.1 through 1.E.7 and any
additional terms imposed by the copyright holder. Additional terms
will be linked to the Project Gutenberg™ License for all works posted
with the permission of the copyright holder found at the beginning
of this work.

1.E.4. Do not unlink or detach or remove the full Project


Gutenberg™ License terms from this work, or any files containing a
part of this work or any other work associated with Project
Gutenberg™.

1.E.5. Do not copy, display, perform, distribute or redistribute this


electronic work, or any part of this electronic work, without
prominently displaying the sentence set forth in paragraph 1.E.1
with active links or immediate access to the full terms of the Project
Gutenberg™ License.

1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if you
provide access to or distribute copies of a Project Gutenberg™ work
in a format other than “Plain Vanilla ASCII” or other format used in
the official version posted on the official Project Gutenberg™ website
(www.gutenberg.org), you must, at no additional cost, fee or
expense to the user, provide a copy, a means of exporting a copy, or
a means of obtaining a copy upon request, of the work in its original
“Plain Vanilla ASCII” or other form. Any alternate format must
include the full Project Gutenberg™ License as specified in
paragraph 1.E.1.

1.E.7. Do not charge a fee for access to, viewing, displaying,


performing, copying or distributing any Project Gutenberg™ works
unless you comply with paragraph 1.E.8 or 1.E.9.

1.E.8. You may charge a reasonable fee for copies of or providing


access to or distributing Project Gutenberg™ electronic works
provided that:

• You pay a royalty fee of 20% of the gross profits you derive
from the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”

• You provide a full refund of any money paid by a user who


notifies you in writing (or by e-mail) within 30 days of receipt
that s/he does not agree to the terms of the full Project
Gutenberg™ License. You must require such a user to return or
destroy all copies of the works possessed in a physical medium
and discontinue all use of and all access to other copies of
Project Gutenberg™ works.

• You provide, in accordance with paragraph 1.F.3, a full refund of


any money paid for a work or a replacement copy, if a defect in
the electronic work is discovered and reported to you within 90
days of receipt of the work.

• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.

1.E.9. If you wish to charge a fee or distribute a Project Gutenberg™


electronic work or group of works on different terms than are set
forth in this agreement, you must obtain permission in writing from
the Project Gutenberg Literary Archive Foundation, the manager of
the Project Gutenberg™ trademark. Contact the Foundation as set
forth in Section 3 below.

1.F.

1.F.1. Project Gutenberg volunteers and employees expend


considerable effort to identify, do copyright research on, transcribe
and proofread works not protected by U.S. copyright law in creating
the Project Gutenberg™ collection. Despite these efforts, Project
Gutenberg™ electronic works, and the medium on which they may
be stored, may contain “Defects,” such as, but not limited to,
incomplete, inaccurate or corrupt data, transcription errors, a
copyright or other intellectual property infringement, a defective or
damaged disk or other medium, a computer virus, or computer
codes that damage or cannot be read by your equipment.

1.F.2. LIMITED WARRANTY, DISCLAIMER OF DAMAGES - Except for


the “Right of Replacement or Refund” described in paragraph 1.F.3,
the Project Gutenberg Literary Archive Foundation, the owner of the
Project Gutenberg™ trademark, and any other party distributing a
Project Gutenberg™ electronic work under this agreement, disclaim
all liability to you for damages, costs and expenses, including legal
fees. YOU AGREE THAT YOU HAVE NO REMEDIES FOR
NEGLIGENCE, STRICT LIABILITY, BREACH OF WARRANTY OR
BREACH OF CONTRACT EXCEPT THOSE PROVIDED IN PARAGRAPH
1.F.3. YOU AGREE THAT THE FOUNDATION, THE TRADEMARK
OWNER, AND ANY DISTRIBUTOR UNDER THIS AGREEMENT WILL
NOT BE LIABLE TO YOU FOR ACTUAL, DIRECT, INDIRECT,
CONSEQUENTIAL, PUNITIVE OR INCIDENTAL DAMAGES EVEN IF
YOU GIVE NOTICE OF THE POSSIBILITY OF SUCH DAMAGE.

1.F.3. LIMITED RIGHT OF REPLACEMENT OR REFUND - If you


discover a defect in this electronic work within 90 days of receiving
it, you can receive a refund of the money (if any) you paid for it by
sending a written explanation to the person you received the work
from. If you received the work on a physical medium, you must
return the medium with your written explanation. The person or
entity that provided you with the defective work may elect to provide
a replacement copy in lieu of a refund. If you received the work
electronically, the person or entity providing it to you may choose to
give you a second opportunity to receive the work electronically in
lieu of a refund. If the second copy is also defective, you may
demand a refund in writing without further opportunities to fix the
problem.

1.F.4. Except for the limited right of replacement or refund set forth
in paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.

1.F.5. Some states do not allow disclaimers of certain implied


warranties or the exclusion or limitation of certain types of damages.
If any disclaimer or limitation set forth in this agreement violates the
law of the state applicable to this agreement, the agreement shall be
interpreted to make the maximum disclaimer or limitation permitted
by the applicable state law. The invalidity or unenforceability of any
provision of this agreement shall not void the remaining provisions.

1.F.6. INDEMNITY - You agree to indemnify and hold the Foundation,


the trademark owner, any agent or employee of the Foundation,
anyone providing copies of Project Gutenberg™ electronic works in
accordance with this agreement, and any volunteers associated with
the production, promotion and distribution of Project Gutenberg™
electronic works, harmless from all liability, costs and expenses,
including legal fees, that arise directly or indirectly from any of the
following which you do or cause to occur: (a) distribution of this or
any Project Gutenberg™ work, (b) alteration, modification, or
additions or deletions to any Project Gutenberg™ work, and (c) any
Defect you cause.

Section 2. Information about the Mission


of Project Gutenberg™
Project Gutenberg™ is synonymous with the free distribution of
electronic works in formats readable by the widest variety of
computers including obsolete, old, middle-aged and new computers.
It exists because of the efforts of hundreds of volunteers and
donations from people in all walks of life.

Volunteers and financial support to provide volunteers with the


assistance they need are critical to reaching Project Gutenberg™’s
goals and ensuring that the Project Gutenberg™ collection will
remain freely available for generations to come. In 2001, the Project
Gutenberg Literary Archive Foundation was created to provide a
secure and permanent future for Project Gutenberg™ and future
generations. To learn more about the Project Gutenberg Literary
Archive Foundation and how your efforts and donations can help,
see Sections 3 and 4 and the Foundation information page at
www.gutenberg.org.

Section 3. Information about the Project


Gutenberg Literary Archive Foundation
The Project Gutenberg Literary Archive Foundation is a non-profit
501(c)(3) educational corporation organized under the laws of the
state of Mississippi and granted tax exempt status by the Internal
Revenue Service. The Foundation’s EIN or federal tax identification
number is 64-6221541. Contributions to the Project Gutenberg
Literary Archive Foundation are tax deductible to the full extent
permitted by U.S. federal laws and your state’s laws.

The Foundation’s business office is located at 809 North 1500 West,


Salt Lake City, UT 84116, (801) 596-1887. Email contact links and up
to date contact information can be found at the Foundation’s website
and official page at www.gutenberg.org/contact

Section 4. Information about Donations to


the Project Gutenberg Literary Archive
Foundation
Project Gutenberg™ depends upon and cannot survive without
widespread public support and donations to carry out its mission of
increasing the number of public domain and licensed works that can
be freely distributed in machine-readable form accessible by the
widest array of equipment including outdated equipment. Many
small donations ($1 to $5,000) are particularly important to
maintaining tax exempt status with the IRS.

The Foundation is committed to complying with the laws regulating


charities and charitable donations in all 50 states of the United
States. Compliance requirements are not uniform and it takes a
considerable effort, much paperwork and many fees to meet and
keep up with these requirements. We do not solicit donations in
locations where we have not received written confirmation of
compliance. To SEND DONATIONS or determine the status of
compliance for any particular state visit www.gutenberg.org/donate.

While we cannot and do not solicit contributions from states where


we have not met the solicitation requirements, we know of no
prohibition against accepting unsolicited donations from donors in
such states who approach us with offers to donate.

International donations are gratefully accepted, but we cannot make


any statements concerning tax treatment of donations received from
outside the United States. U.S. laws alone swamp our small staff.

Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.

Section 5. General Information About


Project Gutenberg™ electronic works
Professor Michael S. Hart was the originator of the Project
Gutenberg™ concept of a library of electronic works that could be
freely shared with anyone. For forty years, he produced and
distributed Project Gutenberg™ eBooks with only a loose network of
volunteer support.
Project Gutenberg™ eBooks are often created from several printed
editions, all of which are confirmed as not protected by copyright in
the U.S. unless a copyright notice is included. Thus, we do not
necessarily keep eBooks in compliance with any particular paper
edition.

Most people start at our website which has the main PG search
facility: www.gutenberg.org.

This website includes information about Project Gutenberg™,


including how to make donations to the Project Gutenberg Literary
Archive Foundation, how to help produce our new eBooks, and how
to subscribe to our email newsletter to hear about new eBooks.
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade

Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.

Let us accompany you on the journey of exploring knowledge and


personal growth!

textbookfull.com

You might also like