SlideShare une entreprise Scribd logo
Modeling
Transaction Costs
for Algorithmic Strategies
Tomas Bok tbok@post.harvard.edu
Boston Algorithmic Trading Meetup
April 24, 2013
© 2013 Tomas Bok
Tuesday, May 28, 13
Taxonomy of T-Costs
Explicit Costs
Broker Commissions
Fees & Taxes
Ticket Charges
Benchmark Slippage
Opportunity Cost
} mostly independent
of execution style
} highly dependent
on execution style
Tuesday, May 28, 13
Algorithmic Trading Stack
Smart Order Router
Exchanges, ECNs, & Dark Pools
Direct
Orders
Execution Algorithm
Investment Strategy
Parent
Orders
Child
Orders
Tuesday, May 28, 13
Benchmark Slippage
timedecision
benchmark price
}slippage
price
average realized price
Tuesday, May 28, 13
Factors that Drive Slippage
Small Orders: Large Orders:
slippage is
primarily due to
market impact
slippage is
primarily due to
spread
Price Action
affects all orders
+
luck
𝛼 decay
Tuesday, May 28, 13
Forecasting Slippage
timedecision
benchmark price
}slippage
price
average price
order size and side
execution horizon
stock-specific liquidity details
(volume, spread, volatility, ...)
price action (over trade horizon)
Typical Model Inputs
Tuesday, May 28, 13
Buy 200 DIS over 1m
(1% participation)
Buy 2,000 DIS over 1m
(10% participation)
Buy 20,000 DIS over 10m
(10% participation)
Buy 120,000 DIS over 1h
(10% participation)
0.9 bps
0.9 - 1.5 bps
2.9 bps
8.8 bps
Sample Slippage Forecasts
Buy X shares of DIS at 10:00am
Source:
ITG, Inc.
Tuesday, May 28, 13
Slippage Forecasting Methods
timedecision
benchmark price
}slippage
price
average price
Generate
point-estimate
of slippage
Method A:
Equation-Based
Generate bottom-up
slippage estimate
based on individually-
simulated fills
Method B:
Simulate Fills
Tuesday, May 28, 13
Slippage Forecasting Methods
Execution Algorithm
Investment Strategy
Parent
Orders {Method A
Simulation Scope
Child
Orders
{Method B
Simulation Scope
Parent
Orders
Execution Algorithm
Investment Strategy
Generate
point-estimate
of slippage
Method A:
Equation-Based
Generate bottom-up
slippage estimate
based on individually-
simulated fills
Method B:
Simulate Fills
Tuesday, May 28, 13
Method A: Equation-Based
Avg Price = Baseline Price +/- [ f(spread) + g(size,...) ]
Last Price
Next Price
Bid-Ask Midpoint
Baseline
Price
✓
4 bps
f(typical spread)
f(starting spread)
f(TWA spread)
Spread
Cost
✓
✓
0
g(size, horizon,
volume, volatility)
Impact
✓
Horizon Close
Horizon VWAP
Horizon TWA-Mid
✓
✓
✓
[basic f( ) = 0.5 x spread]
Tuesday, May 28, 13
Method B: Simulate Fills
1. Generate stream of child orders: { time, size }
2. Generate stream of simulated fills: { size, price }
3. Avg Price = VWAP of fills
Ability to create child orders
Tick data
Limit order model
Market order model
Impact memory function
Requirementssizei x pricei
sizei
∑i
∑i
Tuesday, May 28, 13
Defining Strategy Timescale
Strategy Holding Period
milliseconds seconds minutes hours days weeks months
Intraday
Alpha
HP = minutes to hours
Expected profit: ≤1 x spread
Alpha decay = fast
Trading concern: ‘gas pedal’
High Frequency
Trading
HP = milliseconds to minutes
Expected profit: .05 -.10 ¢
Alpha decay = immediate
Trading concern: latency
Low Frequency
Quant
HP = days to months
Expected profit: ≥1%
Alpha decay = slow
Trading concern: liquidity
Tuesday, May 28, 13
Slippage Model Selection
Low Freq
Method A (simulate parent order fills)
Use the data you have available
Be conservative
Intraday
Method B (simulate child order fills)
Bring execution algo into backtest
...or break into 2 step process
HFT
Method B+ (simulate direct order fills)
Incorporate Level 2 data
Incumbents may find it easier to live-test
Tuesday, May 28, 13
Keeping It Simple
Focusing on ‘slippage-safe’ strategies
1. Avoid strategies that are overly cost-sensitive:
intraday holding periods
expected paper PNL ≤ 2 x spread
only profitable with optimistic cost assumptions
rapid alpha decay
2. Stick to a liquid stock universe
3. Cap order sizes (≤ 25% 1-minute participation rate)
4. Assume at least a minute to execute orders
Tuesday, May 28, 13
Explicit Costs (US Equities)
Broker
Commission
Taxes & Fees
Ticket Charges
TOTAL (1-way)
.05 - .20 cents
+ net fees (.06¢)
0.5 - 1.0 cents
~.05 cents included
NA $1+ (or NA)
.15 - .30 cents 1 cent + tickets
Low FreqIntradayHFT
Tuesday, May 28, 13
Opportunity Cost
timedecision
price
price limit
}+25 bps
Opportunity cost: effect of unexecuted shares on PNL
If you plan to trade with price limits or conditional
execution strategies, backtest accordingly
Tuesday, May 28, 13
Golden Rules
1. Think about transaction costs early and often
2. A simple cost framework is fine as long as you make
conservative assumptions and “stay on the path”
3. To run more cost-sensitive strategies, be prepared to
invest in a more sophisticated t-cost framework
4. Account for all three kinds of transaction costs
5. Backtest at full scale
Tuesday, May 28, 13
Image credits
Slides 3, 9: rack servers from dell.com; order tickets from
www.silexx.com
Slide 5: supermarket scale from www.racoindustries.com
© 2013 Tomas Bok
tbok@post.harvard.edu
Tuesday, May 28, 13

Contenu connexe

Tendances

The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...
The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...
The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...
Quantopian
 

Tendances (20)

"Enhancing Statistical Significance of Backtests" by Dr. Ernest Chan, Managin...
"Enhancing Statistical Significance of Backtests" by Dr. Ernest Chan, Managin..."Enhancing Statistical Significance of Backtests" by Dr. Ernest Chan, Managin...
"Enhancing Statistical Significance of Backtests" by Dr. Ernest Chan, Managin...
 
"Active Learning in Trading Algorithms" by David Fellah, Head of the EMEA Lin...
"Active Learning in Trading Algorithms" by David Fellah, Head of the EMEA Lin..."Active Learning in Trading Algorithms" by David Fellah, Head of the EMEA Lin...
"Active Learning in Trading Algorithms" by David Fellah, Head of the EMEA Lin...
 
Beware of Low Frequency Data by Ernie Chan, Managing Member, QTS Capital Mana...
Beware of Low Frequency Data by Ernie Chan, Managing Member, QTS Capital Mana...Beware of Low Frequency Data by Ernie Chan, Managing Member, QTS Capital Mana...
Beware of Low Frequency Data by Ernie Chan, Managing Member, QTS Capital Mana...
 
Algorithmic Trading
Algorithmic TradingAlgorithmic Trading
Algorithmic Trading
 
Dual Momentum Investing by Gary Antonacci QuantCon 2016
Dual Momentum Investing by Gary Antonacci QuantCon 2016Dual Momentum Investing by Gary Antonacci QuantCon 2016
Dual Momentum Investing by Gary Antonacci QuantCon 2016
 
DIY Quant Strategies on Quantopian
DIY Quant Strategies on QuantopianDIY Quant Strategies on Quantopian
DIY Quant Strategies on Quantopian
 
Algo trading
Algo tradingAlgo trading
Algo trading
 
The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...
The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...
The QuantCon Keynote: "Counter Trend Trading – Threat or Complement to Trend ...
 
"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha
"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha
"Fundamental Forecasts: Methods and Timing" by Vinesh Jha, CEO of ExtractAlpha
 
Being open (source) in the traditionally secretive field of quant finance.
Being open (source) in the traditionally secretive field of quant finance.Being open (source) in the traditionally secretive field of quant finance.
Being open (source) in the traditionally secretive field of quant finance.
 
"Is Momentum Still Relevant for Today’s Markets?" by Anthony Ng, Senior Lecturer
"Is Momentum Still Relevant for Today’s Markets?" by Anthony Ng, Senior Lecturer"Is Momentum Still Relevant for Today’s Markets?" by Anthony Ng, Senior Lecturer
"Is Momentum Still Relevant for Today’s Markets?" by Anthony Ng, Senior Lecturer
 
Order book dynamics in high frequency trading
Order book dynamics in high frequency tradingOrder book dynamics in high frequency trading
Order book dynamics in high frequency trading
 
"From Trading Strategy to Becoming an Industry Professional – How to Break in...
"From Trading Strategy to Becoming an Industry Professional – How to Break in..."From Trading Strategy to Becoming an Industry Professional – How to Break in...
"From Trading Strategy to Becoming an Industry Professional – How to Break in...
 
"Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C...
"Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C..."Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C...
"Deep Q-Learning for Trading" by Dr. Tucker Balch, Professor of Interactive C...
 
Intra-Day De Mark Plus Order Flow Indicator by Dr. Christopher Ting, SMU
  Intra-Day De Mark Plus Order Flow Indicator by Dr. Christopher Ting, SMU  Intra-Day De Mark Plus Order Flow Indicator by Dr. Christopher Ting, SMU
Intra-Day De Mark Plus Order Flow Indicator by Dr. Christopher Ting, SMU
 
"From Alpha Discovery to Portfolio Construction: Pitfalls and Solutions" by D...
"From Alpha Discovery to Portfolio Construction: Pitfalls and Solutions" by D..."From Alpha Discovery to Portfolio Construction: Pitfalls and Solutions" by D...
"From Alpha Discovery to Portfolio Construction: Pitfalls and Solutions" by D...
 
What we learned from running a quant crypto hedge fund
What we learned from running a quant crypto hedge fundWhat we learned from running a quant crypto hedge fund
What we learned from running a quant crypto hedge fund
 
Quantitative Trading
Quantitative TradingQuantitative Trading
Quantitative Trading
 
"Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ...
"Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ..."Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ...
"Don't Lose Your Shirt Trading Mean-Reversion" by Edith Mandel, Principal at ...
 
Combining the Best Stock Selection Factors by Patrick O'Shaughnessy at QuantC...
Combining the Best Stock Selection Factors by Patrick O'Shaughnessy at QuantC...Combining the Best Stock Selection Factors by Patrick O'Shaughnessy at QuantC...
Combining the Best Stock Selection Factors by Patrick O'Shaughnessy at QuantC...
 

En vedette

Finding Alpha from Stock Buyback Announcements in the Quantopian Research Pla...
Finding Alpha from Stock Buyback Announcements in the Quantopian Research Pla...Finding Alpha from Stock Buyback Announcements in the Quantopian Research Pla...
Finding Alpha from Stock Buyback Announcements in the Quantopian Research Pla...
Quantopian
 
Welcome to QuantCon 2015 by John “Fawce” Fawcett, Founder and CEO of Quantopian
Welcome to QuantCon 2015 by John “Fawce” Fawcett, Founder and CEO of QuantopianWelcome to QuantCon 2015 by John “Fawce” Fawcett, Founder and CEO of Quantopian
Welcome to QuantCon 2015 by John “Fawce” Fawcett, Founder and CEO of Quantopian
Quantopian
 
Self-Directed Investing by Akhil Lodha, Co-founder of Sliced Investing, and M...
Self-Directed Investing by Akhil Lodha, Co-founder of Sliced Investing, and M...Self-Directed Investing by Akhil Lodha, Co-founder of Sliced Investing, and M...
Self-Directed Investing by Akhil Lodha, Co-founder of Sliced Investing, and M...
Quantopian
 

En vedette (20)

Using Domain Expertise to Improve Text Analysis, Evan Schnidman, Founder and ...
Using Domain Expertise to Improve Text Analysis, Evan Schnidman, Founder and ...Using Domain Expertise to Improve Text Analysis, Evan Schnidman, Founder and ...
Using Domain Expertise to Improve Text Analysis, Evan Schnidman, Founder and ...
 
The Mobile Revolution and the Future of Modern Data Collection by Joe Reising...
The Mobile Revolution and the Future of Modern Data Collection by Joe Reising...The Mobile Revolution and the Future of Modern Data Collection by Joe Reising...
The Mobile Revolution and the Future of Modern Data Collection by Joe Reising...
 
The Genesis of an Order Type by Dan Aisen, Co-founder and Quantitative Develo...
The Genesis of an Order Type by Dan Aisen, Co-founder and Quantitative Develo...The Genesis of an Order Type by Dan Aisen, Co-founder and Quantitative Develo...
The Genesis of an Order Type by Dan Aisen, Co-founder and Quantitative Develo...
 
F P A
F P AF P A
F P A
 
Capm
CapmCapm
Capm
 
Finding Alpha from Stock Buyback Announcements in the Quantopian Research Pla...
Finding Alpha from Stock Buyback Announcements in the Quantopian Research Pla...Finding Alpha from Stock Buyback Announcements in the Quantopian Research Pla...
Finding Alpha from Stock Buyback Announcements in the Quantopian Research Pla...
 
Welcome to QuantCon 2015 by John “Fawce” Fawcett, Founder and CEO of Quantopian
Welcome to QuantCon 2015 by John “Fawce” Fawcett, Founder and CEO of QuantopianWelcome to QuantCon 2015 by John “Fawce” Fawcett, Founder and CEO of Quantopian
Welcome to QuantCon 2015 by John “Fawce” Fawcett, Founder and CEO of Quantopian
 
Crowd-sourced Alpha: The Search for the Holy Grail of Investing
 Crowd-sourced Alpha: The Search for the Holy Grail of Investing Crowd-sourced Alpha: The Search for the Holy Grail of Investing
Crowd-sourced Alpha: The Search for the Holy Grail of Investing
 
Self-Directed Investing by Akhil Lodha, Co-founder of Sliced Investing, and M...
Self-Directed Investing by Akhil Lodha, Co-founder of Sliced Investing, and M...Self-Directed Investing by Akhil Lodha, Co-founder of Sliced Investing, and M...
Self-Directed Investing by Akhil Lodha, Co-founder of Sliced Investing, and M...
 
Case Studies in Creating Quant Models from Large Scale Unstructured Text by S...
Case Studies in Creating Quant Models from Large Scale Unstructured Text by S...Case Studies in Creating Quant Models from Large Scale Unstructured Text by S...
Case Studies in Creating Quant Models from Large Scale Unstructured Text by S...
 
Beyond Semantic Analysis Utilizing Social Finance Data Sets to Improve Quanti...
Beyond Semantic Analysis Utilizing Social Finance Data Sets to Improve Quanti...Beyond Semantic Analysis Utilizing Social Finance Data Sets to Improve Quanti...
Beyond Semantic Analysis Utilizing Social Finance Data Sets to Improve Quanti...
 
A Vision for Quantitative Investing in the Data Economy by Michael Beal at Qu...
A Vision for Quantitative Investing in the Data Economy by Michael Beal at Qu...A Vision for Quantitative Investing in the Data Economy by Michael Beal at Qu...
A Vision for Quantitative Investing in the Data Economy by Michael Beal at Qu...
 
Trade Like a Chimp: Unleash Your Inner Primate by Andreas Clenow at QuantCon ...
Trade Like a Chimp: Unleash Your Inner Primate by Andreas Clenow at QuantCon ...Trade Like a Chimp: Unleash Your Inner Primate by Andreas Clenow at QuantCon ...
Trade Like a Chimp: Unleash Your Inner Primate by Andreas Clenow at QuantCon ...
 
L Pch10
L Pch10L Pch10
L Pch10
 
From Backtesting to Live Trading by Vesna Straser at QuantCon 2016
From Backtesting to Live Trading by Vesna Straser at QuantCon 2016From Backtesting to Live Trading by Vesna Straser at QuantCon 2016
From Backtesting to Live Trading by Vesna Straser at QuantCon 2016
 
Statistics - The Missing Link Between Technical Analysis and Algorithmic Trad...
Statistics - The Missing Link Between Technical Analysis and Algorithmic Trad...Statistics - The Missing Link Between Technical Analysis and Algorithmic Trad...
Statistics - The Missing Link Between Technical Analysis and Algorithmic Trad...
 
The Sustainable Active Investing Framework: Simple, but Not Easy by Wesley Gr...
The Sustainable Active Investing Framework: Simple, but Not Easy by Wesley Gr...The Sustainable Active Investing Framework: Simple, but Not Easy by Wesley Gr...
The Sustainable Active Investing Framework: Simple, but Not Easy by Wesley Gr...
 
Pairs Trading from NYC Algorithmic Trading Meetup November '13
Pairs Trading from NYC Algorithmic Trading Meetup November '13Pairs Trading from NYC Algorithmic Trading Meetup November '13
Pairs Trading from NYC Algorithmic Trading Meetup November '13
 
Market Timing, Big Data, and Machine Learning by Xiao Qiao at QuantCon 2016
Market Timing, Big Data, and Machine Learning by Xiao Qiao at QuantCon 2016Market Timing, Big Data, and Machine Learning by Xiao Qiao at QuantCon 2016
Market Timing, Big Data, and Machine Learning by Xiao Qiao at QuantCon 2016
 
Cml vs sml
Cml vs smlCml vs sml
Cml vs sml
 

Similaire à Modeling Transaction Costs for Algorithmic Strategies

Balancing quantitative models with common sense 2008
Balancing quantitative models with common sense 2008Balancing quantitative models with common sense 2008
Balancing quantitative models with common sense 2008
yamanote
 
Theory Of Constraints
Theory Of ConstraintsTheory Of Constraints
Theory Of Constraints
shawncarner
 
GPU Accelerated Backtesting and Machine Learning for Quant Trading Strategies
GPU Accelerated Backtesting and Machine Learning for Quant Trading StrategiesGPU Accelerated Backtesting and Machine Learning for Quant Trading Strategies
GPU Accelerated Backtesting and Machine Learning for Quant Trading Strategies
Daniel Egloff
 
Valuation Methods
Valuation MethodsValuation Methods
Valuation Methods
FITT
 
The Crisis And The Future Of Valuations
The Crisis And The Future Of ValuationsThe Crisis And The Future Of Valuations
The Crisis And The Future Of Valuations
pswinhoe
 
Session 3
Session 3Session 3
Session 3
thangv
 
Gamma Trade Options With John Netto (Interactive Brokers)
Gamma Trade Options With John Netto (Interactive Brokers)Gamma Trade Options With John Netto (Interactive Brokers)
Gamma Trade Options With John Netto (Interactive Brokers)
johnnetto
 

Similaire à Modeling Transaction Costs for Algorithmic Strategies (20)

MMT-04The-Algorithmic-Trading-Process.pdf
MMT-04The-Algorithmic-Trading-Process.pdfMMT-04The-Algorithmic-Trading-Process.pdf
MMT-04The-Algorithmic-Trading-Process.pdf
 
10.1.1.129.1408
10.1.1.129.140810.1.1.129.1408
10.1.1.129.1408
 
Algorithmic Trading: an Overview
Algorithmic Trading: an Overview Algorithmic Trading: an Overview
Algorithmic Trading: an Overview
 
Balancing quantitative models with common sense 2008
Balancing quantitative models with common sense 2008Balancing quantitative models with common sense 2008
Balancing quantitative models with common sense 2008
 
Mozer Methods Of Valuation
Mozer Methods Of ValuationMozer Methods Of Valuation
Mozer Methods Of Valuation
 
Ritesh Sheth Pricing Top Right Quadrant 102810
Ritesh Sheth Pricing Top Right Quadrant 102810Ritesh Sheth Pricing Top Right Quadrant 102810
Ritesh Sheth Pricing Top Right Quadrant 102810
 
Theory Of Constraints
Theory Of ConstraintsTheory Of Constraints
Theory Of Constraints
 
Presentation Vendavo Event Theo Slaats
Presentation Vendavo Event Theo SlaatsPresentation Vendavo Event Theo Slaats
Presentation Vendavo Event Theo Slaats
 
How to design quant trading strategies using “R”?
How to design quant trading strategies using “R”?How to design quant trading strategies using “R”?
How to design quant trading strategies using “R”?
 
Pricing Strategies
Pricing StrategiesPricing Strategies
Pricing Strategies
 
demand forecasting
demand forecastingdemand forecasting
demand forecasting
 
GPU Accelerated Backtesting and Machine Learning for Quant Trading Strategies
GPU Accelerated Backtesting and Machine Learning for Quant Trading StrategiesGPU Accelerated Backtesting and Machine Learning for Quant Trading Strategies
GPU Accelerated Backtesting and Machine Learning for Quant Trading Strategies
 
Valuation Methods
Valuation MethodsValuation Methods
Valuation Methods
 
Adaptix_2013
Adaptix_2013Adaptix_2013
Adaptix_2013
 
The Crisis And The Future Of Valuations
The Crisis And The Future Of ValuationsThe Crisis And The Future Of Valuations
The Crisis And The Future Of Valuations
 
Algorithmic trading
Algorithmic tradingAlgorithmic trading
Algorithmic trading
 
Session 3
Session 3Session 3
Session 3
 
Chapter 3_OM
Chapter 3_OMChapter 3_OM
Chapter 3_OM
 
Gamma Trade Options With John Netto (Interactive Brokers)
Gamma Trade Options With John Netto (Interactive Brokers)Gamma Trade Options With John Netto (Interactive Brokers)
Gamma Trade Options With John Netto (Interactive Brokers)
 
The price is right - Tomislav Krizan
The price is right - Tomislav KrizanThe price is right - Tomislav Krizan
The price is right - Tomislav Krizan
 

Plus de Quantopian

"From Insufficient Economic data to Economic Big Data – How Trade Data is red...
"From Insufficient Economic data to Economic Big Data – How Trade Data is red..."From Insufficient Economic data to Economic Big Data – How Trade Data is red...
"From Insufficient Economic data to Economic Big Data – How Trade Data is red...
Quantopian
 

Plus de Quantopian (20)

Stauth common pitfalls_stock_market_modeling_pqtc_fall2018
Stauth common pitfalls_stock_market_modeling_pqtc_fall2018Stauth common pitfalls_stock_market_modeling_pqtc_fall2018
Stauth common pitfalls_stock_market_modeling_pqtc_fall2018
 
Tearsheet feedback webinar 10.10.18
Tearsheet feedback webinar 10.10.18Tearsheet feedback webinar 10.10.18
Tearsheet feedback webinar 10.10.18
 
"Three Dimensional Time: Working with Alternative Data" by Kathryn Glowinski,...
"Three Dimensional Time: Working with Alternative Data" by Kathryn Glowinski,..."Three Dimensional Time: Working with Alternative Data" by Kathryn Glowinski,...
"Three Dimensional Time: Working with Alternative Data" by Kathryn Glowinski,...
 
"Alpha from Alternative Data" by Emmett Kilduff, Founder and CEO of Eagle Alpha
"Alpha from Alternative Data" by Emmett Kilduff,  Founder and CEO of Eagle Alpha"Alpha from Alternative Data" by Emmett Kilduff,  Founder and CEO of Eagle Alpha
"Alpha from Alternative Data" by Emmett Kilduff, Founder and CEO of Eagle Alpha
 
"Supply Chain Earnings Diffusion" by Josh Holcroft, Head of Quantitative Rese...
"Supply Chain Earnings Diffusion" by Josh Holcroft, Head of Quantitative Rese..."Supply Chain Earnings Diffusion" by Josh Holcroft, Head of Quantitative Rese...
"Supply Chain Earnings Diffusion" by Josh Holcroft, Head of Quantitative Rese...
 
“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...
“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...
“Real Time Machine Learning Architecture and Sentiment Analysis Applied to Fi...
 
“Market Insights Through the Lens of a Risk Model” by Olivier d'Assier, Head ...
“Market Insights Through the Lens of a Risk Model” by Olivier d'Assier, Head ...“Market Insights Through the Lens of a Risk Model” by Olivier d'Assier, Head ...
“Market Insights Through the Lens of a Risk Model” by Olivier d'Assier, Head ...
 
"Maximize Alpha with Systematic Factor Testing" by Cheng Peng, Software Engin...
"Maximize Alpha with Systematic Factor Testing" by Cheng Peng, Software Engin..."Maximize Alpha with Systematic Factor Testing" by Cheng Peng, Software Engin...
"Maximize Alpha with Systematic Factor Testing" by Cheng Peng, Software Engin...
 
"How to Run a Quantitative Trading Business in China with Python" by Xiaoyou ...
"How to Run a Quantitative Trading Business in China with Python" by Xiaoyou ..."How to Run a Quantitative Trading Business in China with Python" by Xiaoyou ...
"How to Run a Quantitative Trading Business in China with Python" by Xiaoyou ...
 
"Deep Reinforcement Learning for Optimal Order Placement in a Limit Order Boo...
"Deep Reinforcement Learning for Optimal Order Placement in a Limit Order Boo..."Deep Reinforcement Learning for Optimal Order Placement in a Limit Order Boo...
"Deep Reinforcement Learning for Optimal Order Placement in a Limit Order Boo...
 
"Making the Grade: A Look Inside the Algorithm Evaluation Process" by Dr. Jes...
"Making the Grade: A Look Inside the Algorithm Evaluation Process" by Dr. Jes..."Making the Grade: A Look Inside the Algorithm Evaluation Process" by Dr. Jes...
"Making the Grade: A Look Inside the Algorithm Evaluation Process" by Dr. Jes...
 
"Building Diversified Portfolios that Outperform Out-of-Sample" by Dr. Marcos...
"Building Diversified Portfolios that Outperform Out-of-Sample" by Dr. Marcos..."Building Diversified Portfolios that Outperform Out-of-Sample" by Dr. Marcos...
"Building Diversified Portfolios that Outperform Out-of-Sample" by Dr. Marcos...
 
"From Insufficient Economic data to Economic Big Data – How Trade Data is red...
"From Insufficient Economic data to Economic Big Data – How Trade Data is red..."From Insufficient Economic data to Economic Big Data – How Trade Data is red...
"From Insufficient Economic data to Economic Big Data – How Trade Data is red...
 
"Machine Learning Approaches to Regime-aware Portfolio Management" by Michael...
"Machine Learning Approaches to Regime-aware Portfolio Management" by Michael..."Machine Learning Approaches to Regime-aware Portfolio Management" by Michael...
"Machine Learning Approaches to Regime-aware Portfolio Management" by Michael...
 
"Quantum Hierarchical Risk Parity - A Quantum-Inspired Approach to Portfolio ...
"Quantum Hierarchical Risk Parity - A Quantum-Inspired Approach to Portfolio ..."Quantum Hierarchical Risk Parity - A Quantum-Inspired Approach to Portfolio ...
"Quantum Hierarchical Risk Parity - A Quantum-Inspired Approach to Portfolio ...
 
"Snake Oil, Swamp Land, and Factor-Based Investing" by Gary Antonacci, author...
"Snake Oil, Swamp Land, and Factor-Based Investing" by Gary Antonacci, author..."Snake Oil, Swamp Land, and Factor-Based Investing" by Gary Antonacci, author...
"Snake Oil, Swamp Land, and Factor-Based Investing" by Gary Antonacci, author...
 
"Bayesian Deep Learning: Dealing with Uncertainty and Non-Stationarity" by Dr...
"Bayesian Deep Learning: Dealing with Uncertainty and Non-Stationarity" by Dr..."Bayesian Deep Learning: Dealing with Uncertainty and Non-Stationarity" by Dr...
"Bayesian Deep Learning: Dealing with Uncertainty and Non-Stationarity" by Dr...
 
"Trading Strategies That Are Designed Not Fitted" by Robert Carver, Independe...
"Trading Strategies That Are Designed Not Fitted" by Robert Carver, Independe..."Trading Strategies That Are Designed Not Fitted" by Robert Carver, Independe...
"Trading Strategies That Are Designed Not Fitted" by Robert Carver, Independe...
 
"On the Bayesian Interpretation of Black–Litterman" by Dr. Gordon Ritter, Sen...
"On the Bayesian Interpretation of Black–Litterman" by Dr. Gordon Ritter, Sen..."On the Bayesian Interpretation of Black–Litterman" by Dr. Gordon Ritter, Sen...
"On the Bayesian Interpretation of Black–Litterman" by Dr. Gordon Ritter, Sen...
 
"Correlated Volatility Shocks" by Dr. Xiao Qiao, Researcher at SummerHaven In...
"Correlated Volatility Shocks" by Dr. Xiao Qiao, Researcher at SummerHaven In..."Correlated Volatility Shocks" by Dr. Xiao Qiao, Researcher at SummerHaven In...
"Correlated Volatility Shocks" by Dr. Xiao Qiao, Researcher at SummerHaven In...
 

Dernier

Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
UXDXConf
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Peter Udo Diehl
 

Dernier (20)

A Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System StrategyA Business-Centric Approach to Design System Strategy
A Business-Centric Approach to Design System Strategy
 
AI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří KarpíšekAI revolution and Salesforce, Jiří Karpíšek
AI revolution and Salesforce, Jiří Karpíšek
 
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
Choosing the Right FDO Deployment Model for Your Application _ Geoffrey at In...
 
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
Secure Zero Touch enabled Edge compute with Dell NativeEdge via FDO _ Brad at...
 
PLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. StartupsPLAI - Acceleration Program for Generative A.I. Startups
PLAI - Acceleration Program for Generative A.I. Startups
 
UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2UiPath Test Automation using UiPath Test Suite series, part 2
UiPath Test Automation using UiPath Test Suite series, part 2
 
Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024Top 10 Symfony Development Companies 2024
Top 10 Symfony Development Companies 2024
 
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
Integrating Telephony Systems with Salesforce: Insights and Considerations, B...
 
The Metaverse: Are We There Yet?
The  Metaverse:    Are   We  There  Yet?The  Metaverse:    Are   We  There  Yet?
The Metaverse: Are We There Yet?
 
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdfWhere to Learn More About FDO _ Richard at FIDO Alliance.pdf
Where to Learn More About FDO _ Richard at FIDO Alliance.pdf
 
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptxIOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
IOS-PENTESTING-BEGINNERS-PRACTICAL-GUIDE-.pptx
 
ECS 2024 Teams Premium - Pretty Secure
ECS 2024   Teams Premium - Pretty SecureECS 2024   Teams Premium - Pretty Secure
ECS 2024 Teams Premium - Pretty Secure
 
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
ASRock Industrial FDO Solutions in Action for Industrial Edge AI _ Kenny at A...
 
Structuring Teams and Portfolios for Success
Structuring Teams and Portfolios for SuccessStructuring Teams and Portfolios for Success
Structuring Teams and Portfolios for Success
 
Designing for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at ComcastDesigning for Hardware Accessibility at Comcast
Designing for Hardware Accessibility at Comcast
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdfHow Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
How Red Hat Uses FDO in Device Lifecycle _ Costin and Vitaliy at Red Hat.pdf
 
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo DiehlFuture Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
Future Visions: Predictions to Guide and Time Tech Innovation, Peter Udo Diehl
 
Speed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in MinutesSpeed Wins: From Kafka to APIs in Minutes
Speed Wins: From Kafka to APIs in Minutes
 
Introduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG EvaluationIntroduction to Open Source RAG and RAG Evaluation
Introduction to Open Source RAG and RAG Evaluation
 

Modeling Transaction Costs for Algorithmic Strategies

  • 1. Modeling Transaction Costs for Algorithmic Strategies Tomas Bok tbok@post.harvard.edu Boston Algorithmic Trading Meetup April 24, 2013 © 2013 Tomas Bok Tuesday, May 28, 13
  • 2. Taxonomy of T-Costs Explicit Costs Broker Commissions Fees & Taxes Ticket Charges Benchmark Slippage Opportunity Cost } mostly independent of execution style } highly dependent on execution style Tuesday, May 28, 13
  • 3. Algorithmic Trading Stack Smart Order Router Exchanges, ECNs, & Dark Pools Direct Orders Execution Algorithm Investment Strategy Parent Orders Child Orders Tuesday, May 28, 13
  • 5. Factors that Drive Slippage Small Orders: Large Orders: slippage is primarily due to market impact slippage is primarily due to spread Price Action affects all orders + luck 𝛼 decay Tuesday, May 28, 13
  • 6. Forecasting Slippage timedecision benchmark price }slippage price average price order size and side execution horizon stock-specific liquidity details (volume, spread, volatility, ...) price action (over trade horizon) Typical Model Inputs Tuesday, May 28, 13
  • 7. Buy 200 DIS over 1m (1% participation) Buy 2,000 DIS over 1m (10% participation) Buy 20,000 DIS over 10m (10% participation) Buy 120,000 DIS over 1h (10% participation) 0.9 bps 0.9 - 1.5 bps 2.9 bps 8.8 bps Sample Slippage Forecasts Buy X shares of DIS at 10:00am Source: ITG, Inc. Tuesday, May 28, 13
  • 8. Slippage Forecasting Methods timedecision benchmark price }slippage price average price Generate point-estimate of slippage Method A: Equation-Based Generate bottom-up slippage estimate based on individually- simulated fills Method B: Simulate Fills Tuesday, May 28, 13
  • 9. Slippage Forecasting Methods Execution Algorithm Investment Strategy Parent Orders {Method A Simulation Scope Child Orders {Method B Simulation Scope Parent Orders Execution Algorithm Investment Strategy Generate point-estimate of slippage Method A: Equation-Based Generate bottom-up slippage estimate based on individually- simulated fills Method B: Simulate Fills Tuesday, May 28, 13
  • 10. Method A: Equation-Based Avg Price = Baseline Price +/- [ f(spread) + g(size,...) ] Last Price Next Price Bid-Ask Midpoint Baseline Price ✓ 4 bps f(typical spread) f(starting spread) f(TWA spread) Spread Cost ✓ ✓ 0 g(size, horizon, volume, volatility) Impact ✓ Horizon Close Horizon VWAP Horizon TWA-Mid ✓ ✓ ✓ [basic f( ) = 0.5 x spread] Tuesday, May 28, 13
  • 11. Method B: Simulate Fills 1. Generate stream of child orders: { time, size } 2. Generate stream of simulated fills: { size, price } 3. Avg Price = VWAP of fills Ability to create child orders Tick data Limit order model Market order model Impact memory function Requirementssizei x pricei sizei ∑i ∑i Tuesday, May 28, 13
  • 12. Defining Strategy Timescale Strategy Holding Period milliseconds seconds minutes hours days weeks months Intraday Alpha HP = minutes to hours Expected profit: ≤1 x spread Alpha decay = fast Trading concern: ‘gas pedal’ High Frequency Trading HP = milliseconds to minutes Expected profit: .05 -.10 ¢ Alpha decay = immediate Trading concern: latency Low Frequency Quant HP = days to months Expected profit: ≥1% Alpha decay = slow Trading concern: liquidity Tuesday, May 28, 13
  • 13. Slippage Model Selection Low Freq Method A (simulate parent order fills) Use the data you have available Be conservative Intraday Method B (simulate child order fills) Bring execution algo into backtest ...or break into 2 step process HFT Method B+ (simulate direct order fills) Incorporate Level 2 data Incumbents may find it easier to live-test Tuesday, May 28, 13
  • 14. Keeping It Simple Focusing on ‘slippage-safe’ strategies 1. Avoid strategies that are overly cost-sensitive: intraday holding periods expected paper PNL ≤ 2 x spread only profitable with optimistic cost assumptions rapid alpha decay 2. Stick to a liquid stock universe 3. Cap order sizes (≤ 25% 1-minute participation rate) 4. Assume at least a minute to execute orders Tuesday, May 28, 13
  • 15. Explicit Costs (US Equities) Broker Commission Taxes & Fees Ticket Charges TOTAL (1-way) .05 - .20 cents + net fees (.06¢) 0.5 - 1.0 cents ~.05 cents included NA $1+ (or NA) .15 - .30 cents 1 cent + tickets Low FreqIntradayHFT Tuesday, May 28, 13
  • 16. Opportunity Cost timedecision price price limit }+25 bps Opportunity cost: effect of unexecuted shares on PNL If you plan to trade with price limits or conditional execution strategies, backtest accordingly Tuesday, May 28, 13
  • 17. Golden Rules 1. Think about transaction costs early and often 2. A simple cost framework is fine as long as you make conservative assumptions and “stay on the path” 3. To run more cost-sensitive strategies, be prepared to invest in a more sophisticated t-cost framework 4. Account for all three kinds of transaction costs 5. Backtest at full scale Tuesday, May 28, 13
  • 18. Image credits Slides 3, 9: rack servers from dell.com; order tickets from www.silexx.com Slide 5: supermarket scale from www.racoindustries.com © 2013 Tomas Bok tbok@post.harvard.edu Tuesday, May 28, 13