Loading...
Loading...
Trade execution modelling framework (backtesting analysis only) via Longbridge — covers slippage models (linear / square-root market impact), VWAP/TWAP execution logic, market impact cost estimation (Kyle lambda), volume participation rate (POV) strategy. Helps quant traders build realistic execution assumptions in backtests. Triggers: "执行模型", "滑点模型", "VWAP执行", "TWAP执行", "市场冲击", "执行成本", "成交量参与率", "交易执行", "執行模型", "滑點模型", "VWAP執行", "TWAP執行", "市場冲擊", "執行成本", "交易執行", "execution model", "slippage model", "VWAP", "TWAP", "market impact", "execution cost", "volume participation rate", "Kyle lambda", "square root model", "POV strategy".
npx skill4agent add longbridge/skills longbridge-execution-modelResponse language: match the user's input language — Simplified Chinese / Traditional Chinese / English.
This skill is for backtesting / analysis only — no live order placement.
impact = k × (order_size / ADV)impact = σ × √(order_size / ADV)ΔP / ΔQp%If unsure of exact flag names, runbefore proceeding.longbridge <subcommand> --help
# 1-minute OHLCV — intraday volume distribution reference
longbridge kline <SYMBOL> --period 1m --count 200 --format json
# Tick-by-tick trades — for Kyle lambda estimation
longbridge trades <SYMBOL> --count 100 --format jsonEXECUTION MODEL REPORT — <SYMBOL> <Date>
VOLUME PROFILE
ADV (20d): xx.xM shares
Intraday: 09:30–10:00 xx% ██████
10:00–11:00 xx% ████
...
MODEL PARAMETERS
Model: Square-Root Impact
Order Size: xx,000 shares (xx% of ADV)
Volatility σ: x.xx% (daily)
COST ESTIMATES
Market Impact: xx bps
Spread Cost: x bps
Total Cost: xx bps (~$xx,xxx on $x.xM order)
EXECUTION SCHEDULE (VWAP)
09:30–10:00 x,xxx shares
10:00–11:00 x,xxx shares
...
KYLE LAMBDA
Estimated λ: x.xxe-6 ($/share per share traded)| Situation | 简体回复 | 繁體回復 | English reply |
|---|---|---|---|
| Symbol not found | 未找到该代码,请确认市场和格式。 | 找不到該代碼,請確認市場和格式。 | Symbol not found — verify exchange and ticker. |
| Insufficient tick data | 逐笔数据不足,结果仅供参考。 | 逐筆數據不足,結果僅供參考。 | Insufficient tick data — estimates are approximate. |
| 请安装 longbridge-terminal 或通过 MCP 连接。 | 請安裝 longbridge-terminal 或透過 MCP 連線。 | Install longbridge-terminal or connect via MCP. |
| 请运行 | 請執行 | Run |
longbridgemcp__longbridge__klinemcp__longbridge__tradeslongbridge-klinelongbridge-depthlongbridge-strategy-optimizerlongbridge-anomalyskills/longbridge-execution-model/
└── SKILL.md