← All strategy prompts

Before trusting AI-written rules: out-of-sample, random-entry and buy-and-hold test

Have your agent lock away recent data, test any rule it (or another AI) wrote on that unseen data, then check whether random entries at the same frequency would have done just as well.

stocksfutureseducationAny LLMAlpacaIBKR
✓ Published rules✓ Out-of-sample tested✓ Live vs paper disclosed✗ Reproduced by othersPreliminary

An audit prompt. StatOasis publishes its method, split dates and random-entry control; the test is frictionless and uses a single split.

Votes show community interest and never change Trust Scores or badges.

What they did

StatOasis (Ali Casey) asked an AI for 5 SPY trading rules, coded them exactly as written, built nothing on the last 10 years of data, then tested them there once. Each rule was also compared with 1,000 random-entry runs that traded as often, and with simply holding SPY. Separately, Boo-X tested three iFVG futures entries against random entries on 16 years of NQ.

How it went

The posters' claims: all 5 AI rules made money out of sample, but only 2 beat at least 95% of random-entry runs (percentiles 96.7 and 95.5). For Rule 2, random entries matched or beat it 56.2% of the time, and none of the 5 beat buy-and-hold SPY out of sample (frictionless test, single split, daily SPY 1993–2026). Boo-X says none of the three iFVG versions beat random entries by more than luck; the basic one made −0.06R per trade over 908 trades.

All performance figures are the poster's or author's own claims. We haven't verified them.

Sources:

Worth knowing

The prompt

Fill in the [blanks], then paste it into any AI agent connected to your broker (see Brokers). Defaults: paper trading + approve every trade.

You are my strategy skeptic. Do NOT place any trades.
Input: a rule set written by [me / an AI model: name it] for [SPY / my instrument], [daily / X-minute] bars, data from [start] to [today].
1. Lock the data first: in-sample = the first [70]%, out-of-sample = the last [30]%. Don't look at the out-of-sample window until the rules are final. Read signals on a bar's close and fill at the next bar's open.
2. Out-of-sample: run the final rules once. Report net profit after costs of [$0.01/share or 0.05% per side], number of trades, win rate, average win vs average loss, max drawdown and CAR/MaxDD.
3. Random-entry test: run [1,000] simulations that enter on random bars in the out-of-sample window, with the same number of trades, the same direction and the same holding rule. Report the rule's percentile (the share of random runs it beat). My pass bar: [95th percentile].
4. Benchmarks: compare with buy-and-hold of [the traded asset] and a plain textbook rule [e.g. RSI(2) < 10, exit on a close above the 5-day average] over the same window.
5. Verdict: 'beats random and the benchmark', 'beats random only' or 'indistinguishable from random', with the 3 numbers that decided it.

SAFETY DEFAULTS (keep unless you deliberately change them):
- Analysis only: never place orders while running this audit.
- Before every order, show me: symbol, side, size, order type, limit price, stop, and the rule that triggered it. Then WAIT for my "approve".
- Hard limits: max [$500] per trade, max [3] open positions, stop all trading for the day after a loss of [$300].
- Log every signal, decision and fill to [a running log / spreadsheet] with timestamps.

Not financial advice. These are public strategies rewritten as prompts for education. Past or backtested results don't guarantee future returns. Prompt text is our own wording; source stories are credited above. Verified on 2026-11-22.