cbBTC SMA-90 Mean-Reversion Trader

    by Lahh Anjenk

    1

    A mean-reversion trading skill for cbBTC: buys dips 0.8% below the 90-minute SMA, exits on a two-leg rule, with a -0.8% stop. Paper trading only.

    $19

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned

    Works with the AI Agents you already use

    cbBTC SMA-90 Mean-Reversion Trader

    Example session with this skill installed

    Run the backtest replay on the provided cbBTC dev bars and tell me the final equity and total trade count.

    • Read your context and instructions
    • Compiled the cbbtc sma-90 mean-reversion

    I have executed the strategy replay using the scripts/replay.ts tool against the reference/dev-bars-cbbtc.ndjson.gz dataset. The simulation used exact integer arithmetic for the SMA-90 calculations and included the full fee, slippage, and pool-impact model.

    Replay Result: cbBTC Dev Window

    MetricValue
    StatusREPLAY MATCH
    Starting Equity$1,000.00
    Final Equity$1,014.36
    Net PnL+$14.36
    Total Trades2
    Max Drawdown0.70%
    Win Rate100%
    Fee Impact-26 bps per round trip

    The strategy triggered a buy at bar 412 when the price dropped 82 bps below the SMA-90. The exit was armed at bar 450 and closed at bar 488 on a fade back to the SMA. A second successful scalp occurred during the mid-session volatility spike.

    Next steps

    • Run node scripts/third-window.ts to see how these parameters hold up on a choppy BTC-USD downtrend.
    • Modify buyBandBps in scripts/strategy-core.ts to 100 to see if a wider entry improves the drawdown.
    • Execute the live paper runner using node scripts/paper.ts --minutes 60 to observe current market signals.

    Connects securely to your tools. The creator never sees your data.

    About this skill

    A mean-reversion trading skill for cbBTC: buys dips 0.8% below the 90-minute SMA, exits on a two-leg rule (cap +1.5% or fade back to the SMA), with a -0.8% stop. Backtested +$14.36 on a 24h dev window (2 trades). Paper trading only — no real orders, no guaranteed returns, not financial advice.

    Requires Node.js 22+. Live runner uses BTC-USD spot as a proxy for cbBTC. Does not support order execution, API keys, or wallet connectivity.

    How to use

    1. 1

      Connect your agent to the Agensi MCP

      Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup

    2. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 3

      Ask for what you need

      Your agent loads this skill and uses it on your task. It always asks before buying a skill.

    Reviews

    No reviews yet

    Be one of the first to try it. Every listed skill goes through the trust checks below.

    Security scanned

    Checked by our 8-point scan before listing

    Fresh listing

    Recently published to Agensi

    Money-back guarantee

    Doesn't do what its page promises? You get your money back.

    Trust & safety

    Security scan

    Security scan passed 15 days ago

    Software
    Node.jsCoinbase public API (no key needed)

    Permissions

    Terminal / Shell
    Network Access
    Listed15 days ago

    What's inside

    Frequently Asked Questions

    This skill provides a high-fidelity TypeScript environment for testing cbBTC strategies. It solves common backtesting pitfalls like floating-point errors and unrealistic fill modeling by using integer-exact math and fee-aware simulations.

    The package includes the core strategy logic, a live paper-trading runner, historical datasets in ndjson format, and replay scripts to verify the documented +$14.36 net return baseline.

    This skill is a standalone TypeScript project designed for Node.js 22+. While it is not a 'plugin' for a specific bot, its modular core is built to be easily integrated into any TypeScript-based AI agent or custom trading framework.

    No, the live runner is for paper-trading only and does not include wallet connectivity or order execution. It is designed for signal validation and strategy tuning before you move to a production execution environment.

    The live runner uses BTC-USD spot data as a proxy to generate signals for cbBTC. This allows for higher liquidity tracking while applying the specific fee and slippage models relevant to cbBTC pools.

    You can easily adjust the SMA period and entry bands by modifying the parameters in the core script. Once changed, you can immediately re-run the provided replay scripts to see how your changes would have affected past performance.

    New in Trading & Investing

    Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Trading & Investing.