Optimal Execution (the Almgren–Chriss Framework)
Choosing a trade schedule that balances the cost of trading fast against the risk of trading slow.
Leads to: 16.5 turns the dealer’s side into a market-making problem with inventory risk.
Learning Objectives
Click a status chip to cycle: Not started → In progress → Studied → Practiced → Needs review → Mastered.
- State the optimal-execution problem and the Almgren–Chriss impact-versus-risk trade-off.
- Write the mean–variance cost functional and its permanent/temporary impact and variance terms.
- Derive the efficient frontier of strategies parameterized by risk aversion.
- Show that the optimal trajectory is exponential and reduces to TWAP as risk aversion \(\to0\).
- Implement the Almgren–Chriss trajectory and expected cost, and interpret the urgency parameter.
Key Vocabulary
- Optimal execution
- Choosing how to split a parent order over time to minimize expected cost plus a penalty on its risk.
- Almgren–Chriss
- The canonical mean–variance execution model with linear permanent/temporary impact and price risk.
- Trading trajectory
- The planned remaining holdings \(x_k\) (or trade sizes \(n_k\)) over the execution horizon.
- Timing risk
- Variance of cost from price moves while the position is still open; grows the slower you trade.
- Risk aversion \(\lambda\)
- The weight on cost variance; larger \(\lambda\) means more urgency (faster liquidation).
- Efficient frontier
- The set of trajectories with minimal expected cost for each level of cost variance.
- TWAP
- Time-weighted average price: trade equal amounts each interval; the \(\lambda\to0\) Almgren–Chriss solution.
Intuition & Motivation
Setup
Liquidate \(X\) shares over \(N\) intervals of length \(\tau=T/N\). Let \(x_k\) be shares remaining after step \(k\) (so \(x_0=X,\ x_N=0\)) and \(n_k=x_{k-1}-x_k\) the shares sold in step \(k\). With permanent impact \(\gamma\), temporary impact \(\eta\), and price volatility \(\sigma\), the expected shortfall and its variance are
The permanent term \(\tfrac12\gamma X^2\) is schedule-independent (it depends only on total size). The temporary term \(\sum \eta n_k^2/\tau\) punishes trading fast; the variance term \(\sigma^2\sum\tau x_k^2\) punishes holding inventory long. Everything interesting is the tension between the last two.
The mean–variance objective and the frontier
Choose the trajectory to minimize
As \(\lambda\) sweeps from \(0\) to \(\infty\), the optimal trajectories trace the efficient frontier: each is the minimum-variance strategy for its expected cost (or vice versa). \(\lambda=0\) is the risk-neutral trader who only minimizes impact; large \(\lambda\) is the risk-averse trader who liquidates fast to cut exposure.
The optimal trajectory is exponential
Minimizing the quadratic (16.8) gives a linear recursion whose solution is a hyperbolic/exponential decay of the holdings:
The urgency \(\kappa\) grows with risk aversion \(\lambda\) and volatility \(\sigma\), and shrinks with temporary impact \(\eta\): more risk or vol → liquidate faster; more impact → stretch out. Two limits are illuminating:
- \(\lambda\to0\) (risk-neutral): \(\kappa\to0\) and \(x_k\to X(1-t_k/T)\) - a straight line, i.e. TWAP (equal slices).
- \(\lambda\to\infty\) (very urgent): \(\kappa\to\infty\) - front-load almost everything into the first interval to eliminate exposure.
Interactive: execution simulator
Compare front-loaded, TWAP, and back-loaded schedules for the same parent order and see the realized cost distribution.
Interactive: Almgren–Chriss trajectory and expected cost
- Believing there is one optimal schedule: the output is an efficient frontier; you must choose \(\lambda\).
- Setting \(\lambda=0\) by default: that ignores timing risk and gives TWAP, which can be far too slow for a risky or alpha-bearing order.
- Forgetting permanent impact is schedule-independent here: it cannot be optimized away by re-timing (in the linear model).
- Treating the frontier as static: volatility, impact, and alpha change intraday, so the optimal urgency changes too.
- Map \(\lambda\) to an intuitive urgency/half-life; clients understand ‘finish 63% by time \(1/\kappa\)’ better than a risk-aversion number.
- Add an alpha/drift term when the order carries a signal: expected price drift tilts the schedule (front-load to capture decaying alpha).
- Re-solve intraday as volume and volatility update; static schedules leak P&L in changing conditions.
- Benchmark realized execution against the model’s predicted cost and variance to calibrate \(\eta,\gamma\).
Knowledge Check
Practical Exercise
You must liquidate \(X=1{,}000{,}000\) shares over one day. (a) Write the mean–variance objective you are minimizing and identify which term pushes you to trade fast and which to trade slow. (b) Explain qualitatively how the optimal schedule shifts if intraday volatility doubles. (c) Your desk wants ‘the optimal schedule.’ Explain why that request is under-specified.
(a) Minimize \(\E[\mathcal{C}]+\lambda\Var[\mathcal{C}]=\big(\tfrac12\gamma X^2+\sum_k\tfrac{\eta}{\tau}n_k^2\big)+\lambda\sigma^2\sum_k\tau x_k^2\). The temporary-impact term \(\sum \eta n_k^2/\tau\) grows when trades \(n_k\) are large, so it pushes you to trade slowly (spread the \(n_k\)); the variance term \(\lambda\sigma^2\sum\tau x_k^2\) grows when holdings \(x_k\) stay large, so it pushes you to trade fast (shed inventory).
(b) Doubling \(\sigma\) multiplies the urgency \(\kappa=\sqrt{\lambda\sigma^2/\eta}\) by \(2\), bowing the trajectory more toward the origin: you front-load, liquidating faster to reduce exposure to the now-riskier price, accepting more temporary impact in exchange.
(c) ‘The optimal schedule’ is under-specified because optimality is only defined given a risk aversion \(\lambda\) (a point on the efficient frontier). Without stating how much timing-risk variance the desk will trade for lower expected cost - or an equivalent urgency/deadline - every trajectory from TWAP to immediate is ‘optimal’ for some \(\lambda\).
Lesson Summary
Formula Sheet Additions
- Did I state a risk aversion \(\lambda\) (or urgency) rather than claim one optimal schedule?
- Did I separate schedule-independent permanent impact from the optimizable terms?
- Did I let \(\kappa\) respond to volatility/impact correctly?
- Did I consider alpha/drift if the order carries a signal?
Retrieval Practice
Close the lesson and answer from memory before checking. This is deliberate, effortful recall - the single highest-yield study action.
A: Trade fast to reduce timing risk vs trade slow to reduce market impact; minimize \(\E[\mathcal{C}]+\lambda\Var[\mathcal{C}]\) over the trading trajectory.
A: An exponential/hyperbolic decay \(x_k\propto\sinh(\kappa(T-t_k))\); \(\lambda\to0\) gives a straight-line TWAP, \(\lambda\to\infty\) gives near-immediate liquidation.
A: It increases with risk aversion and volatility (trade faster) and decreases with temporary impact \(\eta\) (trade slower).
Flashcards
Click to flip. These feed the site-wide spaced-repetition queue.
Completion Checklist
- I can explain the core ideas in my own words
- I worked the derivations/examples by hand
- I completed the interactive workbench(es)
- I passed the knowledge check
Source References
This lesson synthesizes and paraphrases concepts from the sources below. No copyrighted text, problem sets, or solutions are reproduced. Return to the originals for full depth.
- Algorithmic and High-Frequency Trading (Cartea, Jaimungal & Penalva, 2015) current - Ch. 6–7 - Ch. 6–7: the Almgren–Chriss optimal-execution model, efficient frontier, and exponential trajectories.
- Stochastic Calculus for Finance II (Steven Shreve, 2004) foundational - Ch. 5–6 - Ch. 5–6: stochastic control and mean–variance objectives in continuous time.
- Time Series Analysis (James Hamilton, 1994) foundational - Ch. 2 - Ch. 2: variance of accumulated price changes underlying the timing-risk term.