# The 10,000 Trading Strategy Test

**The full plan, all 50 strategies, every prompt and the results from the Miles Deutscher Finance video "Claude Tested 10,000 Trading Strategies (Only These Won)".**

This is the whole method from the video: the plan written down before anything ran, the 50 popular strategies with their 10 settings each, the random-twin test, the six checks, the breakout strategy that won, and the results Claude came back with. You can use it three ways: test your own strategy or bot against random twins, re-run the full 10,000 test yourself, or test the breakout strategy on your own coins and dates.

## How to use this file

**Best: Claude Code** (what Miles uses in the video). Make an empty folder, open Claude Code in it, drag this file in and type:

```
Set this up for me.
```

**Also works in Claude or ChatGPT** in the browser or app, as long as they can run code. Upload this file and type the same thing. Chat apps usually can't download prices on their own, so they'll walk you through downloading a few price files and uploading them. They can also time out on very long runs, so they'll offer you a smaller version of the full test.

**Good to know before you start**

- Everything here is a **backtest**: it runs strategies on past prices to see what they would have done. No exchange account and no money are involved, nothing ever gets traded, and crypto prices need no API key.
- A strategy that passes every check is still only a backtest. If you ever want to trade one, test it on a paper (demo) account first.
- This is education, not financial advice.

---

## FOR THE AI: how to run this setup

You are setting up the 10,000 Trading Strategy Test from Miles Deutscher's video for the user. Follow these rules for the whole session.

1. **One question at a time.** Ask, wait for the answer, then ask the next. Each question shows a suggestion (usually what the video used), so offer it and let the user just say yes.
2. **Fill the brackets, change nothing else.** When you save the plan and use the prompts below, replace only the `[BRACKETS]` with the user's answers. Leave every other word exactly as written. Some brackets are worked out rather than asked: `[NUMBER OF STRATEGIES]`, `[NUMBER OF SETTINGS]`, `[NUMBER OF TIMEFRAMES]`, `[NUMBER OF COINS]` and `[TOTAL]` come from the answers; `[FIRST START YEAR]` is the year scoring starts and `[LAST START YEAR]` is the last full year; `[NUMBER OF TWINS]` is 10 in Parts B and C unless the user asks for more.
3. **Backtesting only.** Never connect an exchange, broker or wallet, never place, change or cancel an order, and never ask for or accept an API key, secret, password or seed phrase in the chat. If the user pastes one, tell them to delete it and make a new one, and don't use it. Crypto prices need no key. The only key this file ever mentions is an optional stock-data key, which the user puts in a `.env` file on their own computer, never in the chat.
4. **Ask before any account or app gets connected.** Nothing here needs one.
5. **Real numbers only.** Every number you report must come from code you ran on real price data and saved to a file. Never estimate, never fill a gap from memory, never present an example as a result. If you can't run something, say so plainly.
6. **Expect first, then test, never move the goalposts.** Before each test, write down what you expect. After it, compare. Never change a rule because of a result: a change is a new, numbered test.
7. **Run each part once, in order.** Don't redo a finished step unless the user asks.
8. **Plain English.** Before each step, say in one sentence what you're about to do. After it, say what you found. The first time a term comes up (backtest, long, short, worst drop, Sharpe ratio, overfitting), explain it in one line.
9. **Finish with a summary:** what's set up, where the files are, what ran, the headline results, and the limits in the "Before you trust any of this" section at the end of this file.

### Step 0: check what you can do

Do these checks quietly, then tell the user in one or two lines what you found.

- **Can you run Python?** If not, say you can't run backtests here and offer two things: (a) move to Claude Code, which can do everything in this file, or (b) Part D, exploring the video's strategies and results with no code. You can also write out the project files (plan, strategy list, prompts) for them to run later. Don't invent any numbers.
- **Can you save files on the user's computer?** (Claude Code can.) Don't create anything yet. After the questions, make a project folder with the filled `PLAN.md`, `STRATEGIES.md` and an empty `results/` folder; Prompt 1 writes the house rules file (`CLAUDE.md`) itself. In a chat app, keep the same files in your workspace and offer them as a download at the end. Part D needs no files.
- **Can your code reach the internet?** Try one small request for public price data (see "Where the prices come from"). If it works, download everything yourself. If it doesn't, give the user exact download links and ask them to upload the files.
- **Will long runs time out?** In a chat app, run in batches and save progress to files between batches, and offer the smaller version of Part B.

### Step 1: ask what they want to do

Ask this first, then go to that part's questions:

> What would you like to do?
> **A.** Test my own strategy or bot against random twins (the most useful, and the quickest)
> **B.** Re-run the full 10,000 test from the video
> **C.** Test the breakout strategy that won, on my own coins or newer data
> **D.** Just go through the 50 strategies and the video's results, no code

---

## Part A: Test your own strategy against random twins

**What it does.** Backtests your strategy with the plan's rules, makes random twins of it (same coin, same number of trades, same time long, same time short, same average hold, only the timing random), puts yours and the twins through the same six checks, and tells you whether your rules beat random timing.

**Questions to ask, one at a time**

