execution-model

Incorporate slippage models, VWAP/TWAP execution, and market impact estimation into backtests.

2|Updated May 13, 2026
One-click install
npx skills add https://github.com/thanhtai040805/AI_Invest --skill execution-model-thanhtai040805
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: execution-model
Source: https://github.com/thanhtai040805/AI_Invest/tree/main/ai-engine/app/domain/services/quant/skills_data/execution-model
Command: npx skills add https://github.com/thanhtai040805/AI_Invest --skill execution-model-thanhtai040805

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill provides more realistic execution assumptions for backtests, addressing slippage models, market-impact estimation, and execution-algorithm principles.

Core Features & Use Cases

  • Slippage Models: Fixed, linear, and square-root impact models for different market conditions.
  • Execution Algorithms: VWAP and TWAP execution logic for volume-weighted and time-weighted average pricing.
  • Market Impact: Estimate market-impact cost based on trade size and liquidity.
  • Use Case: Incorporate these models into your backtesting framework to assess the impact of trade execution on strategy performance.

Quick Start

Load the execution-model skill and configure the slippage and execution parameters for your backtest.

Frequently Asked Questions about execution-model

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

FAQPage Schema
How do I add slippage models to my backtesting framework?

Incorporate slippage models into your backtesting framework by configuring fixed, linear, or square-root impact models to simulate market impact costs based on trade size and liquidity. This improves backtest realism by reflecting actual trade execution conditions.

What is the difference between VWAP and TWAP execution algorithms?

VWAP execution algorithms calculate volume-weighted average pricing, while TWAP algorithms execute trades based on time-weighted average pricing. Both algorithms help estimate market impact and improve execution realism in backtesting strategies.

When do I need a square-root slippage model for trade execution?

Use a square-root slippage model when estimating market impact for large trade sizes relative to market liquidity. It provides advanced execution modeling by calculating impact costs proportionally to the square root of the order size.

Does backtesting with execution algorithms require financial market knowledge?

Yes, backtesting with execution algorithms requires knowledge of financial markets and backtesting principles. You need to understand slippage models, market impact, and execution algorithms like VWAP and TWAP to configure parameters effectively.

How do I estimate market impact cost for large trades in a backtest?

Estimate market impact cost in a backtest by applying slippage models that calculate price movement based on trade size and available liquidity. Use fixed, linear, or square-root execution algorithms to model the cost impact accurately.