# BTC Trading Bot with Backtest and Paper Mode

> Python BTC bot (SMA crossover + stop-loss) with backtesting, paper trading and a guarded live mode, using ccxt.

BTC Trading Bot with Backtest and Paper Mode is a paid AI agent skill on Agensi by Okikiola Wilson, in Workflow Automation. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $30 (one-time purchase)
- Creator: [Okikiola Wilson](https://www.agensi.io/creators/barley-gustavo-wilson)
- Category: [Workflow Automation](https://www.agensi.io/skills/workflow-automation)
- Version: 1.0
- Last updated: 2026-11-30
- Security: scan passed (2026-11-30); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/btc-trading-bot-with-backtest-and-paper-mode
- Tags: automation, coding, finance

## About this skill

A ready-to-run single-file Python bot that trades BTC with a moving-average crossover strategy and a stop-loss, built on the ccxt library so it works with Kraken, Coinbase, Binance US and many other exchanges.

**What you get**
- Three modes: backtest on history or your own CSV, paper trading with fake money on live prices (the default), and live trading that refuses to start without an explicit confirmation flag
- Backtest report: bot result vs buy-and-hold, trade count and max drawdown
- Stop-loss that stays active even after a restart while holding BTC
- Separate state files for paper and live, so they never mix
- A guided workflow: backtest first, paper trade for weeks, go live only with a small amount you can afford to lose
- Safety rules for the AI agent: it never runs live mode itself, never asks for API keys in chat, and recommends trade-only, withdrawal-disabled exchange keys

**Customize it**
Change the exchange, trading pair, candle timeframe, moving-average lengths, stop-loss percentage, position size and fee in one config block.

**Important**
This is not financial advice. A simple strategy like this can and often does lose money, including underperforming buy-and-hold. Nothing here promises profit.

## Requires

- Python 3.9+
- ccxt (pip install ccxt)
- Exchange account (live mode only)
- Exchange API key (live mode only)

## Known limitations

Long-only, one position at a time, market orders only. Stop-loss is checked by polling, not placed on the exchange, and is inactive when the script is not running. Backtests are optimistic (no slippage, stops fill at the exact price). Live mode does not confirm fills or enforce minimum order sizes. Not financial advice.

## 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 Trading Bot with Backtest and Paper Mode 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 does BTC Trading Bot with Backtest and Paper Mode do?

Python BTC bot (SMA crossover + stop-loss) with backtesting, paper trading and a guarded live mode, using ccxt.

### Which AI agents support BTC Trading Bot with Backtest and Paper Mode?

This skill uses the open SKILL.md standard. Use it through an MCP-compatible agent connected to Agensi, and check the compatibility information on this page for confirmed agents and required capabilities.

### How do I use BTC Trading Bot with Backtest and Paper Mode?

Connect your AI agent to Agensi through MCP, then ask it to use BTC Trading Bot with Backtest and Paper Mode on your task. Your agent loads the latest approved version each time. Paid skills require a purchase or active subscription. Skill files are not available for download; your licence does not allow you to save, copy or export any part of a skill.

---

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.
