Transaction Cost Analysis (TCA) Framework
This TCA framework provides a structured approach to measure, predict, and attribute transaction costs in equity, fixed income, or FX trading. It integrates pre-trade models for cost estimation, post-trade slippage for execution quality, venue effects for liquidity and routing analysis, and attribution for cost decomposition. The framework uses standardized metrics, benchmarks (e.g., VWAP, TWAP, arrival price), and is designed for algorithmic and manual trading strategies.
Key assumptions:
- Buy trades: Positive costs (price increase).
- Sell trades: Negative costs (price decrease).
- All metrics are basis points (bps) unless specified:
bps = (Cost / Benchmark Price) * 10,000.
- Data requirements: Order details (size, timestamp, venue), market data (quotes, trades), benchmarks.
1. Pre-Trade Models
Predict expected transaction costs (TC) before execution to inform sizing, timing, and routing. Use regression-based or parametric models.
Model Types
| Model | Description | Key Inputs | Formula/Output |
|---|
| Volume-Participation Model | Simple estimator for market impact. | ADV (Avg Daily Volume), Order %ADV, Volatility (σ) | Est. TC (bps) = α * (%ADV)^β * σ + γWhere α,β,γ fitted via regression (e.g., β≈0.5-1.0). |
| Almgren-Chriss (AC) Model | Optimal execution trajectory minimizing risk-adjusted impact. | Order size (Q), Time horizon (T), Risk aversion (λ), σ | Temporary Impact = η * √(Q / ADV) * vPermanent Impact = (1/2) * γ * (Q / ADV)Optimal trajectory: q(t) = Q * sin(π t / (2T)). |
| Machine Learning Model | XGBoost/LSTM for non-linear predictions. | Order size, %ADV, σ, Spread, Momentum, Venue liquidity score. | Est. TC = f(Features) (train on historical TCA data). |
Implementation Steps
- Calculate liquidity metrics:
Liquidity Score = ADV / (σ * Spread).
- Simulate scenarios: Vary %ADV (0.1-2%) and urgency (aggressive/passive).
- Output: TC heatmap (e.g., 5-20 bps for 1% ADV orders) + confidence intervals.
Example Output:
Order: 500k shares (1% ADV), σ=2%, Spread=5bps
Est. TC: 12bps (Volume model), 15bps (AC model)
Recommendation: Slice into 10% ADV chunks over 30min.
2. Post-Trade Slippage
Measure execution quality vs. benchmarks post-trade. Focus on arrival price slippage (decision price) and implementation shortfall (arrival + opportunity cost).
Core Metrics
| Metric | Definition | Formula |
|---|
| Arrival Price Slippage | Difference from price at order start. | (VWAP_exec - Arrival Price) / Arrival Price * 10,000 bps. |
| VWAP Slippage | Vs. volume-weighted average price. | (VWAP_exec - Benchmark VWAP) / Benchmark VWAP * 10,000 bps. |
| Implementation Shortfall | Total cost including unfilled/unexecuted. | ∑(Exec Price_i - Decision Price) * Shares_i + Opportunity Cost. |
| Hit Rate | % of benchmark captured. | 1 - (Slippage / Est. Pre-Trade TC). |
Analysis Steps
- Arrival Price: Mid-price 1-5s before order submission.
- Aggregate by Order/Child Order: Handle parent-child linkages.
- Normalize: Adjust for market direction:
Adjusted Slippage = Slippage - Market Return.
- Thresholds: Flag outliers (>2σ from peer average).
Visualization: Box plots of slippage by strategy/urgency.
Example:
Trade: Buy 1M shares, Arrival=100.00, Exec VWAP=100.15 → Slippage=15bps.
Market Move: +5bps → Adjusted=10bps (Good execution).
3. Venue Effects
Quantify how execution venues (lit exchanges, dark pools, internalization) impact costs. Compare alpha (value-add) vs. neutral.
Key Metrics by Venue
| Effect | Metric | Formula/Interpretation |
|---|
| Liquidity Cost | Avg slippage by venue. | Slippage_venue - Slippage_total. |
| Fill Quality | Fill rate & size. | % Filled = Total Filled / Order SizeAvg Fill Size / Venue ADV. |
| Adverse Selection | Price reversion post-fill. | Reversion (bps) = (Price_t+1min - Exec Price) / Exec Price * 10,000. |
| Latency Impact | Delay effects. | Slippage = α * Latency_ms + β * Volatility. |
| Venue Alpha | Excess return vs. composite. | Alpha = Slippage_venue - Slippage_TWAP. |
Framework Steps
- Categorize Venues: Lit (NYSE/NASDAQ), Dark (IEX/Citi), Internalizer.
- Routing Attribution: % volume by venue × venue slippage.
- Peer Comparison: Vs. buyside peers (e.g., via IOI/ABC data).
- Optimization: Rank venues by
Score = -Slippage + w1*Fill Rate + w2*Reversion.
Example Table (Hypothetical):
| Venue | % Volume | Slippage (bps) | Fill Rate | Reversion (bps) | Score |
|---|
| NYSE | 40% | 8 | 95% | -2 | 9.2 |
| Dark Pool | 30% | 12 | 70% | -5 | 6.5 |
| Internal | 30% | 5 | 100% | +1 | 9.8 |
4. Attribution
Decompose total TC into sources for root-cause analysis. Use a multi-factor model.
Attribution Model
Total TC = Explicit + Implicit + Opportunity.
| Component | Sub-Factor | Formula | Driver |
|---|
| Explicit Costs | Commissions + Fees + Taxes. | ∑ Fees * Shares. | Broker/Venue. |
| Market Impact | Permanent (price shift). | Permanent = γ * (Q / ADV). | Order size/urgency. |
| Temporary Impact | Reversion after trade. | Temporary = η * √(v * Q). | Execution rate (v). |
| Spread Capture | Half-spread paid. | (Exec - Mid) / Spread. | Timing/venue. |
| Timing/Delay | Hold time cost. | Delay Cost = Market Return * Delay Time. | Queue position/latency. |
| Opportunity | Unexecuted value. | ∑(Benchmark_t - Decision) * Unfilled Shares. | Cancellation/risk limits. |
Decomposition Steps (Regression-Based)
- Benchmark TC:
TC = Arrival Slippage + Explicit.
- Fit Model:
TC = β1*Size + β2*Urgency + β3*Venue + β4*Vol + ε.
- Shapley Values (for ML): Allocate % contribution per factor.
- Variance Decomposition: % of TC variance explained by each.
Example Attribution Pie (1% ADV Buy Order, Total TC=18bps):
Explicit: 2bps (11%)
Market Impact: 8bps (44%)
Temporary: 4bps (22%)
Spread: 3bps (17%)
Timing: 1bps (6%)
Integration and Reporting
- Dashboard: Real-time pre-trade est. vs. post-trade actuals + attribution waterfall.
- Backtesting: Replay historical orders with framework.
- Alerts:
|Actual - Est.| > 5bps or venue alpha <0.
- Scalability: Implement in Python (pandas for data, scikit-learn for models) or vendor tools (e.g., ITG/ Abel Noser).
This framework reduces TC by 20-50bps through iterative refinement. Customize weights/formulas based on asset class/portfolio. For implementation code or data templates, provide specifics!