SlideShare ist ein Scribd-Unternehmen logo
1 von 18
Downloaden Sie, um offline zu lesen
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

Weitere ähnliche Inhalte

Was ist angesagt?

"Quantitative Trading as a Mathematical Science" by Dr. Haksun Li, Founder an...
"Quantitative Trading as a Mathematical Science" by Dr. Haksun Li, Founder an..."Quantitative Trading as a Mathematical Science" by Dr. Haksun Li, Founder an...
"Quantitative Trading as a Mathematical Science" by Dr. Haksun Li, Founder an...
Quantopian
 
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
 
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
 

Was ist angesagt? (20)

"Quantitative Trading as a Mathematical Science" by Dr. Haksun Li, Founder an...
"Quantitative Trading as a Mathematical Science" by Dr. Haksun Li, Founder an..."Quantitative Trading as a Mathematical Science" by Dr. Haksun Li, Founder an...
"Quantitative Trading as a Mathematical Science" by Dr. Haksun Li, Founder an...
 
Simulating HFT for Low-Latency Investors - The Investor’s View (Robert Almgren)
Simulating HFT for Low-Latency Investors - The Investor’s View (Robert Almgren)Simulating HFT for Low-Latency Investors - The Investor’s View (Robert Almgren)
Simulating HFT for Low-Latency Investors - The Investor’s View (Robert Almgren)
 
"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...
 
"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
 
10 Ways Backtests Lie by Tucker Balch
10 Ways Backtests Lie by Tucker Balch10 Ways Backtests Lie by Tucker Balch
10 Ways Backtests Lie by Tucker Balch
 
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 ...
 
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...
 
Should You Build Your Own Backtester? by Michael Halls-Moore at QuantCon 2016
Should You Build Your Own Backtester? by Michael Halls-Moore at QuantCon 2016Should You Build Your Own Backtester? by Michael Halls-Moore at QuantCon 2016
Should You Build Your Own Backtester? by Michael Halls-Moore at QuantCon 2016
 
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...
 
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...
 
"Quant Trading for a Living – Lessons from a Life in the Trenches" by Andreas...
"Quant Trading for a Living – Lessons from a Life in the Trenches" by Andreas..."Quant Trading for a Living – Lessons from a Life in the Trenches" by Andreas...
"Quant Trading for a Living – Lessons from a Life in the Trenches" by Andreas...
 
"A Framework-Based Approach to Building Quantitative Trading Systems" by Dr. ...
"A Framework-Based Approach to Building Quantitative Trading Systems" by Dr. ..."A Framework-Based Approach to Building Quantitative Trading Systems" by Dr. ...
"A Framework-Based Approach to Building Quantitative Trading Systems" by Dr. ...
 
"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 ...
 
Profit from trapped traders with 2 simple setups
Profit from trapped traders with 2 simple setupsProfit from trapped traders with 2 simple setups
Profit from trapped traders with 2 simple setups
 
"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...
 
"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...
 
Overview of price action trading
Overview of price action tradingOverview of price action trading
Overview of price action trading
 
A day in the life of a trader
A day in the life of a traderA day in the life of a trader
A day in the life of a trader
 
"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...
 
"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...
 

Andere mochten auch

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
 

Andere mochten auch (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
 
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...
 
Peculiarities of Volatilities by Ernest Chan at QuantCon 2016
Peculiarities of Volatilities by Ernest Chan at QuantCon 2016Peculiarities of Volatilities by Ernest Chan at QuantCon 2016
Peculiarities of Volatilities by Ernest Chan at QuantCon 2016
 
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
 
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
 
DIY Quant Strategies on Quantopian
DIY Quant Strategies on QuantopianDIY Quant Strategies on Quantopian
DIY Quant Strategies on Quantopian
 
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
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Mehr von 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
 

Mehr von Quantopian (20)

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.
 
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 ...
 
"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...
 
"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 ...
 
"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...
 
"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...
 
"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...
 

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024Manulife - Insurer Innovation Award 2024
Manulife - Insurer Innovation Award 2024
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?A Year of the Servo Reboot: Where Are We Now?
A Year of the Servo Reboot: Where Are We Now?
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
Deploy with confidence: VMware Cloud Foundation 5.1 on next gen Dell PowerEdg...
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 

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