slippage reality stress test

    by nowrich

    1

    Stress-test trading strategies against slippage, latency, and partial fills to find execution breaking points.

    Secure checkout via Stripe

    0 installsSecurity scanned

    Works with the AI tools you already use

    CClaude CodeCCursorCCodex CLIGGitHub CopilotGGemini CLI+17 more

    See it in action

    You say

    Analyze this CSV of 500 trades. Apply 10bps slippage, a 2x spread multiplier, and 200ms latency. Compare the resulting Sharpe ratio and Max Drawdown against the baseline backtest.

    Your agent does

    | Scenario | Net Return | Max DD | Sharpe | |----------|------------|--------|--------| | Baseline | 18.2% | -5.4% | 2.10 | | Stressed | 11.4% | -9.8% | 1.35 |

    Analysis: The strategy remains viable but Sharpe drops by 35%. Sensitivity is highest for latency during the NY open.

    What you get

    Quantify the impact of execution delays on strategy profitability.Determine the breaking point where slippage turns a winning strategy negative.Model the cost of crossing the spread during high volatility regimes.Evaluate strategy sensitivity to partial fills and missed liquidity.

    About this skill

    The problem

    Backtests often assume perfect liquidity and instant fills, leading to inflated performance metrics that vanish in live markets. Developers need to know if a strategy is actually profitable or just an artifact of unrealistic execution assumptions.

    What it does

    • Recalculates PnL and Sharpe ratios across multiple slippage tiers from 5bps to 150bps.
    • Simulates the impact of wider bid-ask spreads and stale prices caused by execution latency.
    • Models partial fills and opportunity costs for unfilled order portions.
    • Applies volatility overlays to test strategy fragility during news events and market openings.

    Why this beats prompting it yourself

    This skill provides a structured framework for execution impairment that covers non-obvious risks like asymmetric slippage and order queue delays. It replaces manual spreadsheet modeling with a standardized stress-testing suite designed specifically for algorithmic trading.

    Use cases

    • Validating a new alpha before deploying capital to a live brokerage.
    • Determining the maximum allowable latency for a HFT or scalping strategy.
    • Setting hard limits on acceptable spreads for automated execution engines.
    • Comparing the robustness of two different strategies under tail-risk conditions.

    How to install

    Drop the file into your AI Agent. Works with Claude, Cursor, ChatGPT, and 20+ more.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill passes our trust checks below.

    Security scanned

    Passed our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    30-day refund

    Not a fit? Get your money back

    Trust & safety

    Security scanned

    Verified clean today

    Listedtoday

    Frequently Asked Questions

    Popular in Business & Operations