execution-model

Simulate trade execution, slippage, and transaction costs in financial backtesting.

Updated Jul 8, 2026
One-click install
npx skills add https://github.com/hxhyyy/Vibe-Trading --skill execution-model-hxhyyy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: execution-model
Source: https://github.com/hxhyyy/Vibe-Trading/tree/main/agent/src/skills/execution-model
Command: npx skills add https://github.com/hxhyyy/Vibe-Trading --skill execution-model-hxhyyy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, pandas.

What problem does it solve?

This skill addresses the gap between idealized backtests and real-world trading by providing realistic execution assumptions, preventing overly optimistic performance projections that lead to live trading losses.

Core Features & Use Cases

  • Slippage Modeling: Apply fixed, linear, or square-root impact models to simulate market friction based on trade size and liquidity.
  • Execution Logic: Simulate VWAP and TWAP execution algorithms to better reflect how large orders are filled over time.
  • Cost Analysis: Calculate the total drag on returns from commissions, stamp duties, and market impact to ensure strategy viability.

Quick Start

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

Frequently Asked Questions about execution-model

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

FAQPage Schema
How do I simulate realistic slippage and market impact in quantitative backtesting?

Simulate realistic slippage by applying fixed, linear, or square-root market impact formulas to model trade size and liquidity friction. This prevents overly optimistic backtest projections by incorporating execution delays and volume constraints into quantitative strategy analysis.

What is the best way to model VWAP and TWAP execution algorithms for large orders?

Model VWAP and TWAP execution algorithms by simulating how large orders are filled over time. This execution logic reflects real-world trading behavior, ensuring accurate performance evaluation when analyzing transaction costs and market impact in backtesting environments.

Does this execution model support China A-shares, US equities, and crypto assets?

This execution model supports China A-shares, US equities, and crypto assets by applying linear or square-root market impact formulas. It accommodates diverse market scenarios to calculate total transaction costs including commissions, stamp duties, and market impact drag.

How do I calculate total transaction costs including commissions and stamp duties for backtesting?

Calculate total transaction costs by combining commissions, stamp duties, and market impact drag using mathematical models. This cost analysis ensures strategy viability by measuring the exact drag on returns from execution frictions in quantitative backtesting environments.

Why does my backtesting strategy show profits but lose money in live trading?

Backtesting strategies often show inflated profits due to idealized execution assumptions missing slippage and market impact. Adding realistic transaction cost models, execution delays, and volume constraints prevents overly optimistic projections that lead to live trading losses.

Do I need numpy and pandas to run execution models for trade simulation?

You need numpy and pandas dependencies to run execution models for trade simulation. These libraries provide the mathematical and data manipulation foundation required to apply square-root impact formulas and calculate slippage across high-liquidity asset backtests.