MinaraBlog

Backtesting Basics

Intro

Backtesting helps validate hypotheses if done carefully—watch for bias and data issues.

Step-by-step

  1. Use clean, gap-adjusted price data.
  2. Simulate execution costs, slippage, and realistic fills.
  3. Test across multiple timeframes and regimes.

GOLD example

Backtest a breakout system on XAU/USD with tick-aware slippage assumptions and realistic fills.

Common mistakes

  • Overfitting parameters to a small sample.
Author: Rahul Mehra