Introduction¶
Chapter Execution fundamentals established the economic motivations and practical vocabulary of algorithmic execution: why large orders generate market impact, how different benchmarks measure execution quality, and how the tension between market impact and timing risk creates the trader’s dilemma. This chapter builds on that foundation by providing the mathematical theory that underlies optimal execution algorithms. The central question is: given a large order to execute over a fixed time horizon, what sequence of child order sizes minimises the expected cost of execution for a given level of risk tolerance?
Answering this question rigorously requires casting execution as an optimal control problem — a framework developed in chapter Stochastic Optimal Control. The agent’s state is the remaining inventory , the control is the trading rate , and the cost functional combines expected market impact with the variance of the execution cost. The solution yields a complete characterisation of the efficient frontier of execution strategies, parametrised by risk aversion. This frontier generalises naturally to multiple assets traded simultaneously, where correlations between price movements allow natural hedging during execution.
The chapter is organised as follows. Section Designing execution algorithms formalises the execution problem as an optimal control problem, introducing the price dynamics, market impact model, and cost functional. Section The Almgren–Chriss model derives the Almgren–Chriss solution Almgren & Chriss, 2000: the optimal continuous-time trajectory, its efficient frontier, and its discrete-time implementation. Section Implementation Shortfall target discusses the IS algorithm and the connection to the Bertsimas–Lo result Bertsimas & Lo, 1998. Section VWAP target develops the theory of VWAP-optimal execution, from the static proportional schedule through the dynamic adaptation of Busseti & Boyd (2015). Section Portfolio execution extends the framework to portfolio execution with cross-asset impact and natural hedging.
Designing execution algorithms¶
The execution problem as an optimal control problem¶
Consider an agent who must buy (or sell) a total of shares of an asset over a time horizon . We formulate this as a continuous-time optimal control problem with state (remaining inventory) and control (trading rate):
State variable: = number of shares still to be executed at time , with and the constraint (full execution by time ).
Control variable: = rate of execution (shares per unit time). The state evolves as
so that the constraint is equivalent to .
The trader is liquidating (selling) throughout, so and is non-increasing.
Price dynamics¶
Absent any trading, the mid-price follows a diffusion process. In the Almgren–Chriss framework Almgren & Chriss, 2000, the price is modelled as an arithmetic Brownian motion modified by the permanent market impact of the trader’s own activity:
where is the price volatility (constant for simplicity), is a standard Wiener process, and is the permanent impact function — the irreversible price depression caused by the trader’s sell flow. The price process is a martingale in the absence of trading (), consistent with the efficient market hypothesis, and is depressed by the accumulated permanent impact of all prior trading.
The choice (linear permanent impact) is the primary tractable case, yielding a clean closed-form solution. More general impact functions can be handled variationally but typically require numerical methods.
Linear market impact model¶
When shares are sold per unit time, the actual execution price received for each share is not but adjusted downward by the temporary market impact — the immediate price concession needed to absorb the flow against the current order book:
where is the temporary impact function. The key modelling choice, motivated in chapter Execution fundamentals, is the linear temporary impact model:
where is the temporary impact coefficient (units: price per trading rate). This means the execution price is depressed by relative to the prevailing mid-price, in addition to the permanent depression already reflected in . The temporary impact is transient: it disappears as soon as the order flow stops.
The two-component linear model (linear permanent and linear temporary ) is less empirically accurate than the square-root model for large orders but is the standard in theoretical work because it yields analytical closed-form solutions. It is the model used by Almgren and Chriss Almgren & Chriss, 2000 and Bertsimas and Lo Bertsimas & Lo, 1998.
Cost functional: implementation shortfall¶
The total proceeds from selling shares are:
The implementation shortfall (IS) — the cost of execution relative to the paper portfolio value at the arrival price — is:
Since , we can write , so:
The IS is a random variable whose distribution depends on the price path. The objective is to choose the trading schedule to minimise a risk-adjusted expected cost. Following Almgren and Chriss Almgren & Chriss, 2000, the objective is the mean–variance combination:
where is the risk-aversion parameter. This corresponds to minimising the expected cost of a risk-averse agent with CARA utility, as shown in Almgren & Chriss, 2000.
The Almgren–Chriss model¶
Expected implementation shortfall¶
Using the linear permanent impact and linear temporary impact , the expected IS can be computed explicitly. First, integrating by parts:
This shows that the permanent impact cost is path-independent for linear permanent impact: it equals the same constant regardless of how the order is scheduled. This is a key property of linear permanent impact that makes the optimisation tractable — only the temporary impact term and the variance term depend on the schedule.
Taking expectations of the IS (the Brownian term has zero mean):
The first term is the expected temporary impact cost, which is minimised by spreading the order as slowly as possible (reducing by smoothing). The second term is fixed.
Variance of implementation shortfall¶
The stochastic part of the IS arises from the Brownian term . The variance of the IS is:
Using the stochastic integral result and integration by parts:
This has a natural interpretation: the variance of execution cost is proportional to the sum of squared inventory exposures . Holding a large unexecuted inventory for a long time exposes the trader to large timing risk; reducing the inventory quickly cuts this exposure at the cost of higher impact.
The mean–variance objective¶
Since the permanent impact term is constant across strategies, the mean–variance objective reduces to:
where we have written . This is a deterministic variational problem in the trajectory : minimise a functional of the form subject to fixed boundary conditions and , where:
The stochastic nature of the problem has been fully absorbed into the variance term , leaving a classical calculus-of-variations problem amenable to the Euler–Lagrange approach.
Optimal trajectory¶
Applying the Euler–Lagrange equation from chapter Stochastic Optimal Control (section The variational approach) to the Lagrangian :
This yields the second-order linear ODE:
with boundary conditions and . The general solution is . Applying boundary conditions:
:
:
Substituting and simplifying using the hyperbolic identity :
The optimal trading rate is:
This is a monotonically decreasing function of time: the strategy sells most aggressively at and tapers towards . The degree of front-loading is governed by : higher risk aversion (larger ) or higher volatility (larger ) relative to temporary impact cost (smaller ) produces more aggressive front-loading.
Properties of the optimal solution¶
Risk-neutral limit (, ): Using as , the optimal trajectory becomes:
This is the TWAP schedule: sell at a constant rate throughout the horizon. The risk-neutral agent cares only about expected impact and not timing risk, and the impact-minimising strategy is to distribute the order uniformly to avoid quadratically costly bursts. This recovers the Bertsimas–Lo result Bertsimas & Lo, 1998 as a special case.
Infinitely risk-averse limit (, ): The optimal inventory collapses to for all , meaning the entire order is liquidated instantaneously at . The trader eliminates all timing risk by accepting the maximum possible market impact.
General case: For intermediate , the trajectory is convex (the Almgren–Chriss trajectory): it decays faster than the TWAP at the start and slower near the end. The front-loading increases monotonically with .
The figure below illustrates the Almgren–Chriss trajectory for different values of .

