# btc-dip-rider

> A deterministic, long-only BTC trading bot for 1-minute bars using SMA dip-buying and hard exit targets.

btc-dip-rider is a paid AI agent skill on Agensi by Meridian Labs, in Trading & Investing. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $9 (one-time purchase)
- Creator: [Meridian Labs](https://www.agensi.io/creators/sendy-admpbs)
- Category: [Trading & Investing](https://www.agensi.io/skills/trading-investing)
- Version: 1.0
- Last updated: 2026-11-21
- Security: scan passed (2026-11-21); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/btc-dip-rider
- Tags: trading, typescript, backtesting, node-js, bitcoin

## About this skill

High-frequency market noise often eats profits through fees and slippage, especially when trading on 1-minute intervals. This skill implements a deterministic, long-only BTC dip-buying strategy designed to filter out noise and capture multi-hour swings.

### What it does
- **SMA-based Entry** triggers a buy when the current BTC price drops 75 basis points below the 90-bar Simple Moving Average.
- **Deterministic Logic** ensures identical outputs for the same input bars by avoiding system clocks, environment reads, and randomness.
- **Automated Exit Management** executes a take-profit at +180 bps or a hard stop-loss at -100 bps from the cost basis.
- **Slippage Protection** enforces a strict 100 bps cap on every order relative to the closing price to prevent fills in gap-down scenarios.
- **Quote-Unit Precision** uses bigints for all arithmetic to eliminate floating-point errors during backtesting and execution.

### How it works
1. **Initialize** the bot using a bars-replay protocol that feeds 1-minute BTC/USDC bar data via stdin.
2. **Buffer** the first 90 closes to establish the baseline Simple Moving Average before evaluating trade signals.
3. **Monitor** price action relative to the SMA-90, entering a 100% cash position when the dip threshold is met.
4. **Evaluate** every subsequent bar for the +180 bps take-profit or the -100 bps hard stop-loss targets.

### Frameworks & tools
This skill is built with TypeScript and Node 22, utilizing native type stripping for execution without a build step. It relies on a standard library only and adheres to the `agent-fun/bars-replay/v1` protocol for data ingestion and order output.

### Why this beats prompting it yourself
Writing trading logic via natural language prompts often introduces floating-point drift and non-deterministic behavior. This skill provides a verified, math-heavy implementation that passed a 24-hour live trading race and maintains byte-for-byte consistency across multiple runs.

### Use cases
- **Backtesting Harnesses** where you need a stable baseline strategy to test against historical 1-minute bar data.
- **Paper Trading Sandboxes** that require a bot to operate within strict slippage and fee constraints.
- **Strategy Research** for developers building more complex multi-asset bots who need a proven dip-buying module.

### Known limitations
The bot is restricted to long-only positions on a single symbol and does not support leverage or shorting. It requires a 90-bar warmup period and assumes a high-liquidity environment with available pool-depth data.

## 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-dip-rider skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What is the core trading strategy of the btc dip rider skill?

This skill automates a long-only BTC dip-buying strategy on 1-minute intervals, using a 90-bar SMA to identify entry points while enforcing strict take-profit and stop-loss targets to manage risk.

### Which AI agent frameworks or platforms are compatible with this skill?

The skill is built on the `agent-fun/bars-replay/v1` protocol, making it compatible with any AI agent or trading framework that supports standard stdin/stdout data streams and Node 22.

### How does this skill handle the 'noise' and calculation errors common in 1-minute trading?

Unlike prompt-based bots, this skill uses deterministic logic and bigint arithmetic to eliminate floating-point errors and randomness, ensuring identical execution results across backtesting and live environments.

### What exactly is included in the purchase of this skill?

You receive the complete TypeScript source code optimized for Node 22, including the SMA logic, slippage protection modules, and the bars-replay protocol integration.

### Are there any specific technical requirements or limitations I should be aware of before deploying?

The bot requires a 90-bar warmup period to establish its SMA baseline and is designed for high-liquidity BTC/USDC pairs; it does not support shorting, leverage, or multi-asset portfolios.

---

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.
