Execution algorithms and market impact
A strategy's paper profits can vanish in the act of trading. The full cost of a trade; how big orders move prices, with the square-root law and a calculator; the trade-off between impact and timing risk, worked step by step; TWAP, VWAP and POV; India's closing auction; and how Société Générale, from 21 January 2008, unwound about €50 billion of hidden positions in three days into a falling market, losing €4.9 billion.
Facts reviewed Oct 2026
The earlier lessons in this module were about deciding what to trade. This one is about how: turning a decision into filled orders, at the best overall cost.
For a retail trader buying a few lakh rupees of a liquid stock, execution is mostly about fees and the bid-ask spread. For a fund buying crores, the order itself moves the price. That cost can be larger than every fee combined. Execution algorithms exist to manage it.
(The digital rails that payments and data run on, such as UPI, Account Aggregators and ONDC, have their own module: Payments & Financial Infrastructure.)
The full cost of a trade
- Explicit costs: brokerage, securities transaction tax (STT), exchange and SEBI fees, GST and stamp duty. In India, STT alone is 0.1% on each side of a delivery equity trade, as of October 2026. Investor Taxation in India explains the details.
- The spread: buying at the ask and selling at the bid costs about half the spread each way.
- Market impact: a large buy order eats up the cheapest offers, and pushes the price up. The bigger the order compared with normal volume, the bigger the push.
- Timing, or opportunity, cost: while you trade slowly to reduce impact, the price may drift away from you.
The standard yardstick is implementation shortfall. It’s the gap between the price when you decided to trade, the “arrival price”, and the average price you actually got. Add fees, and the cost of any part you failed to trade.
How big is market impact?
Research across many markets has found a surprisingly stable rule of thumb, the square-root law:
Impact (as % of price) ≈ Y × daily volatility × √(order size ÷ daily volume)
Here, Y is a constant close to 1. Impact grows with volatility, and with the square root of the order’s share of volume. Quadruple the order, and impact only doubles. But it never stops growing.
Worked example. A fund wants to buy ₹50 crore of a stock that trades ₹200 crore a day, with 2% daily volatility.
- Share of a day’s volume: 50 ÷ 200 = 0.25.
- Square root: √0.25 = 0.5.
- Impact in one day: 1 × 2% × 0.5 = 1%, or ₹50 lakh.
- Compare STT: 0.1% of ₹50 crore is ₹5 lakh. Impact costs ten times as much.
Fast or slow: the central trade-off
Spread the order over several days, and each day’s share of volume falls, so impact falls. Over three days, impact drops to about 0.58%, or ₹29 lakh.
But the longer you take, the more the price can wander before you finish. A rough measure of this timing risk is one standard deviation of the price drift during the trade. Over the same three days, it rises from about ₹58 lakh to ₹1 crore.
There’s no free lunch. Trading fast costs impact. Trading slow costs risk. The Almgren-Chriss framework, the classic model of this trade-off, picks a schedule based on how much the trader dislikes risk.
A rule-of-thumb model: real impact depends on the stock, the market and how the order is worked. Defaults: ₹50 lakh of impact and ₹58 lakh of timing risk in one day; at three days, ₹29 lakh and ₹1 crore. The best schedule balances the two lines, given how much risk you can bear.
A fund doubles the size of an order in the same stock, and executes it over the same period. Under the square-root law, by roughly how much does the expected impact, as a % of price, rise?
Impact scales with the square root of size: √2 ≈ 1.41, so impact rises about 41%. The rupee cost of impact rises about 2.8 times, since the bigger order pays the higher impact on twice the shares.
The standard execution algorithms
- TWAP, or time-weighted average price: split the order into equal slices over a set period. It’s simple and predictable, but ignores when the market is actually busy.
- VWAP, or volume-weighted average price: trade in line with the stock’s usual volume pattern through the day, usually heavier near the open and close. The aim is to match the day’s VWAP, a common benchmark for funds.
- POV, or percentage of volume: trade a fixed share of actual volume, say 10%. It speeds up when the market is busy, and slows when it’s quiet.
- Implementation shortfall, or arrival price: trade faster early, to limit drift from the decision price, then slow down. It balances impact and risk directly.
- Iceberg orders: show only a small part of the order on screen, and top it up as it fills. Other traders don’t see the full size.
- Smart order routing: send each slice to whichever exchange, NSE or BSE, offers the better price.
In India, since 3 August 2026, the closing price of stocks in the F&O segment is set by a closing auction. Continuous trading in those stocks ends at 3:15 pm, and orders are matched at a single closing price shortly after. Other stocks still close at the volume-weighted average of their last half hour, as of October 2026. Funds benchmarked to closing prices, such as index funds, can now place their orders in the auction.
What this means for a retail trader
For someone trading a few lakh rupees of a large, liquid stock, impact is tiny. What matters is the spread and the fees.
- Use limit orders, not market orders, in anything less than very liquid.
- Avoid trading illiquid small caps in size.
- Remember that brokers’ algo products for retail traders work under SEBI’s retail-algo framework, covered in the broker-API lesson.
When a backtest shows profits from trading small, illiquid stocks often, execution costs are the first thing to model, as the backtesting lesson warned.
A real case: Société Générale’s forced unwind, 2008
Sometimes a trader has no choice about speed.
- 18–20 January 2008: French bank Société Générale found that a trader, Jérôme Kerviel, had hidden huge positions behind fake trades. They totalled about €50 billion, mostly in European stock index futures. That was more than the bank’s own capital.
- 21 January 2008, a Monday: the bank began selling, in secret. Global markets were already falling sharply that day.
- Over three days, it closed the whole position, into a falling market.
- 24 January 2008: it announced the fraud, and a loss of about €4.9 billion.
Worked example: why the bank couldn’t wait. These figures are illustrative. Take a €50 billion position, futures that trade €100 billion a day in total, and 3% daily volatility.
- Sell in one day: impact ≈ 3% × √(50 ÷ 100) ≈ 2.1%, or about €1.1 billion.
- Sell over three days: impact ≈ 3% × √(50 ÷ 300) ≈ 1.2%, or about €0.6 billion.
- But the timing risk over three days, in the calculator’s simple model, is about 3%, or €1.5 billion, in a market already falling.
- The choice: neither path was cheap. The bank chose speed, and took the hit.
The lessons:
- Size, compared with volume, sets the cost of getting out.
- A forced seller pays both impact and timing costs.
- Controls on position size prevent the problem before execution ever starts.
Going further: why others can smell a big order. Large orders leave footprints. A steady seller at 10% of volume, every few minutes, is a pattern that fast traders’ systems can spot. Once they guess a big seller is out there, they may sell first, or stop buying, and the price moves further. That’s one reason execution algos randomise slice sizes and timing, and hide size in icebergs. It’s also why block trades, where a broker matches a big buyer and seller privately at one price, still exist. Execution is partly a game of not being noticed.
Common mistakes
- Counting only fees, and ignoring spread and impact.
- Using market orders in thinly traded stocks.
- Trading too fast when timing risk is small.
- Trading too slowly in a falling market.
- Ignoring turnover in a backtest’s costs.
Practice 1: You need to buy ₹20 crore of a stock trading ₹400 crore a day, with 1.5% daily volatility, over two days. Estimate the impact and the timing risk.
- Impact: 1 × 1.5% × √(20 ÷ (400 × 2)) ≈ 0.24%, about ₹4.7 lakh.
- Timing risk: 1.5% × √(2 ÷ 3) ≈ 1.22%, about ₹24.5 lakh.
- The verdict: for a liquid stock and a modest order, price drift is the bigger worry. So faster execution is reasonable. Enter 20, 400, 1.5, 2 and 1 in the calculator to check.
Practice 2: You decide to buy 10,000 shares at ₹500. Your average fill is ₹503.50, and fees are ₹2,500. What's the implementation shortfall, in rupees and as a percentage?
- Price slippage: (503.50 − 500) × 10,000 = ₹35,000.
- Plus fees: 35,000 + 2,500 = ₹37,500.
- As a share of ₹50 lakh: 37,500 ÷ 50,00,000 = 0.75%.
Key takeaways
- A trade’s full cost = explicit fees + half the spread + market impact + timing cost. Measure it as implementation shortfall, against the arrival price.
- Square-root law: impact ≈ volatility × √(order ÷ daily volume). It grows with size, but more slowly than size.
- Trading faster raises impact. Trading slower raises timing risk. Execution schedules balance the two.
- TWAP, VWAP, POV, implementation-shortfall algos, icebergs and smart routing are the standard tools.
- For retail traders, spreads and fees dominate. For high-turnover strategies, execution costs can erase the edge.
- Société Générale unwound about €50 billion in three days from 21 January 2008, losing about €4.9 billion.
Go deeper
- Almgren and Chriss (2000): Optimal execution of portfolio transactions, the classic model of the impact-risk trade-off.
- NSE Clearing: settlement prices for equity derivatives, on how official closing and settlement prices are used.
- Société Générale: the Kerviel case in 10 points.