{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "freqtrade-freqtrade--backtest-a-crypto-strategy-with-freqtrade",
 "repo": "freqtrade/freqtrade",
 "repo_url": "https://github.com/freqtrade/freqtrade",
 "repo_slug": "freqtrade-freqtrade",
 "title": "Backtest a crypto strategy on real exchange data",
 "page_title": "How to backtest a crypto strategy on real exchange data with Freqtrade",
 "summary": "Create a user directory and strategy, download candles, and simulate your buy and sell rules.",
 "who": "A developer with a crypto strategy idea who wants to see how it would have done before running it.",
 "problem": "Without a simulation you only learn a strategy is bad after it loses money.",
 "outcome": "Backtest results for your strategy on downloaded exchange data, plus a check for look ahead bias.",
 "steps": [
  "Follow the Docker Quickstart in the docs, or install natively with Python 3.12 or newer",
  "Run Freqtrade with `create-userdir`, then `new-config` and `new-strategy` to scaffold your setup",
  "Download candles with `download-data` for your pairs and timeframe",
  "Run `backtesting` and review past results with `backtesting-show`",
  "Check the strategy for look ahead bias with `lookahead-analysis`"
 ],
 "agent_prompt": "Using freqtrade/freqtrade, scaffold a user directory and a strategy for <idea> on <pairs> and <timeframe>, download data, backtest it over <period>, and run lookahead-analysis. Report profit, drawdown and trade count, and any bias it found.",
 "agents": [
  "any"
 ],
 "difficulty": "Intermediate",
 "time": "1 hour",
 "basis": "readme",
 "caveat": "Backtests on past candles do not guarantee future results. Not financial advice: paper trade first, and remember you can lose money.",
 "category": "Money",
 "tags": [
  "Money"
 ],
 "lang": "python",
 "requirements": [
  "Python 3.12 or newer, pip, git and TA-Lib, or Docker",
  "An accurate system clock synced to NTP",
  "About 2GB RAM, 1GB disk and 2 vCPU recommended",
  "Exchange API keys only when you move past dry-run"
 ],
 "risk": "sensitive",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/freqtrade-freqtrade/backtest-a-crypto-strategy-with-freqtrade/",
 "md": "https://dedupedai.com/use-cases/freqtrade-freqtrade/backtest-a-crypto-strategy-with-freqtrade/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/freqtrade-freqtrade--backtest-a-crypto-strategy-with-freqtrade.json",
 "api_version": "v1"
}