1. What's your strategy? `[YOUR STRATEGY]` Rules in plain words are fine (when it buys, when it sells, when it shorts if it does). Code or a TradingView Pine Script also works. They can also pick any of the 50 strategies below by number, to play around with the video's strategies on their own coins. If they have a bot that's already running, they can upload its trade history (a CSV of entries and exits) instead: then use "If they uploaded a bot's trade history" below.
2. Which coins? `[COINS]` (suggest one to three of Bitcoin, Ethereum, Solana, XRP and BNB, the coins in the video)
3. Which timeframe? `[TIMEFRAMES]` (suggest daily; the video used daily and 4-hour)
4. Does it only buy, or does it short too? `[YOUR MODE]` (the plan tests every strategy both ways anyway, as in the video; their answer says which result matters most for them)
5. What's its main setting, and which values should be tested? `[YOUR SETTINGS]` (suggest their value plus a few either side, 10 in total like the video, because check 5 compares neighbouring settings; with only one setting, check 5 can't run, so say so)
6. Which dates? `[SCORING START]` to `[CUT-OFF DATE]` (suggest 1 January 2019 to the last full day)
7. What fee per trade? `[FEE]` (suggest 0.1% per side, as in the video)
8. How many random twins? `[NUMBER OF TWINS]` (the video made 10 per strategy; for a single strategy suggest 1,000, because it's quick and separates a real edge from random results far more clearly)
9. Shall I use the video's choices for the rest? Binance prices as `[EXCHANGE]`, 20261117 as the random seed `[SEED]`, and the video's crash windows as `[CRASH WINDOWS]` where their dates cover them (see Part B).

**What to run, in order**

1. Fill and save the plan (`PLAN.md`, below). Put only their strategy (or the ones they picked from the 50) in `STRATEGIES.md`, in the same format as the list in this file. The final strategy sections of the plan stay in the file but aren't run.
2. Prompt 1 (lock the plan), Prompt 2 (download the prices), Prompt 3 (prove the backtester works), Prompt 4 (code the strategies and run the peeking check).
3. Then this prompt:

```
Here's what I really want to know: is my strategy actually good, or are its results just random?

Backtest [YOUR STRATEGY] on [COINS], on the [TIMEFRAMES] chart, at each of these settings: [YOUR SETTINGS], the way the plan says. Then for every backtest, make a random twin. It goes long and short at random, but with the same number of trades, the same time long, the same time short and the same average hold, on the same coin. Give each twin [NUMBER OF TWINS] versions with different random seeds, so it faces exactly the same checks as the real one.

Before you run it, write down how many random ones you think will beat holding. Then put my strategy and its twins through the funnel in the plan, in order, and count both at every step. Tell me how many of the twins beat my strategy, where mine ranks among them, and in plain English whether my rules look like a real edge or random results, especially [YOUR MODE].
```

4. Optional: Prompt 9 (the crashes), if their dates cover any of the crash windows.
5. Offer Prompt 11 (the dashboard) at the end.

**If they uploaded a bot's trade history.** There are no rules to code, so skip Prompt 4 and the prompt above. `[SCORING START]` and `[CUT-OFF DATE]` come from the first and last trade in the file, and `[YOUR SETTINGS]` isn't asked. Run Prompts 1, 2 and 3, then this prompt:

```
Here's what I really want to know: is my bot actually good, or are its results just random?

I've uploaded its trade history. Turn it into positions on the [TIMEFRAMES] chart for [COINS] (long, short or out on every candle), check it against the prices, and score it the way the plan says, against holding the same coin. Then make a random twin of it. It goes long and short at random, but with the same number of trades, the same time long, the same time short and the same average hold, on the same coin. Give it [NUMBER OF TWINS] versions with different random seeds.

Before you run it, write down how many random ones you think will beat my bot. Then put my bot and its twins through checks 1, 2, 3, 4 and 6 of the funnel in the plan (check 5 needs settings, so skip it), and tell me where mine ranks among the twins and in plain English whether it looks like a real edge or random results.
```

**How to read the answer.** If your strategy can't clearly beat its random twins, its rules for when to buy and sell aren't adding anything, and its results are most likely random. With 1,000 twins, beating at least 950 of them is a strong result. Beating the average of 10 is a much weaker one.

---

## Part B: Re-run the full 10,000 test from the video

**What it does.** The whole video, start to finish: lock the plan, download the prices, prove the tester works, code the 50 strategies, run every backtest, make the random twins, run the six checks, compare the crashes, build the final strategy and a dashboard. In the video this took about an hour in Claude Code.

**Questions to ask, one at a time**

1. Which coins? `[COINS]` (the video: Bitcoin, Ethereum, Solana, XRP and BNB)
2. Where should the prices come from? `[EXCHANGE]` (the video: Binance, USDT pairs, free public data)
3. Which timeframes? `[TIMEFRAMES]` (the video: daily and 4-hour)
4. When should scoring start? `[SCORING START]` (the video: 1 January 2019; prices load from 2 years earlier, or the coin's listing, so the indicators can warm up)
5. What's the last day of data? `[CUT-OFF DATE]` (suggest the last full day before today; the video used 16 November 2026)
6. What fee per side? `[FEE]` (the video: 0.1%)
7. Pick any number as the random seed, so your results can be repeated exactly: `[SEED]` (the video: 20261117)
8. Which crashes do you want to look at? `[CRASH WINDOWS]` (the video: COVID, 20 Feb to 30 Apr 2020; May 2021, 10 May to 30 Jul 2021; LUNA, May to June 2022; FTX, Nov to Dec 2022; and the 2025 to 2026 drop, from the 2025 Bitcoin high to the 2026 low. Suggest adding any newer crash in their dates.)
9. Do you want the bonus test that got cut from the video, flipping the worst strategies? (yes or no)

**The smaller version for chat apps.** If you're in a chat app that can't do long runs, offer daily candles only and two coins. That's 50 × 10 × 2 × 1 × 2 = 2,000 backtests, which still shows the whole method.

**What to run, in order:** Prompts 1 to 11 below. Prompt 8 only if they said yes to the bonus test. If they skip it, leave the "flipping the losers" tab out of the dashboard and say so.

---

## Part C: Test the breakout strategy that won

**What it does.** In the video, breakouts beat their random twins by more than any other type, so the plan built them into one strategy: 80 breakout signals voting on every coin every 4 hours, with a Bitcoin 200-day trend switch on top. This part builds that same strategy on your coins and dates and runs it against 100 random portfolios and holding.

**Questions to ask, one at a time**

1. Which coins? `[COINS]` (the video: Bitcoin, Ethereum, Solana, XRP and BNB)
2. Which timeframe? `[TIMEFRAMES]` (the video: 4-hour)
3. Which dates? `[SCORING START]` to `[CUT-OFF DATE]` (suggest 1 January 2019 to the last full day. Tell them: the video picked breakouts using prices up to 16 November 2026, so only results after that date are a truly fresh test of the pick.)
4. Fee per side? `[FEE]` (the video: 0.1%)
5. Which crashes? `[CRASH WINDOWS]` (offer the video's five, see Part B)
6. Shall I use the video's choices for the rest? Binance prices as `[EXCHANGE]` and 20261117 as the random seed `[SEED]`.

**What to run, in order**

1. Fill and save the plan, with one change before Prompt 1 locks it: replace rule 1 of THE FINAL STRATEGY with `1. Family: Breakout (the video's pick). Timeframe: [TIMEFRAMES].` The funnel sections stay in the file but aren't run. Put only the 8 breakout strategies (numbers 10 to 17) in `STRATEGIES.md`.
2. Prompts 1, 2, 3 and 4.
3. Then this prompt:

```
First check that PREREGISTRATION.md still matches the hash we saved at the start.

Then make the random twins of every breakout strategy and setting the way the plan says, and build the final strategy exactly as the plan says, with no changes.

Run it with the Bitcoin 200-day switch on and off, build the 100 random portfolios the same way, and start it in every month from [FIRST START YEAR] to [LAST START YEAR]. Show me $10,000 in our strategy against the random portfolios, holding the [NUMBER OF COINS] coins (normally and at the same risk) and holding Bitcoin, year by year and through each crash. Then go through the gate one check at a time and tell me pass or fail.
```

4. Offer Prompt 11 (the dashboard) at the end.

---

## Part D: Explore the strategies and the results, no code

**What it does.** Walks the user through the 50 strategies, the six checks and the video's results, and answers their questions. Use only the numbers in "The results from the video" below. Any new number needs code, so offer Part A, B or C for that. The 762 individual backtests that passed all six checks aren't listed in this file; running Part B produces that full list in its funnel results.

**The six checks in plain words** (the same checks you'd want to run on any trading bot)

1. **Beats holding.** It made more than just buying the coin and doing nothing.
2. **Worst drop no more than 50%.** It never fell more than half from its highest point. Most people would give up on a bot that drops 70%.
3. **Not overfit.** It did at least half as well on the hidden test data as on the practice data.
4. **At least 20 trades.** A handful of trades could just be a fluke.
5. **Nearby settings work too.** The settings right next to the one you're using also beat holding. If it only works at one exact number, that number was probably a fluke.
6. **Still wins at double fees.** Real trading costs can be higher than you planned for.

The first four are the standard checks. In the video they passed almost as many random strategies as real ones. Check 5 was the first that removed far more random strategies than real ones.

---

## The plan (save as PLAN.md)

Fill the brackets, then save it. Prompt 1 locks it so it can't change once results come in. For Part A, the final strategy sections stay in the file but aren't run.

```
# My plan

This is my plan for the test. It gets locked as PREREGISTRATION.md at the start, before anything runs.

## Fixed so the numbers don't move
- Data cut-off: the last candle is [CUT-OFF DATE] (UTC). Don't use anything after it.
- Random seed: [SEED] for anything random (random twins, random portfolios, test data).
- The strategies and their settings are the ones in STRATEGIES.md, coded exactly as described there.
- Crash windows: [CRASH WINDOWS].

## Settings
- Coins: [COINS]. [EXCHANGE] candles.
- Two modes for every strategy. Long-only: positions 1 or 0. Long-short: positions 1, 0 or -1 (the strategy's sell signal becomes a short).
- Long-short mode trades perps: shorts and longs pay or receive perpetual funding (public funding-rate history; use 0.01% every 8 hours where none exists). Long-only mode is spot, with no funding.
- Signal on the close, trade at the next bar's open. Fee [FEE] per side. Years are 365 days.
- Timeframes: [TIMEFRAMES]. Load data from 2 years before [SCORING START] (or listing) for warm-up. Scoring runs from [SCORING START] to the last complete day. A coin that lists later is scored from 30 days after listing.
- Each backtest is one strategy, at one setting, in one mode, on one timeframe, on one coin.
- Tuning parts and test parts: split the calendar from [SCORING START] to the last complete day into 5 equal windows. In each window, the first 70% is a tuning part and the last 30% is a test part. A backtest's result is its 5 test parts stitched together. Tuning parts are used only for the overfit check and for choosing settings.
- Every result is compared with simply holding that same coin over the same scored bars.

## THE COUNT
[NUMBER OF STRATEGIES] strategies × [NUMBER OF SETTINGS] settings × 2 modes × [NUMBER OF TIMEFRAMES] timeframes × [NUMBER OF COINS] coins = [TOTAL] backtests.

## RANDOM TWINS
Every backtest gets a random twin: same coin, same number of trades, same time long, same time short and same average hold. Only the timing is random.
- Take the real strategy's positions over the whole scored span in one piece and split them into stretches (out, long, short).
- Keep the order of the stretches. For each type, split that type's total bars at random into the same number of stretches, each at least 1 bar.
- [NUMBER OF TWINS] versions per backtest, each seeded from the main seed plus the backtest's details (strategy, setting, mode, timeframe, coin, version).
- Twins run through the same tester, on the same parts, with the same fees and funding.

## THE FUNNEL
(applied to real and random backtests alike, in order):
1. Beats holding the same coin on the stitched test parts (total return).
2. Worst drop on the stitched test parts no more than 50%.
3. Overfit check: test-part Sharpe at least half the tuning-part Sharpe (and positive).
4. At least 20 trades on the test parts (each entry and each exit counts as one).
5. Nearby settings: the settings one step lower and one step higher (same strategy, mode, coin, timeframe) also pass check 1. Edge settings need their one neighbour to pass. For a random twin, version j of the twins of the neighbouring settings must also pass check 1.
6. Double fees: still passes check 1 at double the fee per side, charged to both the strategy and holding.
A family beats its random twins when its real survival count is above every one of its random versions.

## THE FINAL STRATEGY
(a family ensemble with a regime switch; no choosing afterwards):
1. Family: the family whose real survival rate is furthest above its random twins' survival rate (both modes combined). Timeframe: the timeframe where that family's gap over its random twins is larger.
2. Signal per coin: the average of the long-short signals (+1, 0, -1) of every strategy and every setting in that family, on that timeframe, giving a number between -1 and +1.
3. Regime switch: while BTC's previous daily close is above its 200-day simple average, only the positive part counts (shorts become 0). While it's below, only the negative part counts (longs become 0).
4. Portfolio: all coins. Each coin with signal s ≠ 0 gets weight |s| × (1 / its 30-day volatility) divided by the sum of (1 / 30-day volatility) over coins with s ≠ 0, capped at 30% per coin, in the direction of s. The rest is cash. Rebalance when a coin's target weight moves by more than 5 percentage points. Fees [FEE] per side, funding on perp positions.
5. Comparison run: the same thing with the regime switch OFF. Reported only, not part of pass/fail.
6. Scored from [SCORING START] to the last complete day, from $10,000.

## RANDOM PORTFOLIOS
100, built the same way (same family, settings, timeframe, switch and sizing) from the random twins' signals instead of the real ones. Portfolio j uses version j's random twin of every strategy and setting in the family (versions beyond the ones already made are drawn the same way with the next seeds).

## THE GO/NO-GO GATE
(all must pass):
1. Beats at least 95 of the 100 random portfolios.
2. Makes money.
3. Beats holding the coins (equal weight, bought on the first scored day or at a later coin's start, never rebalanced) scaled to the strategy's average exposure (that share invested, the rest in cash).
4. Higher yearly return ÷ worst drop than holding the coins at 100%.
5. Worst drop smaller than holding BTC's.

## EVERY START MONTH
(reported): start $10,000 on the 1st of every month from [FIRST START YEAR] to [LAST START YEAR], run to the last complete day. Report the share of start months where it beat risk-matched holding, the share where it beat holding the coins at 100%, and the median and worst of its worst drops.

## WHAT WE DO WITH EACH OUTCOME
- Passes all five gate checks: GO. Worth paper trading next. It's still only a backtest.
- Fails any check: NO-GO. Don't trade it. That's a finding, not a failure.

## BUILD DETAILS FOR THE FINAL STRATEGY
- Bar grid: the timeframe the plan picks. The Bitcoin switch uses Bitcoin's most recent completed daily close against its 200-day simple average of daily closes, and the position changes at the next bar's open.
- 30-day volatility: the standard deviation of the last 30 daily returns, from completed daily closes.
- Capped weight is not handed to other coins; it stays in cash.
- Rebalance a coin only when its new target is more than 5 percentage points away from the weight it was last traded to. Other coins are left alone.
- Longs are spot (no funding) and shorts are perps that pay or receive funding.
- A coin that lists later joins 30 days after listing. Until then the portfolio has fewer coins.
- Holding the coins: an equal share of $10,000 into each coin on the first scored day. A later coin's share waits in cash until it joins, then buys it. Never rebalanced.
- Crash windows are read off the main run (no fresh start).
```

---

## The 50 strategies (save as STRATEGIES.md)

Six families, 10 settings each. "Setting" says what the one main setting changes. Where this list doesn't spell out a detail, use the textbook version of the indicator, write the choice into `STRATEGIES.md` before anything runs, and tell the user.

**Coding conventions** (what Claude used in the video): every strategy says +1 (long), 0 (out) or -1 (short) on each candle, decided on that candle's close using only that candle and earlier ones, and in long-only mode -1 just means out. Warm-up candles are 0. Derived lengths (like fast = slow ÷ 4) round to the nearest whole number, halves up, minimum 1. ATR, RSI and ADX use Wilder smoothing. Bollinger bands use the population standard deviation. Breakout levels compare the close with the high or low of the previous n candles, not including the current one. Strategies with entry and exit rules hold until a rule fires, and on each candle the exit is checked first, so an opposite signal flips the position on the same candle. A value exactly on the line gives 0.

| # | Strategy | Family | What it does | Setting | The 10 settings |
|---|---|---|---|---|---|
| 1 | sma_cross | Trend | Long when SMA(slow/4) is above SMA(slow), short when below | slow length | 20, 30, 40, 50, 75, 100, 125, 150, 200, 250 |
| 2 | ema_cross | Trend | Long when EMA(0.4 × slow) is above EMA(slow), short when below | slow length | 10, 15, 21, 26, 34, 50, 75, 100, 150, 200 |
| 3 | price_vs_sma | Trend | Long when the close is above its SMA, short when below | SMA length | 10, 20, 30, 50, 75, 100, 125, 150, 200, 250 |
| 4 | macd_cross | Trend | Long when the MACD line is above its signal line, short when below | slow length (26 = classic 12/26/9, the others scale) | 12, 16, 20, 26, 32, 40, 52, 65, 80, 104 |
| 5 | supertrend | Trend | ATR(10) band; flips long on a close above it, short on a close below | ATR multiplier | 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, 6 |
| 6 | parabolic_sar | Trend | Long while above the Parabolic SAR trailing stop, short while below | acceleration step | 0.005, 0.0075, 0.01, 0.0125, 0.015, 0.02, 0.025, 0.03, 0.04, 0.05 |
| 7 | adx_dmi | Trend | Follows the leading DI when ADX > 20; flat when ADX is weak | DMI/ADX length | 7, 10, 14, 18, 22, 26, 30, 40, 50, 60 |
| 8 | ichimoku | Trend | Long above the cloud with conversion > base, short in the mirror case, else flat | base length (26 = classic; cloud shifted forward by it) | 10, 14, 18, 22, 26, 30, 36, 44, 52, 65 |
| 9 | hull_ma | Trend | Long while the Hull MA is rising, short while it is falling | Hull length | 9, 14, 20, 26, 34, 45, 55, 75, 100, 150 |
| 10 | donchian | Breakout | Long on a close above the prior n-bar high, flip short below the prior n-bar low | n | 10, 15, 20, 30, 40, 55, 70, 90, 120, 150 |
| 11 | turtle | Breakout | Enter on an n-bar break, exit on the opposite n/2-bar break | n | 10, 15, 20, 30, 40, 55, 70, 90, 120, 150 |
| 12 | bollinger_breakout | Breakout | Long above the upper 2-sd band, short below the lower; exit at the middle | band length | 10, 14, 20, 26, 34, 40, 50, 60, 80, 100 |
| 13 | keltner_breakout | Breakout | Long above EMA20 + k × ATR, short below EMA20 - k × ATR; exit at the EMA | k | 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2, 2.5, 3, 3.5 |
| 14 | aroon | Breakout | Long if the n-bar high is more recent than the n-bar low, short if the low is | n | 10, 14, 20, 25, 30, 40, 50, 75, 100, 150 |
| 15 | near_high_low | Breakout | Long within 5% of the n-bar high, short within 5% of the n-bar low | n | 20, 30, 50, 75, 100, 150, 200, 250, 300, 365 |
| 16 | pivot_breakout | Breakout | Pivots from the prior n bars (rolling every bar); long above R1, short below S1, exit at the pivot | n | 3, 5, 7, 10, 14, 20, 30, 40, 60, 90 |
| 17 | fractal_breakout | Breakout | Long above the last confirmed up-fractal, flip short below the last down-fractal | fractal size | 1, 2, 3, 4, 5, 6, 8, 10, 12, 15 |
| 18 | roc | Momentum | Long if price is up over n bars, short if down | n | 5, 10, 15, 20, 30, 45, 60, 90, 120, 180 |
| 19 | rsi_momentum | Momentum | Long while RSI > 50, short while RSI < 50 | RSI length | 5, 7, 9, 11, 14, 18, 22, 28, 35, 50 |
| 20 | stoch_cross | Momentum | Long while stochastic %K is above %D, short while below | %K length | 5, 7, 9, 11, 14, 18, 22, 28, 35, 50 |
| 21 | cci_trend | Momentum | Long when CCI > +100, short when < -100, exit when it crosses back through 0 | CCI length | 10, 14, 20, 26, 34, 40, 50, 60, 80, 100 |
| 22 | tsi | Momentum | Long while the True Strength Index is above 0, short below | long length (25 = classic) | 10, 13, 16, 20, 25, 30, 35, 40, 50, 60 |
| 23 | awesome_osc | Momentum | Long when AO > 0 and rising, short when < 0 and falling, else flat | slow length (34 = classic) | 20, 26, 34, 40, 50, 60, 75, 90, 110, 140 |
| 24 | trix | Momentum | Long while the triple-smoothed EMA is rising, short while falling | EMA length | 5, 9, 12, 15, 18, 21, 25, 30, 40, 50 |
| 25 | kst | Momentum | Long while Know Sure Thing is above its signal line, short below | speed factor on the classic lengths (1 = classic) | 0.5, 0.6, 0.75, 0.9, 1, 1.25, 1.5, 1.75, 2, 2.5 |
| 26 | elder_impulse | Momentum | Long when EMA and MACD histogram both rise, short when both fall, else flat | EMA length (13 = classic) | 5, 8, 10, 13, 16, 20, 26, 34, 40, 50 |
| 27 | rsi_reversal | Mean reversion | Buy RSI < 30, sell at 50; short RSI > 70, cover at 50 | RSI length | 2, 3, 4, 5, 7, 9, 11, 14, 18, 21 |
| 28 | bollinger_reversion | Mean reversion | Buy below the lower 2-sd band, short above the upper; exit at the middle | band length | 10, 14, 20, 26, 34, 40, 50, 60, 80, 100 |
| 29 | connors_rsi2 | Mean reversion | With the 200-bar trend, fade RSI(2) extremes; exit on a cross of the 5-bar SMA | how extreme RSI(2) must be | 2, 4, 5, 6, 8, 10, 12, 15, 20, 25 |
| 30 | stoch_reversal | Mean reversion | Buy %K < 20, sell at 50; short %K > 80, cover at 50 | %K length | 5, 7, 9, 11, 14, 18, 22, 28, 35, 50 |
| 31 | streak_reversal | Mean reversion | Buy after n down closes, sell on an up close; mirror for shorts | n | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 |
| 32 | ma_envelope | Mean reversion | Buy x% below SMA20, short x% above; exit back at the SMA | x (%) | 1, 2, 3, 4, 5, 6, 8, 10, 12, 15 |
| 33 | ibs | Mean reversion | Long one bar after a close near the low (IBS < level), short after one near the high | level | 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5 |
| 34 | short_term_reversal | Mean reversion | Long if price fell over n bars, short if it rose | n | 2, 3, 5, 7, 10, 14, 20, 30, 45, 60 |
| 35 | atr_breakout | Volatility | Flip long on a close-to-close jump > k × ATR(14), short on the same-size drop | k | 0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2, 2.5, 3 |
| 36 | squeeze | Volatility | When Bollinger bands exit the Keltner channel (same SMA centre), trade price vs its SMA; exit on a cross back | band length | 10, 14, 20, 26, 30, 40, 50, 60, 80, 100 |
| 37 | vol_regime | Volatility | Long when volatility is below its 250-value median and price > SMA100; short when volatility is high and price below | volatility length | 5, 10, 15, 20, 30, 40, 50, 60, 80, 100 |
| 38 | nr_breakout | Volatility | After the narrowest bar of n, long on a close above its high, short below its low; hold until the other side breaks | n | 4, 5, 6, 7, 8, 10, 12, 15, 20, 25 |
| 39 | chandelier | Volatility | Long until close < 22-bar high - k × ATR, then short until close > 22-bar low + k × ATR | k | 1, 1.5, 2, 2.5, 3, 3.5, 4, 4.5, 5, 6 |
| 40 | range_expansion | Volatility | A bar with range > k × ATR(20) sets the direction until the next such bar | k | 1, 1.25, 1.5, 1.75, 2, 2.25, 2.5, 3, 3.5, 4 |
| 41 | choppiness | Volatility | When Choppiness < 50 follow the n-bar direction, else flat | n | 7, 10, 14, 20, 26, 30, 40, 50, 60, 80 |
| 42 | mass_index | Volatility | After a Mass Index bulge, bet against the 9-bar EMA trend until the next bulge | Mass Index length | 10, 15, 20, 25, 30, 35, 40, 50, 60, 75 |
| 43 | obv_trend | Volume | Long while OBV is above its EMA, short while below | EMA length | 5, 10, 15, 20, 30, 40, 50, 60, 80, 100 |
| 44 | vwap_trend | Volume | Long while the close is above the n-bar rolling VWAP, short below | n | 10, 14, 20, 30, 40, 50, 75, 100, 150, 200 |
| 45 | mfi_reversal | Volume | Buy MFI < 20, sell at 50; short MFI > 80, cover at 50 | MFI length | 5, 7, 9, 11, 14, 18, 22, 28, 35, 50 |
| 46 | cmf | Volume | Long while Chaikin Money Flow > +0.05, short < -0.05, flat between | CMF length | 5, 10, 14, 20, 26, 30, 40, 50, 60, 80 |
| 47 | chaikin_osc | Volume | Long while the fast EMA of the A/D line is above the slow one, short below | slow length | 6, 8, 10, 12, 15, 20, 25, 30, 40, 50 |
| 48 | volume_breakout | Volume | n-bar breakout on 1.5× average volume (over the same n bars), either way; exit at the channel middle | n | 10, 15, 20, 30, 40, 55, 70, 90, 120, 150 |
| 49 | force_index | Volume | Long while the EMA of price change × volume is positive, short while negative | EMA length | 2, 3, 5, 8, 13, 20, 26, 34, 50, 75 |
| 50 | ease_of_movement | Volume | Long while the n-bar average Ease of Movement is positive, short while negative | n | 5, 7, 10, 14, 20, 26, 34, 40, 50, 75 |

---

## The prompts

These are the prompts from the video, in order. Paste each one only after the one before it has finished. Fill the brackets from the user's answers; leave every other word as it is.

### Prompt 1: Lock the plan

```
I want to test [TOTAL] crypto trading strategies and find out which ones actually work and which ones are just random. I've written my plan in PLAN.md, and the [NUMBER OF STRATEGIES] strategies I want to test are listed in STRATEGIES.md. The plan covers the coins, the rules, the checks and how the final strategy gets picked.

First, set up this folder with a CLAUDE.md that has some house rules for you:
- Talk me through it like we're doing this live. Before each step, say in a sentence what you're about to do, then do it, then tell me what you found in plain English. Keep it short.
- Every number you give me has to come from a file you saved in this project. Nothing from memory.
- Before every test, write down what you expect to happen, then compare.
- Keep it simple. Plain Python, pandas and numpy are fine, in a .venv.
- At the end of each step, save the key numbers to results/, one file per step, numbered in order (P01.json, P02.json and so on).
- Under every result, print a short fingerprint line with the data, dates, fees and settings, so anyone can check their numbers match mine.
- Don't change any rule because of a result. If we change something, it's a brand new test.

Then lock the plan: save PLAN.md as PREREGISTRATION.md with today's date, and save its hash to results/P01.json so we can prove later that nothing changed.
```

*Note for the AI: in a chat app, a .venv isn't needed if pandas and numpy are already there; keep the file names anyway.*

### Prompt 2: Download the prices

```
Download [TIMEFRAMES] candles for [COINS] from [EXCHANGE], from 2 years before [SCORING START] (or whenever they listed) up to the cut-off in the plan, plus the perp funding history for each. Check for gaps or duplicates.

Show me a table: each coin, when its data starts and ends, how many candles, and what just holding it since [SCORING START] would have done.
```

*Note for the AI: whatever the answers, also download daily candles for every coin, and Bitcoin's daily candles even if Bitcoin isn't one of their coins. The final strategy's Bitcoin switch and volatility sizing and the holding-Bitcoin comparison need them. Say so in one line.*

### Prompt 3: Build and prove the backtester

```
Build the backtester. But before I trust it, I want proof it actually works.

First, make fake prices where I know the answer: the day after a red day gains +0.5% on average. A strategy that buys after red days should find roughly that, so anything from +0.3% to +0.7% per day held, before fees, is a pass. Then the same for shorts: the day after a green day falls 0.5%, and a strategy that shorts after green days should find that too.

Then run a moving-average strategy on pure random prices. It should make basically nothing before costs, both long-only and long-short.

Check funding as well: a short held for 30 days at 0.01% every 8 hours should come to about 0.9%.

Last, build a check that cuts the data at random points and makes sure no strategy is secretly peeking at the future. Prove it works by catching one that cheats on purpose.

Write the pass marks down before you run anything, then tell me pass or fail for each.
```

### Prompt 4: Code the strategies and run the peeking check

```
Write the [NUMBER OF STRATEGIES] strategies in my list in STRATEGIES.md, exactly as they're described there, with their [NUMBER OF SETTINGS] settings each. Each one should say long, short or nothing on every candle, and in long-only mode a short just means being out.

Run the peeking check on every single one and fix any that fail. Then show me a table of all [NUMBER OF STRATEGIES] with one line on what each does, and count the backtests: [NUMBER OF STRATEGIES] strategies × [NUMBER OF SETTINGS] settings × 2 ways × [NUMBER OF TIMEFRAMES] timeframes × [NUMBER OF COINS] coins.
```

### Prompt 5: Run all the backtests

```
Run all of them, the way the plan says. Save every result, and for each one also save what holding the coin did over the same test periods. Use all the cores you've got.

Then show me the single best-looking result as a chart against holding, and tell me how many beat holding, long-only and long-short.
```

### Prompt 6: The random twin test

```
Here's what I really want to know: how many of these "winners" are just random?

For every backtest, make a random twin. It goes long and short at random, but with the same number of trades, the same time long, the same time short and the same average hold, on the same coin. Give each twin [NUMBER OF TWINS] versions with different random seeds, so it faces exactly the same checks as the real one.

Before you run it, write down how many random ones you think will beat holding. Then run them and tell me how many random strategies look like winners.
```

*The video used 10 versions. Keep 10 for Part B unless the user asks otherwise.*

### Prompt 7: The six checks

```
Now put the real ones and the random ones through the funnel in the plan, in order, and count both at every step.

For each check, show me the best-looking real strategy that got killed there, with its numbers, and tell me why it died. At the end, show me which families beat their random twins: each family's real survival rate next to its random twins'.
```

### Prompt 8 (bonus, cut from the video): Flip the losers

```
Everyone's first idea is "just do the opposite of the worst ones", so let's test it. Take the 100 worst long-only strategies and flip them: in the market whenever they were out, and out whenever they were in.

Write down what you expect first. Then run them with the same fees and compare them with the originals, with holding, and with their random twins flipped the same way.
```

*This isn't in the plan, so the AI labels it a side test that changes nothing else. In the video's run it didn't work: picked the honest way (worst on the practice data, judged on the test data), 36 of 100 flipped strategies beat holding, about what flipped random twins managed (31.6). The worst strategies trade hundreds of times, and a flip pays the same fees.*

### Prompt 9: The crashes

```
Compare the survivors, their random twins and holding through [CRASH WINDOWS]. For each one, tell me how much they made or lost and how far they fell.
```

### Prompt 10: Build the final strategy

```
First check that PREREGISTRATION.md still matches the hash we saved at the start.

Then build the final strategy exactly as the plan says, with no changes. Tell me which family and timeframe it picked and why.

Run it with the Bitcoin 200-day switch on and off, build the 100 random portfolios the same way, and start it in every month from [FIRST START YEAR] to [LAST START YEAR]. Show me $10,000 in our strategy against the random portfolios, holding the [NUMBER OF COINS] coins (normally and at the same risk) and holding Bitcoin, year by year and through each crash. Then go through the gate one check at a time and tell me pass or fail.
```

### Prompt 11: The dashboard

```
Now build me a dashboard so I can actually see all of this. One HTML file I can just open in my browser, dark mode, kind of like a trading terminal. Pull every number from the results files, and don't type anything in by hand.

Make the random stuff grey and the real strategies coloured, so it's obvious at a glance. Put it in tabs that follow what we did: the setup, the random twin test, the funnel (show me the ones that looked great and got killed), flipping the losers, the crashes, and the final strategy with the $10k chart against holding and the random ones.

For the main chart, show all the random portfolios as faint grey lines with our strategy in one bright colour on top.

Open it when you're done and tell me if anything's missing data.
```

*For Part A, the AI keeps the tabs that exist (setup, random twin test, funnel, crashes if run) and says which ones it left out.*

---

## Where the prices come from (for the AI)

- **Default: Binance's free public market data.** No account or key needed. The API at `https://data-api.binance.vision` serves candles from `/api/v3/klines` (up to 1,000 candles per request). The download site `https://data.binance.vision` has the same candles as daily and monthly zip files (for example `data/spot/monthly/klines/BTCUSDT/1d/`). In those files, spot timestamps from 1 January 2025 onwards are in microseconds and earlier ones in milliseconds, so convert before joining them.
- **Funding** (only for long-short): Binance's USD-M perpetual funding-rate history. If it can't be reached, use the plan's fallback of 0.01% every 8 hours and say so.
- **If Binance blocks the request** (error 451): Binance restricts some countries, including the US, and some cloud servers. Try the files on data.binance.vision. If that's blocked too, ask the user whether to switch to another exchange's free public candles, and write the change into PLAN.md before locking it.
- **In a chat app with no internet in its code tool:** write out the exact links for the user (one link per 1,000 candles per coin, using `startTime` in milliseconds and `limit=1000`, because the default is 500), ask them to open each one and save it, then upload the files. Daily candles from 2017 (2019 scoring plus the 2-year warm-up) need about four links per coin; 4-hour candles need far more, so suggest daily only, or Claude Code.
- **Other markets:** the method works on anything with candles. For stocks or ETFs you need a stock data source. FMP is the one in Miles's tools (20% off: https://tinyurl.com/FMPMiles). If it needs a key, the user puts it in a `.env` file on their own computer, never in the chat. For stocks, run long-only unless they know their cost of borrowing for shorts, skip funding, and ask which market index should replace the Bitcoin 200-day switch.

---

## The results from the video

What Claude came back with in the filmed run: Binance prices, 1 January 2019 to 16 November 2026 (Solana from 10 September 2020), 0.1% fee per side, seed 20261117. Your numbers will differ with other coins, dates or fees, and that's the point of running it yourself. Even with the video's exact choices, expect close rather than identical numbers, because Claude writes fresh code on every run.

**Setup checks.** The backtester passed all 7 of its proof tests, and the peeking check flagged 0 of 125,000 comparisons across the 50 strategies.

**The best-looking backtest** out of 10,000 (killed at check 2):

| | MACD (setting 16), XRP daily, long and short | Holding XRP |
|---|---|---|
| $10,000 becomes | $169,162 (+1,592%) | $13,481 (+35%) |
| Worst drop | -57% | -67% |
| Trades | 181 | 5 |

**The random twin test** (how many beat holding; random = average of the 10 twin versions):

| | Real | Random twins |
|---|---|---|
| Long-only | 3,662 of 5,000 (73.2%) | 2,976 (59.5%) |
| Long and short | 2,381 of 5,000 (47.6%) | 2,221 (44.4%) |

Random strategies beat holding almost as often as real ones, mostly by sitting in cash through crashes. Holding had a rough time in the test periods: from 18% down on Bitcoin to about 60% down on Solana and BNB, with only XRP up (about 35%).

**The funnel** (left standing after each check; 100,000 random twins, shown per 10,000):

| After check | Real (of 10,000) | Random (average) |
|---|---|---|
| 1. Beats holding | 6,043 | 5,197.5 |
| 2. Worst drop no more than 50% | 2,316 | 1,870.2 |
| 3. Not overfit | 1,082 | 1,048.6 |
| 4. At least 20 trades | 880 | 860.5 |
| 5. Nearby settings work too | 770 | 396.3 |
| 6. Still wins at double fees | 762 | 390.7 |

**What killed the best-looking ones**

| Check | Strategy | Why it died |
|---|---|---|
| 1 | mass_index 60, BTC daily, long-only | -17.8%, exactly the same as holding: it never sold, and a tie isn't a win |
| 2 | macd_cross 16, XRP daily, long and short | +1,592% against holding's +35%, but a 57% worst drop |
| 3 | roc 30, SOL daily, long-only | +72% while holding lost 60%, but its test Sharpe (0.77) was under half its practice Sharpe (1.74) |
| 4 | pivot_breakout 90, SOL 4-hour, long and short | +212% against holding's -58%, but only 17 trades |
| 5 | supertrend 2, XRP 4-hour, long-only | +360%, but the next setting down made only +3% and lost to holding |
| 6 | awesome_osc 40, XRP 4-hour, long-only | +94.5%, but 456 trades; at double fees it fell to +23% and lost to holding |

**Which types beat their random twins** (survived all six checks, both modes together):

| Family | Real | Random twins | Gap |
|---|---|---|---|
| Breakout | 12.75% | 5.94% | +6.81 points |
| Trend | 6.56% | 2.77% | +3.79 |
| Volume | 6.31% | 2.81% | +3.50 |
| Mean reversion | 9.19% | 5.83% | +3.36 |
| Momentum | 5.61% | 2.49% | +3.12 |
| Volatility | 5.69% | 3.92% | +1.77 |

Breakouts on the 4-hour chart had the biggest gap of all: 18.75% real against 4.94% random. On the daily chart, breakouts did no better than their twins (6.75% against 6.95%). So the plan picked Breakout on 4-hour for the final strategy.

**The final strategy: $10,000 from 1 January 2019 to 16 November 2026**

| | Ends at | Per year | Worst drop |
|---|---|---|---|
| Breakout strategy (Bitcoin switch on) | $145,554 | 40.5% | -41.0% |
| Same, switch off | $122,977 | 37.5% | -32.3% |
| 100 random portfolios | median $20,230, best $36,239 | | median -18.9% |
| Holding the 5 coins | $300,994 | 54.0% | -78.1% |
| Holding the 5 coins at the same risk (36.8% in, rest in cash) | $117,018 | 36.6% | -75.3% |
| Holding Bitcoin | $175,126 | 43.8% | -77.0% |

It traded 5,864 times and paid $41,584 in fees, all already taken out. It passed all five gate checks: it beat all 100 random portfolios, made money, beat same-risk holding, had a better return per unit of drop than holding the coins (0.99 against 0.69), and had a smaller worst drop than Bitcoin (41% against 77%).

**Year by year**

| Year | Strategy | Switch off | Random (median) | Hold 5 coins | Hold 5, same risk | Bitcoin |
|---|---|---|---|---|---|---|
| 2019 | +13.4% | +38.5% | +2.9% | +34.5% | +12.7% | +94.2% |
| 2020 | +112.1% | +112.6% | +9.2% | +206.0% | +90.4% | +302.0% |
| 2021 | +150.3% | +131.7% | +42.2% | +743.6% | +524.4% | +59.8% |
| 2022 | +31.0% | +15.4% | +9.4% | -66.8% | -63.7% | -64.2% |
| 2023 | +28.4% | +18.5% | +1.8% | +90.6% | +78.8% | +155.6% |
| 2024 | +30.1% | +38.1% | +7.6% | +104.1% | +96.5% | +121.3% |
| 2025 | -14.6% | -16.9% | -0.2% | +1.6% | +1.5% | -6.3% |
| 2026 (to 16 Nov) | +29.4% | +14.8% | +5.5% | -33.8% | -32.5% | -26.0% |

**Through the crashes** (made or lost, and the worst drop inside the window)

| Crash | Strategy | Hold 5 coins | Bitcoin |
|---|---|---|---|
| COVID (20 Feb to 30 Apr 2020) | +6.6%, fell 19.3% | -17.3%, fell 53.3% | -10.2%, fell 54.1% |
| May 2021 (10 May to 30 Jul 2021) | -27.3%, fell 30.7% | -44.9%, fell 60.0% | -27.5%, fell 50.1% |
| LUNA (May to June 2022) | +28.7%, fell 11.3% | -49.2%, fell 59.6% | -47.0%, fell 54.7% |
| FTX (Nov to Dec 2022) | +17.4%, fell 12.6% | -29.0%, fell 37.4% | -19.3%, fell 26.7% |
| 2025 to 2026 drop (6 Oct 2025 to 30 Jun 2026) | +7.3%, fell 19.8% | -57.5%, fell 60.8% | -52.5%, fell 53.4% |

**Starting in any month** (84 start months, January 2019 to December 2025): it beat same-risk holding in 82 of 84 and holding the 5 coins outright in 47 of 84. Its worst drop was 31% in the middle case and 41% at most.

---

## Before you trust any of this

Claude flagged the first three during the filmed run. They all apply to your runs too. Tell the user about them in the final summary.

1. **Beating holding was easy in the video's test periods.** They landed on rough stretches for most coins, so random strategies beat holding a lot of the time too. That's exactly why the random twins matter.
2. **Check 5 favours real strategies by design.** A real strategy's neighbouring settings trade almost the same way, while each twin's neighbours are random on their own, so twins fail it more easily. After check 4 it was 880 real against about 860 random; most of the gap appears at check 5. When you run it, also look at the real-against-random gap after check 4.
3. **The random portfolios were in the market less.** 80 random votes mostly cancel each other out, so the random portfolios had about 15% of their money in coins on average, against about 37% for the strategy. "Beat all 100" partly measures being in the market more. The same-risk holding check and the return-per-drop check do account for that, and it passed both.
4. **The $145,554 isn't a fresh test.** Breakout on the 4-hour chart was picked using the same 2019 to 2026 prices it was then scored on. Prices after 16 November 2026 are the fresh test, which is what Part C is for.
5. **It's one stretch of history.** It lost 14.6% in 2025, holding the coins made about twice as much in total (with a 78% drop on the way), and real trading costs can be higher than 0.1% per side.

**Want to trade it?** Test it on a paper (demo) account first. This file never connects to an exchange, and nothing in it is financial advice.

---

*From Miles Deutscher Finance: "Claude Tested 10,000 Trading Strategies (Only These Won)". Free in the Skool community. Backtests use past prices and don't guarantee future results. Crypto is volatile; never risk money you can't afford to lose.*
