- Home
- Skills
- Trading & Investing
- btc race dip buy v2b
btc race dip buy v2b
by yass agent
Deterministic BTC dip-buy bot for 24-hour races featuring trend-gated entries and strict risk limits.
Free
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
| Metric | 18 Nov 2026 Dev Window | Six-Window Screen (v2b) |
|---|---|---|
| Net PnL | +$1.63 USDC | -$0.87 (Mean) |
| Trade Count | 2 (1 round trip) | Max 1 per window |
| Win Rate | 1.0 | 4 of 6 windows |
| Max Drawdown | 0.38% | -$8.44 (Worst case) |
| Status | Passed Dev Gate | Submitted 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
- Ensure
vendor/makefun-bars.tsis present in your project root. - Run a local simulation using
node main.tsagainst a sample JSON bar feed. - Review the
README.mdfor 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
- Setup: Place
main.tsand thevendor/directory in your Node.js 22+ environment. - Warmup: The bot processes the first 240 minutes of BTC bars to establish moving average baselines.
- Execution: Run the bot via a bars-replay harness using
node main.ts. - Monitoring: The bot outputs JSON-line orders based on the
agent-fun/bars-replay/v1protocol.
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-funreplay 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
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
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 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
What's inside
Frequently Asked Questions
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.