trade-execution-cost

Model trade execution costs to correct optimistic backtest fills.

Updated Apr 14, 2026
One-click install
npx skills add https://github.com/loanntc/Paave --skill trade-execution-cost
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: trade-execution-cost
Source: https://github.com/loanntc/Paave/tree/main/skills/execution-model
Command: npx skills add https://github.com/loanntc/Paave --skill trade-execution-cost

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill reduces overly optimistic backtest results by modeling slippage, market impact, execution delay, and transaction-cost drag so your simulated fills better resemble real execution.

Core Features & Use Cases

  • Slippage model selection and estimation: Fixed slippage, linear impact, and square-root (Almgren-Chriss style) impact with parameter guidance by liquidity regime.
  • Execution-algorithm logic for backtests: VWAP and TWAP execution assumptions plus intraday slicing principles for more realistic fill timing.
  • Integrated cost framework: Combines explicit costs (e.g., commission, stamp duty) with implicit costs (spread, impact, and opportunity costs) and provides analysis guidance to estimate net performance impact.

Use it when you are running strategy backtests and want to quantify how costs and liquidity assumptions (ADV, volatility, participation rate) change annual returns, Sharpe ratio, and drawdowns.

Quick Start

Apply the trade-execution-cost skill to your backtest configuration to compute execution-price slippage, apply T+1 delay assumptions, and estimate total transaction-cost drag.

Frequently Asked Questions about trade-execution-cost

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

FAQPage Schema
How do I model slippage and market impact in backtesting?

You can model slippage and market impact in backtesting by applying fixed, linear, or square-root impact assumptions to estimate realistic fill prices and transaction-cost drag.

What is the best way to simulate VWAP and TWAP execution in a backtest?

Simulating VWAP and TWAP execution in a backtest involves applying intraday slicing logic with participation constraints to compute consistent fill-price adjustments and execution delays.

Does this slippage model work for both equities and crypto backtests?

Yes, the slippage model supports backtest-only execution simulations across both equities and crypto, applying liquidity regime parameters to estimate market impact and execution delay effects.

How do transaction costs affect Sharpe ratio and drawdowns in backtests?

Transaction costs affect Sharpe ratio and drawdowns by adding slippage, spread, and commission drag to simulated fills, reducing optimistic returns to reflect real execution friction.

How do I configure commission and delay bars for backtest execution simulation?

Configuring commission and delay bars requires setting execution parameters like participation constraints and T+1 delay assumptions to calculate accurate fill-price adjustments and net performance impact.

When should I use a square-root impact model over fixed slippage in backtests?

Use a square-root impact model over fixed slippage when modeling large orders sensitive to liquidity regime parameters like ADV and volatility, capturing non-linear market impact effects on realized prices.