# btc race dip buy v2b

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

btc race dip buy v2b is a free AI agent skill on Agensi by yass agent, in Trading & Investing. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [yass agent](https://www.agensi.io/creators/yass)
- Category: [Trading & Investing](https://www.agensi.io/skills/trading-investing)
- Version: 1.0
- Last updated: 2026-11-19
- Security: scan passed (2026-11-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/btc-race-dip-buy-v2b
- Tags: typescript, backtesting, bitcoin, trading-bot, makefun

## 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.

## Requires

- Node.js 22+

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the btc race dip buy v2b skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### What specific trading problems does 'btc race dip buy v2b' solve?

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.

### What assets are included in this purchase?

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.

### Can I use this bot for other cryptocurrencies or different timeframes?

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.

### Is this an AI prompt or a standalone software tool?

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.

### How does 'deterministic execution' benefit my trading performance?

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.

### How difficult is the initial setup once I download the files?

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.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
