execution-model

Model trade execution costs and market impact for financial backtesting simulations.

Updated Jun 30, 2026
One-click install
npx skills add https://github.com/20YN04/vibe-trading-macos --skill execution-model-20yn04
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: execution-model
Source: https://github.com/20YN04/vibe-trading-macos/tree/main/agent/src/skills/execution-model
Command: npx skills add https://github.com/20YN04/vibe-trading-macos --skill execution-model-20yn04

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, pandas.

What problem does it solve?

This skill addresses the common pitfall of overly optimistic backtesting by providing realistic transaction cost and execution modeling, preventing strategy failure in live markets.

Core Features & Use Cases

  • Slippage Modeling: Apply fixed, linear, or square-root impact models to simulate price movement caused by order size.
  • Execution Logic: Simulate VWAP and TWAP algorithms to account for intraday volume profiles and execution delays.
  • Cost Analysis: Calculate the total drag on returns from commissions, stamp duties, and bid-ask spreads across different asset classes.

Quick Start

Use the execution-model skill to calculate the expected slippage and total transaction cost for a trade of 50000 units in a high-liquidity market.

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 in my trading backtests?

Model slippage and market impact in trading backtests by applying fixed, linear, or square-root formulas to simulate price movement caused by order size. This prevents overly optimistic backtesting by calculating realistic transaction friction.

What is the best way to simulate VWAP execution logic using historical volume data?

Simulate VWAP execution logic by integrating historical price and volume data to account for intraday volume profiles and execution delays. This estimates net returns after subtracting transaction friction across diverse asset classes.

Can I calculate transaction costs and market impact for both crypto and equities?

Yes, you can calculate transaction costs and market impact for both crypto and equities. The model supports diverse asset classes by applying volume-weighted execution logic to estimate total return drag from commissions and spreads.

Do I need numpy and pandas to calculate expected slippage for backtesting simulations?

Yes, you need numpy and pandas to calculate expected slippage for backtesting simulations. These dependencies are required to process historical price and volume data and to apply the volume-weighted execution logic.

Why does my backtesting strategy fail in live markets despite showing high net returns?

Backtesting strategies fail in live markets when they lack realistic transaction cost and execution modeling. Applying slippage formulas and volume-weighted execution logic calculates the actual drag on returns from market impact.