execution-model

Model transaction costs with slippage and VWAP/TWAP execution logic for backtests.

6.1k|1.2k|Updated Jun 9, 2022
One-click install
npx skills add https://github.com/charliedream1/ai_quant_trade --skill execution-model-charliedream1
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: execution-model
Source: https://github.com/charliedream1/ai_quant_trade/tree/main/a_%E5%85%A8%E7%BD%91%E4%BC%98%E7%A7%80%E8%B5%84%E6%BA%90/10_%E5%A4%A7%E6%A8%A1%E5%9E%8B/07_skill%E5%8C%85/vibe_trading_skills/execution-model
Command: npx skills add https://github.com/charliedream1/ai_quant_trade --skill execution-model-charliedream1

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Trade execution modeling for backtests to estimate slippage, costs, and execution risk, enabling more realistic strategy evaluation.

Core Features & Use Cases

  • Slippage models (linear and square-root) for cost estimation
  • VWAP/TWAP execution logic for simulated trades
  • Market-impact estimation with configurable execution assumptions

Quick Start

Configure a backtest to apply a linear slippage model with VWAP-based execution and observe the impact on simulated costs.

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 a backtest?

To model slippage in a backtest, apply linear or square-root slippage models to estimate transaction costs and market impact. This provides realistic execution modeling by applying configurable execution assumptions to simulated trades.

Can I simulate VWAP and TWAP execution logic for backtesting strategies?

Yes, you can simulate VWAP and TWAP execution logic for backtesting strategies. This enables realistic trade execution modeling by estimating transaction costs and execution risk during strategy evaluation.

What is the best way to estimate transaction costs for backtest realism?

Estimating transaction costs for backtest realism requires applying slippage models, execution delay parameters, and participation caps. Configuring these execution assumptions controls backtest realism and reveals the true market impact of simulated trades.

Does execution modeling work with configurable participation caps and execution delay?

Yes, execution modeling works with pluggable parameters for slippage, execution delay, and participation caps. These configurable execution assumptions allow you to precisely control backtest realism and estimate transaction costs.

When do I need square-root slippage models instead of linear slippage?

You need square-root slippage models instead of linear slippage when estimating larger market impact for bigger order sizes. Both models are available to provide flexible cost estimation and execution risk evaluation for backtesting scenarios.