execution-model

Model trade execution assumptions with slippage, market impact, and delayed fills for backtests.

Updated Apr 10, 2026
One-click install
npx skills add https://github.com/ebrahim-sani/trading-automation --skill execution-model-ebrahim-sani
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: execution-model
Source: https://github.com/ebrahim-sani/trading-automation/tree/main/vibe-trading/agent/src/skills/execution-model
Command: npx skills add https://github.com/ebrahim-sani/trading-automation --skill execution-model-ebrahim-sani

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Backtests that assume perfect fills and zero slippage produce overly optimistic results; execution-model provides realistic fill-price assumptions, slippage and market-impact estimation, execution delays, and transaction-cost decomposition so simulated performance better matches live trading outcomes.

Core Features & Use Cases

  • Slippage models: Fixed bps slippage, linear impact proportional to participation rate, and square-root (Almgren-Chriss) impact using volatility and ADV.
  • Execution algorithms: VWAP and TWAP slicing logic with intraday volume profile handling and configurable execution windows and participation caps.
  • Backtest realism tools: T+1 or delayed execution simulation, volume filters, commission/stamp-duty modeling, and sensitivity analysis to evaluate cost drag on returns.
  • Use cases: Adjusting backtests for China A-share T+1 constraints, estimating cost drag for high-turnover crypto strategies, and comparing strategy robustness under varied slippage and impact assumptions.

Quick Start

Simulate a daily backtest using fixed 5bps slippage, square-root impact with eta=0.5, and a T+1 execution delay to estimate net returns after transaction costs.

Frequently Asked Questions about execution-model

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I model realistic slippage and market impact in a backtest?

Model realistic slippage and market impact in a backtest by applying fixed bps slippage, linear participation rate impact, or square-root Almgren-Chriss impact using volatility and ADV inputs. This provides realistic fill-price assumptions so simulated performance better matches live trading outcomes.

Can I simulate VWAP and TWAP execution algorithms with participation limits?

Yes, you can simulate VWAP and TWAP execution algorithms with participation limits. The execution logic handles intraday volume profiles, configurable execution windows, and volume-based fill constraints to slice orders and estimate transaction costs accurately.

How do I adjust backtests for China A-share T+1 execution delays?

Adjust backtests for China A-share T+1 execution delays by simulating delayed execution and volume filters. Modeling T+1 constraints alongside commission and stamp-duty calculations ensures simulated net returns accurately reflect live market frictions.

What inputs are required to calculate transaction costs using a square-root impact model?

Calculating transaction costs using a square-root impact model requires price and volume time series, ADV, and volatility inputs. Configurable parameters include slippage bps, impact coefficients like eta, commission, and execution windows.

Why does my backtest assume perfect fills and overstate strategy returns?

Backtests overstate strategy returns when they assume perfect fills and zero slippage. Applying transaction-cost decomposition, execution delays, and sensitivity analysis to evaluate cost drag aligns simulated performance with realistic live trading outcomes.

Does this execution modeling approach work for high-turnover crypto strategies?

Yes, this execution modeling approach works for high-turnover crypto strategies. Estimating cost drag under varied slippage and market-impact assumptions helps compare strategy robustness and evaluates transaction cost drag on returns for crypto backtests.