# Freqtrade Strategy Builder

> Builds and safely backtests a crypto trading strategy from your idea.

- **What it does:** Turns your crypto trading idea into a working trading strategy, tests it on past market data, and checks it for hidden mistakes that make results look better than they are. You get a tested strategy and a summary report, run in practice mode with no real money.
- **Agents:** Claude Code and Codex (through orbit-connect), Claude and ChatGPT (through the Orbit connector)
- **Install:** `npx -y --loglevel=error orbit-connect@0.3.33 install skl_99ecd3bb486f758507d94c2d`
- **Creator:** @orbit.earns on Instagram
- **Safety:** Checked by Orbit: use with care. Runs third-party repo shell scripts; crypto trading though dry-run gated
- **Last updated:** 2026-11-23
- **Page:** https://orbitinbox.app/s/freqtrade-strategy-builder

## Skill

---
name: freqtrade-strategy-builder
description: Use when you say build me a crypto trading strategy and test it for bias before trading; it turns the idea into a Freqtrade strategy, backtests it on historical data, runs lookahead/recursive/out-of-sample bias checks, and dry-runs it with no exchange keys.
---

# Freqtrade Strategy Builder

## What it does

This skill turns a trading idea into a working Freqtrade strategy and runs it through a safety-first research workflow:

- Translates a trading hypothesis into explicit Freqtrade rules
- Generates and reviews `IStrategy` implementations
- Downloads historical market data (the example workflow uses 730 days of BTC/USDT and ETH/USDT candles on the 1h timeframe)
- Runs backtests and creates concise Markdown summaries
- Runs Hyperopt only after a valid baseline backtest passes
- Checks lookahead bias and recursive indicator variance
- Enforces in-sample and out-of-sample evaluation before trusting results
- Starts in dry-run mode by default, with a simulated wallet and no exchange credentials
- Detects likely plaintext secrets in JSON configs
- Double-gates every live-trading command behind an explicit environment variable and explicit user approval

The project states it is an agent workflow and tooling package, not a trading signal service, and does not promise profitability.

## What you need

- Docker with Compose v2
- `curl`
- Python 3.10 or later, for the bundled local validation and reporting scripts
- Claude Code, Codex, or another Agent Skills-compatible coding agent
- No exchange API keys are required for the backtest, bias-check, or dry-run workflow described here

## Setup

Install as a repository-local skill for Claude Code:

```bash
git clone https://github.com/dieumerci8/freqtrade-strategy-builder.git \
  .claude/skills/freqtrade-strategy-builder
chmod +x .claude/skills/freqtrade-strategy-builder/scripts/*.sh
```

For Codex and other agents, clone into the directory where your client discovers Agent Skills:

```bash
git clone https://github.com/dieumerci8/freqtrade-strategy-builder.git
cd freqtrade-strategy-builder
chmod +x scripts/*.sh
./scripts/smoke_test.sh
```

Initialize a Freqtrade workspace (this downloads the official stable Freqtrade Compose file, creates `user_data`, installs the example strategy and a dry-run config, and stops without launching a bot):

```bash
./scripts/bootstrap.sh ./ft_userdata
```

Check the environment:

```bash
cd ./ft_userdata
../freqtrade-strategy-builder/scripts/ft.sh doctor
```

Validate the config (from the repository root, as shown in the project's research workflow):

```bash
python3 scripts/validate_config.py user_data/config.json
```

## How to use it with Claude

- "Use the freqtrade-strategy-builder skill to create a long-only BTC/USDT and ETH/USDT strategy on the 1h timeframe, starting from the included EMA/RSI template."
- "Download two years of historical data and run a baseline backtest on this strategy."
- "Run lookahead-analysis and recursive-analysis on this strategy and tell me if there's bias before we go further."
- "Test the final hyperopt parameters out of sample and compare them to the baseline."
- "Start this strategy in dry-run mode only. Do not start live trading."
- "Summarize the backtest results: win rate, max drawdown, and whether bias checks passed."

This skill can download market data and run local backtests and a dry-run bot with a simulated wallet; it does not place real trades unless you explicitly set the live-trading environment variable and confirm, as described in the project's safety gate. Use it only with your own exchange accounts and within that exchange's terms of service.

## Credits

Made by dieumerci8 (Freqtrade Strategy Builder), packaged by Orbit.
https://github.com/dieumerci8/freqtrade-strategy-builder, license: MIT

Shared by @orbit.earns, credited on Orbit.