Figure 1:Almgren–Chriss optimal inventory trajectories for different risk-aversion levels (parametrised by ). The TWAP schedule () is the straight line; higher produces increasingly front-loaded trajectories.
The efficient frontier¶
For each risk aversion (equivalently, each ), the optimal strategy achieves a specific pair . Substituting the optimal trajectory into the cost expressions:
A simplified and commonly used approximation for the variance uses only the leading term:
As varies from 0 to , the pair traces out a curve in the (variance, expected cost) plane — the Almgren–Chriss efficient frontier. Every point on this frontier is the optimal strategy for some risk-aversion level ; any strategy not on the frontier is dominated. The figure below shows the frontier.
![The Almgren–Chriss efficient frontier in the (\sqrt{\text{Var}[IS]}, \mathbb{E}[IS]) plane. The bottom-left of the frontier corresponds to the risk-neutral TWAP (low expected cost, high variance); the top-right corresponds to aggressive immediate execution (high expected cost, low variance). Each colour marks a different risk-aversion level \kappa T.](/build/ac_frontier-b04222b4a59c0461a52f305080fdb2bc.png)
Figure 2:The Almgren–Chriss efficient frontier in the plane. The bottom-left of the frontier corresponds to the risk-neutral TWAP (low expected cost, high variance); the top-right corresponds to aggressive immediate execution (high expected cost, low variance). Each colour marks a different risk-aversion level .
The shape of the frontier has important practical implications. Moving from the TWAP point towards aggressive execution reduces variance rapidly at first (by eliminating the bulk of timing risk), but at increasing marginal cost in expected impact. This reflects the convexity of the temporary impact cost in the trading rate: executing faster always costs more in impact, but the benefit in risk reduction diminishes as the inventory is already small.
Liquidation Value at Risk¶
In addition to the mean–variance efficient frontier, Almgren and Chriss Almgren & Chriss, 2000 introduce the Liquidation Value at Risk (L-VaR), defined as the worst-case implementation shortfall at a given confidence level :
where is the -quantile of the standard normal distribution. L-VaR provides a risk measure compatible with Value-at-Risk frameworks used in risk management. Minimising L-VaR for a given corresponds to choosing a specific risk aversion , which gives an endogenous way to calibrate from a risk budget constraint.
Discrete-time implementation¶
In practice, the continuous-time trajectory is discretised into time intervals of length . The agent sells shares in interval (), with remaining inventory . The discrete analogue of the mean–variance objective is:
subject to . The optimal discrete trades satisfy the second-order linear recursion Almgren & Chriss, 2000:
which is the discrete approximation of the continuous-time Euler–Lagrange equation . As with fixed, the discrete solution converges to the continuous-time trajectory .
The discrete version is what is implemented in practice. The schedule is computed once at the start of execution using current parameter estimates and then executed deterministically (the static IS algorithm). Dynamic adaptation — re-solving the optimal schedule intraday as new price and volume information arrives — is a natural extension but changes the objective and solution, as discussed in Implementation Shortfall target.
Implementation Shortfall target¶
Risk-neutral optimality: the Bertsimas–Lo result¶
Bertsimas and Lo Bertsimas & Lo, 1998 derive the optimal execution strategy using dynamic programming in discrete time with a purely risk-neutral objective ( in the mean–variance framework). Their model uses the price dynamics , where is the permanent impact coefficient and are i.i.d. zero-mean shocks.
The value function for the problem of maximising expected execution proceeds has the quadratic form , where the coefficients satisfy backward recursions. The optimal policy at each step is:
This is the TWAP schedule: at each step, sell an equal fraction of the remaining inventory. The result is consistent with the Almgren–Chriss limit and establishes TWAP as the optimal IS-minimising strategy under linear permanent and temporary impact with i.i.d. price innovations.
When the price process has predictable components (non-zero expected returns), the optimal strategy departs from TWAP. Bertsimas and Lo show that with a linear return predictor (observable at time ), the optimal policy takes the form:
where are coefficients that increase the trade size when the price is expected to fall (for a sell order) and reduce it when the price is expected to rise. This signal-adaptive execution is a direct generalisation of TWAP that incorporates short-horizon alpha signals into the execution decision — an important consideration for systematic strategies where residual alpha is present during execution.
Risk aversion and front-loading¶
The key insight of the Almgren–Chriss model Almgren & Chriss, 2000 is that a risk-averse trader does not implement TWAP even when returns are unpredictable. The optimal IS strategy for front-loads execution relative to TWAP, sacrificing expected cost to reduce the variance exposure from holding large inventory in a volatile market.
The degree of front-loading can be quantified by comparing the initial sell rate to the TWAP rate:
For , the initial rate is about 1.31 times the TWAP rate; for , about 1.93 times. This front-loading effect is consistent with the practical behaviour of IS algorithms in equities, which typically execute 30–60% of the order in the first third of the scheduled window.
The IS algorithm in practice¶
In a production IS algorithm, the continuous-time trajectory is pre-computed at launch and then executed via the tactics layer (chapter Execution Tactics). The key parameters required are:
Volatility : estimated from recent realised or implied volatility, typically at the intraday time scale of the execution window.
Temporary impact coefficient : estimated from execution data, typically calibrated using the square-root model as where is average daily volume and a market-specific constant.
Risk aversion : set by the institution’s risk tolerance, either directly or derived from an L-VaR target. A common practice is to parametrise through the execution horizon , which is set by specifying a participation rate — a target fraction of market volume — and using the predicted total volume to derive the horizon.
The IS algorithm is inherently static: the schedule is computed once from current parameter estimates. Dynamic variants re-solve the optimal schedule at each time step using updated estimates of volatility and the remaining horizon, trading additional computation for improved adaptation.
VWAP target¶
IS and VWAP under volume-proportional impact¶
Under certain conditions, the VWAP-optimal strategy coincides with the IS-optimal strategy. Kato (2017) shows that when the market impact of trading is proportional to the fraction of market volume traded — , where is the market trading rate — the risk-neutral IS-optimal strategy is to trade proportionally to the market volume profile. This is the static VWAP schedule: , where is the total market volume. The two benchmarks therefore share the same optimal strategy under the natural assumption that temporary impact is proportional to participation rate.
In practice, the two targets differ when impact deviates from this proportional form and particularly when timing risk is relevant: VWAP is agnostic to the trader’s risk aversion, while IS front-loading reflects the risk of adverse price movements. The VWAP target is more appropriate for agency execution where the goal is to blend into market flow, while IS is more appropriate for proprietary execution where the investor bears timing risk directly.
Static VWAP schedule¶
The simplest VWAP strategy is the static schedule: at time 0, estimate the daily volume profile from historical data, and allocate the order proportionally:
so that the participation rate is constant across all time bins. The static schedule perfectly tracks VWAP if the realised volume profile matches the forecast; its tracking error arises from deviations between actual and predicted volume.
Volume profiles exhibit strong intraday patterns — the well-known U-shape — that are stable on average but noisy on any given day. The key sources of volume forecast uncertainty are:
Total daily volume: the aggregate number of shares traded that day, which can deviate significantly from its historical average on news or macro event days.
Intraday distribution: the shape of the volume curve within the day, which can shift due to scheduled economic releases, index rebalancing flows, or other events.
Dynamic VWAP: the Busseti–Boyd framework¶
Busseti & Boyd (2015) cast the VWAP tracking problem as a Linear–Quadratic Stochastic Control (LQSC) problem (chapter Stochastic Optimal Control, section Linear–Quadratic Stochastic Control) and derive a dynamic strategy that adapts the execution schedule as volume information is revealed intraday.
Setup: the trading period is divided into bins of equal length. Let be the number of shares executed in bin , the market volume in bin (random), the total daily volume, and the realised volume fraction. The VWAP slippage relative to the market VWAP is:
where is the mid-price in bin and is the total order size. Neglecting market impact and using a driftless geometric random walk for prices, the expected slippage is zero and the variance simplifies to:
where is the cumulative market volume, is the cumulative executed quantity, and is the per-bin price volatility. The objective is quadratic in , fitting the LQSC structure.
State space: the state vector is , combining the cumulative executed quantity and the cumulative market volume. The state dynamics are , which is linear in the control and the noise .
Riccati solution: since the cost is quadratic in the state and the dynamics are linear, the LQSC backward recursion from chapter Stochastic Optimal Control applies. The optimal control at each step is affine in the current state:
where the gains and are computed backwards from the terminal condition via Riccati equations. The resulting dynamic VWAP strategy is:
This elegant formula has a direct interpretation: at each bin , compute the expected total market volume (updated using all information available through bin ), determine what fraction of should have been executed by the end of bin to track the VWAP exactly, and execute the difference between that target and what has actually been executed so far. The strategy thus corrects for cumulative volume forecast errors one bin at a time, catching up all accumulated deviations immediately at the next opportunity.
Static fallback: if no intraday information is used (only the information available at ), the optimal strategy reduces to:
the proportional static schedule where the allocation to each bin is the predicted fraction of daily volume. This is the static VWAP schedule from the previous section.
Performance: Busseti and Boyd report that the dynamic strategy reduces VWAP tracking error (root mean squared slippage) by approximately 10% relative to the static schedule on a sample of DJIA stocks, with execution cost savings of approximately 1 million order.
Volume modelling¶
The quality of the dynamic VWAP strategy depends critically on the quality of the volume forecasts and . Busseti & Boyd (2015) model the intraday volume profile as a multivariate log-normal distribution, capturing:
Intraday seasonality: the U-shaped average volume profile, which concentrates at the open and close.
Stock-specific scaling: each stock has a characteristic volume level captured by a stock-specific factor.
Cross-bin correlations: volume is correlated across adjacent bins (high volume in one bin predicts higher volume in the next), captured by a low-rank plus banded covariance matrix.
Given partial observations of the realised volume through bin , the conditional distribution of the remaining volume profile follows a log-normal distribution whose parameters are updated via standard conditional Gaussian formulas (Schur complement). The required expectations and are computed as log-normal moments using these updated parameters.
In practice, volume models are calibrated from 20–60 days of historical intraday data, discriminating by features such as day of the week, expiration dates, and macro announcement calendars to avoid mixing volume patterns from structurally different days.
Portfolio execution¶
Multi-asset extension¶
Consider simultaneously executing orders in assets, with target sizes for . The state is now a vector of remaining inventories and the control is the vector of trading rates .
Asset prices evolve as a multivariate arithmetic Brownian motion with cross-impact:
where is the cross-permanent-impact matrix: selling asset at rate moves the price of asset by . The Wiener processes are correlated with instantaneous correlation , giving the covariance matrix with .
The execution price for asset is:
where temporary impact is assumed diagonal (each asset’s temporary impact depends only on its own trading rate; cross-asset temporary effects are typically negligible at practical order sizes).
Portfolio cost functional¶
The multi-asset mean–variance objective is:
where .
The expected cost separates into asset-specific temporary impact costs plus a path-independent permanent impact term . The variance of cost is:
This is the key cross-asset term: the variance of the portfolio’s execution cost depends on the joint inventory trajectory through the covariance matrix . Correlated assets contribute positively to the total variance, but can be managed jointly to reduce it.
The multi-asset mean–variance objective then reduces to:
where is the diagonal temporary impact matrix.
The matrix Euler–Lagrange equation¶
Applying the Euler–Lagrange equation to the vector Lagrangian :
giving the matrix ODE:
The matrix couples the trajectories of all assets through the covariance matrix and the impact matrix . The general solution involves matrix exponentials:
where the matrix (principal square root of the positive semi-definite matrix ) can be computed via eigendecomposition of .
For practical implementation, the matrix ODE is solved numerically on a discrete grid using either the matrix exponential or forward Euler integration of the first-order system.
Natural hedging during execution¶
The coupling through has an important economic interpretation: correlated assets should be liquidated jointly. If two assets have positive correlation (), selling both simultaneously is better than selling them sequentially, because the price risk of holding residual inventory in one asset is partially hedged by the comovement with the other.
More precisely, consider two perfectly correlated assets (, , ). The joint portfolio trajectory is perfectly hedged against price movements as long as the two inventory trajectories track each other proportionally — if one asset’s price moves adversely, the other’s moves identically. The optimal strategy therefore schedules both assets with identical normalised trajectories, and the portfolio execution cost is no higher than executing either asset alone.
For imperfectly correlated assets (), partial hedging is still possible: the optimal joint trajectory front-loads the more volatile asset and holds the less volatile one longer, exploiting the natural hedge to reduce total variance at lower impact cost.
Proxy instruments¶
A powerful extension of multi-asset portfolio execution is the use of proxy instruments: highly liquid instruments that are correlated with the portfolio but not themselves in the target portfolio (e.g. index futures for a basket of equities). A proxy instrument can be traded at low cost and high liquidity to hedge the portfolio’s price risk during execution, effectively extending the execution window without increasing timing risk.
In the framework above, proxy instruments enter the optimisation with boundary conditions and : they carry no net position change but can be used as intermediaries to reduce portfolio-level risk during the execution window. The optimizer freely uses them as they appear in the covariance matrix and their use is only constrained by their boundary conditions. This allows the algorithm to temporarily take on a proxy position to hedge inventory risk, then unwind it as the primary positions are completed.
Optimal execution using Reinforcement Learning¶
See my KB Add some references
Exercises¶
Derive the formula from the definition of implementation shortfall and the price model with execution price . Confirm that the permanent impact term is path-independent by computing using integration by parts.
Verify that the variance of implementation shortfall is by computing the variance of using the stochastic integral formula .
Solve the Euler–Lagrange equation with boundary conditions and to obtain the Almgren–Chriss trajectory . Verify that and .
Consider an Almgren–Chriss execution with (daily volatility), (), (), day, and shares. Compute , , and the ratio of the initial trading rate to the TWAP rate. What fraction of the order is executed in the first quarter of the horizon?
Show that the IS cost at the TWAP limit () is and . Interpret each term: why does variance grow with while expected impact shrinks with ?
In the dynamic VWAP strategy (Busseti–Boyd), show that the formula reduces to the static schedule when no intraday volume information is available (i.e. , , and for all ).
Consider a two-asset portfolio execution problem with , , , and correlation . Write the matrix explicitly and compute its eigenvalues. Show that the eigenmodes correspond to the sum and difference of the two inventory trajectories, and identify which mode is more aggressive and why.
- Almgren, R., & Chriss, N. (2000). Optimal execution of portfolio transactions. Journal of Risk, 5–39.
- Bertsimas, D., & Lo, A. W. (1998). Optimal control of execution costs. Journal of Financial Markets, 1(1), 1–50.
- Busseti, E., & Boyd, S. (2015). Volume Weighted Average Price Optimal Execution. arXiv Preprint arXiv:1509.08503. https://arxiv.org/abs/1509.08503
- Kato, T. (2017). VWAP Execution as an Optimal Strategy. JSIAM Letters, 9, 33–36. 10.14495/jsiaml.9.33