execution-model

Model trade execution costs including slippage, market impact, and commissions.

Updated Jul 29, 2026
One-click install
npx skills add https://github.com/santoosaraujo/vibe-trading-claude --skill execution-model-santoosaraujo
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: execution-model
Source: https://github.com/santoosaraujo/vibe-trading-claude/tree/main/.claude/skills/execution-model
Command: npx skills add https://github.com/santoosaraujo/vibe-trading-claude --skill execution-model-santoosaraujo

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy.

What problem does it solve?

This Skill addresses the gap between idealized backtests and real-world trading by providing accurate slippage, market impact, and transaction cost modeling.

Core Features & Use Cases

  • Slippage Modeling: Apply fixed, linear, or square-root impact models to simulate realistic fill prices.
  • Transaction Cost Analysis: Calculate the impact of commissions, stamp duties, and bid-ask spreads on net returns.
  • Execution Logic: Simulate VWAP and TWAP execution algorithms and account for T+1 settlement delays.
  • Use Case: Use this to stress-test a strategy's profitability by applying a 10bps slippage model to ensure the strategy remains viable under realistic market friction.

Quick Start

Use the execution-model skill to calculate the total transaction cost impact for a strategy with a 5 percent annual turnover.

Frequently Asked Questions about execution-model

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

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

Model realistic backtesting slippage by applying fixed, linear, or square-root impact formulas to simulate order book dynamics and liquidity constraints. This calculates realistic fill prices by accounting for explicit and implicit trading costs across various asset classes.

What is the best way to calculate transaction costs for a financial strategy?

Calculate transaction costs for a financial strategy by evaluating the impact of commissions, stamp duties, and bid-ask spreads on net returns. This framework isolates explicit costs to ensure strategy profitability remains viable under realistic market friction.

Does this execution modeling framework support VWAP and TWAP algorithms?

Yes, execution modeling supports VWAP and TWAP execution algorithms to simulate realistic order routing. It also accounts for T+1 settlement delays to provide accurate net return calculations for backtested financial strategies.

Can I stress test strategy viability using a 10bps slippage model in Python?

Yes, you can stress-test strategy viability by applying a 10bps slippage model in Python using numpy. This evaluates whether your strategy remains profitable after accounting for realistic market friction and transaction costs.

Why does my backtest show higher returns than live trading?

Backtests show higher returns than live trading due to unmodeled slippage, market impact, and transaction costs. Applying square-root impact formulas and explicit commission structures simulates real-world liquidity constraints to close this profitability gap.