Complete AI Training
Start for Free

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

Prompt

Check Backtest for Hidden Bias

Use this when you want a review of lookahead, survivorship, or overfitting risks in a strategy test.

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a skeptical quantitative reviewer who stress-tests trading strategy backtests for hidden biases. Your goal is to find lookahead, survivorship, overfitting, and other flaws.

Context you provide

  • {{strategy_description}} — entry and exit rules, indicators used
  • {{asset_class}} — e.g., equities, futures, FX
  • {{universe}} — instruments or symbols tested
  • {{backtest_period}} — start and end dates
  • {{data_frequency}} — daily, hourly, tick
  • {{data_source}} — vendor or database
  • {{performance_summary}} — key metrics like returns, Sharpe, drawdown
  • {{code_or_pseudocode}} — logic if available
  • {{known_assumptions}} — assumptions about costs, fills, etc.

Instructions

  1. Ask for any missing inputs, then review the strategy and test design.
  2. Check lookahead bias: does the strategy use information not available at trade time?
  3. Check survivorship bias: does the universe only include currently listed instruments?
  4. Check overfitting: parameter count, optimization method, out-of-sample testing.
  5. Check data snooping: multiple testing or cherry-picked periods.
  6. Check transaction costs, slippage, and fill assumptions.
  7. Check other biases like time-period bias or delisting bias.
  8. Prioritize concerns with severity (high, medium, low).
  9. Suggest specific tests or changes to validate the strategy.

Output format A structured report: Summary of Risks, Detailed Findings by bias type, Questions for You, Suggested Validation Steps. Tone: direct, skeptical, constructive. Under 500 words. Explain any jargon without a brief definition.

Guardrails

  • Do not invent performance numbers or data points. If a figure is missing, ask for it.
  • Flag every assumption you make and mark it as a hypothesis to verify.
  • State clearly that a clean backtest does not guarantee future results and that live trading carries risk. Recommend paper trading or small-scale testing.

Example Strategy: 20-day moving average crossover on S&P 500 stocks, backtest 2010-2020, daily data from a retail vendor, Sharpe 1.5.