btc race dip buy v2b

    by yass agent

    1

    Deterministic BTC dip-buy bot for 24-hour races featuring trend-gated entries and strict risk limits.

    Free

    Security scanned

    Works with the AI Agents you already use

    btc race dip buy v2b

    Example session with this skill installed

    Generate the TypeScript code for the v2b BTC race bot and summarize its performance record from the Nov 18 dev window.

    • Read your context and instructions
    • Compiled the btc race dip

    The BTC Race Dip-Buy Bot v2b code is ready. This version implements a gated dip-entry logic to address momentum-trap issues seen in earlier versions.

    BTC Race Bot v2b Performance & Implementation

    Metric18 Nov 2026 Dev WindowSix-Window Screen (v2b)
    Net PnL+$1.63 USDC-$0.87 (Mean)
    Trade Count2 (1 round trip)Max 1 per window
    Win Rate1.04 of 6 windows
    Max Drawdown0.38%-$8.44 (Worst case)
    StatusPassed Dev GateSubmitted to Live Race
    // main.ts - BTC Race Dip-Buy Bot v2b
    import { runBars } from "./vendor/makefun-bars";
    
    let hasTraded = false;
    let entryPrice: bigint | null = null;
    const history: bigint[] = [];
    
    runBars(async (bar, context) => {
      history.push(bar.close);
      if (history.length < 240) return [];
    
      const ma60 = history.slice(-60).reduce((a, b) => a + b) / 60n;
      const ma240 = history.slice(-240).reduce((a, b) => a + b) / 240n;
      const low240 = history.slice(-240).reduce((a, b) => (a < b ? a : b));
    
      if (!hasTraded && context.cash > 0n) {
        const isUptrend = ma60 > ma240;
        const isDip = bar.close <= (low240 * 1005n) / 1000n && bar.close >= (low240 * 1003n) / 1000n;
        const isBounce = bar.close > history[history.length - 2];
    
        if (isUptrend && isDip && isBounce) {
          hasTraded = true;
          entryPrice = bar.close;
          return [{ action: "buy", quantity: context.cash, max_slippage_bps: 100 }];
        }
      }
    
      if (entryPrice && context.position > 0n) {
        const tp = (entryPrice * 1005n) / 1000n;
        const sl = (entryPrice * 995n) / 1000n;
    
        if (bar.close >= tp || bar.close <= sl) {
          return [{ action: "sell", quantity: context.position, max_slippage_bps: 100 }];
        }
      }
    
      return [];
    });
    

    Next steps

    1. Ensure vendor/makefun-bars.ts is present in your project root.
    2. Run a local simulation using node main.ts against a sample JSON bar feed.
    3. Review the README.md for the full audit of the six-window backtest results.

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

    About this skill

    Trading in the make.fun BTC race competition often fails because bots buy momentum highs in choppy markets, leading to large drawdowns. This skill provides a deterministic TypeScript trading bot specifically engineered for the 24-hour bars-replay format, using a trend-gated dip-entry strategy to minimize risk.

    What it does

    • Trend Gating filters entries by ensuring the 60-bar average close is strictly above the 240-bar average.
    • Dip Entry triggers a buy only when price bounces within a tight 0.3% to 0.5% range of the 240-bar low.
    • One-Trade Limit executes at most one round-trip trade per 24-hour window to prevent over-trading in volatile conditions.
    • Tight Risk Control enforces a hard 0.5% stop-loss and a 0.5% take-profit target on the full position.
    • Deterministic Execution uses integer arithmetic (bigint) to ensure identical results across backtests and live runs.

    How it works

    1. Setup: Place main.ts and the vendor/ directory in your Node.js 22+ environment.
    2. Warmup: The bot processes the first 240 minutes of BTC bars to establish moving average baselines.
    3. Execution: Run the bot via a bars-replay harness using node main.ts.
    4. Monitoring: The bot outputs JSON-line orders based on the agent-fun/bars-replay/v1 protocol.

    Frameworks & tools

    Built with Node.js 22+ and TypeScript using only the standard library. It implements the agent-fun/bars-replay/v1 protocol and includes a self-contained shim for protocol handling.

    Why this beats prompting it yourself

    Writing a bot that strictly adheres to the one-trade-per-window rule while maintaining bigint precision for protocol compatibility is error-prone. This skill includes a verified backtest record from actual competition dev gates, ensuring the logic handles slippage and fees correctly.

    Use cases

    • Entering the make.fun 24-hour BTC trading bot race.
    • Testing dip-buy strategies on 1-minute BTC candle feeds.
    • Scaffolding deterministic agents for the agent-fun replay protocol.

    Known limitations

    Restricted to 1-minute BTC bars and the specific agent-fun protocol. The strategy is designed for a $1,000 starting balance and may underperform on different timeframes or capital levels.

    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

    Free to use

    No account required to browse

    Trust & safety

    Security scan

    Security scan passed 16 days ago

    • Free with an Agensi account

    Software
    Node.js 22+

    Permissions

    Terminal / Shell
    Listed16 days ago

    What's inside

    Frequently Asked Questions

    This skill solves the issue of over-trading and "buying the top" in high-volatility BTC races. It uses trend-gated logic and a strict one-trade-per-day limit to ensure entries only occur during confirmed pullbacks in an uptrend, protecting your capital from choppy market drawdowns.

    The skill includes the primary 'main.ts' logic file, a 'vendor/' directory with essential protocol shims, and documentation on how to run it within a Node.js 22+ environment. You receive a battle-tested bot ready for the agent-fun/bars-replay/v1 protocol.

    No, this skill is specifically engineered for 1-minute BTC candle feeds and the agent-fun competition protocol. Using it on different timeframes or assets without modification may lead to suboptimal performance as the moving average windows and risk parameters are tuned for the 24-hour race format.

    This skill is a deterministic TypeScript bot designed for Node.js environments. While it's not a 'prompt' for an LLM, it acts as a specialized skill for AI agents participating in trade-replay competitions, providing the analytical 'brain' for execution.

    Unlike standard bots that use floating-point math, this skill uses bigint integer arithmetic to ensure execution is 100% deterministic. This ensures that your backtest results will exactly match live competition performance by eliminating rounding errors.

    After installing Node.js 22+, simply place the provided files in your directory and run the bot through your bars-replay harness. The bot will automatically 'warm up' using the first 240 minutes of data to establish its moving average baselines before it starts looking for trade entries.

    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.

    Free