Pro Trader · Trading Strategies
How to Backtest a Strategy
Would you invest $50,000 in a business without testing if it's profitable? Would you bet your savings on a horse you've never seen run? Then why would you risk your trading account on a strategy you've never tested? Backtesting separates gamblers from traders. It's tedious, boring, and absolutely CRITICAL. Let's learn to test like pros.
The Painful Truth About Untested Strategies
The $2,000 Lesson
Trader finds strategy on YouTube: 'This guy made $10K in a month!' Week 1: Tries it live immediately → 5 trades, 2 wins, 3 losses → Down -$180 Week 2: 'Maybe I'm doing it wrong?' → 8 trades, 3 wins, 5 losses → Down another -$320 Week 3: 'One more week...' → 6 trades, 1 win, 5 losses → Down another -$380 Month total: -$880 IF THEY'D BACKTESTED: → Would've taken 2 hours → Would've seen 32% win rate → Would've seen negative expectancy → Would've SKIPPED this strategy → Saved $880 and a month of pain Backtesting cost: 2 hours Not backtesting cost: $880 Worth it?
How to Actually Backtest (The Process)
Step 1: Define EXACT Rules (No Ambiguity)
If your strategy has ANY vague rules, you can't backtest it:
Vague vs Specific
❌ CAN'T backtest this: 'Buy when momentum is strong' → What's 'strong'? Who decides? ✅ CAN backtest this: 'Buy when: • Price > 50 EMA • RSI crosses above 50 • Bullish engulfing forms' → Objective, anyone sees same signal
Step 2: Choose Your Data (Time Period)
Test on at least 6-12 months of data. Include different market conditions:
- Trending periods
- Ranging periods
- High volatility (news events)
- Low volatility (summer doldrums)
- Bull markets and bear markets
Testing only on trending data? Your range-trading strategy will look terrible. Test on MIXED conditions.
Step 3: Manual Backtesting (The Hard Way)
Manual Backtest Process
Open TradingView or MT4: 1. Set EUR/USD to daily chart 2. Scroll back to 12 months ago (Nov 2023) 3. Hide future price (use 'bar replay' feature) 4. Move forward ONE candle at a time 5. At each candle ask: 'Do my entry criteria match?' 6. Found a signal! Record: Date: Nov 15, 2023 Entry: 1.0850 Stop: 1.0820 (-30 pips) Target: 1.0940 (+90 pips) 7. Move forward to see outcome 8. Stopped at 1.0820 after 6 hours 9. Record: LOSS, -30 pips 10. Continue for next 99 trades Time: 3-5 hours total Value: Knowing if strategy works = PRICELESS
Step 4: The Honesty Rule (CRITICAL)
This is where people CHEAT THEMSELVES:
The Self-Deception
You're backtesting, see a signal: Your criteria: Met ✓ But you can see it lost (future visible) 🔴 Dishonest trader: 'Hmm, this one looks sketchy, I'll skip it' → Skips 15 losing trades → Counts 30 winning trades → Backtest result: 85% win rate! → Goes live: Actual 42% win rate → DESTROYED ✅ Honest trader: 'Criteria met = I count it' → Counts ALL 50 trades → 30 wins, 20 losses → Backtest result: 60% win rate → Goes live: Actual 58% win rate → Matches expectations Be honest or waste your time!
Step 5: Calculate Performance Metrics
After 100 trades, crunch the numbers:
Complete Backtest Results
━━━ PULLBACK STRATEGY BACKTEST ━━━ Period: Nov 2023 - Nov 2024 (12 months) Pair: EUR/USD Daily Total Signals: 118 trades ━━━ WIN/LOSS ━━━ Winning trades: 51 (43.2% win rate) Losing trades: 67 (56.8% loss rate) ━━━ PIP PERFORMANCE ━━━ Average win: +95 pips Average loss: -32 pips Total winning pips: 51 × 95 = +4,845 pips Total losing pips: 67 × 32 = -2,144 pips Net pips: +2,701 pips ━━━ EXPECTANCY ━━━ Expectancy per trade: (0.432 × 95) - (0.568 × 32) = 41.04 - 18.18 = +22.86 pips Positive expectancy ✓ ━━━ STREAKS ━━━ Longest win streak: 7 trades Longest loss streak: 11 trades (!) ━━━ DRAWDOWN ━━━ Largest drawdown: -385 pips (11-loss streak) ━━━ MONTHLY BREAKDOWN ━━━ Best month: +450 pips (May 2024) Worst month: -180 pips (August 2024) Profitable months: 9 out of 12 ━━━ VERDICT ━━━ ✅ Strategy is PROFITABLE ⚠️ Expect 11-trade loss streaks ⚠️ Win rate under 50% (need discipline) ✅ Worth trading IF you can handle psychology
What Numbers Tell You 'YES' or 'NO'
Strategy Evaluation
✅ GREEN LIGHT (Trade this): • Expectancy: +15 pips or more • Win rate: 40-65% • R:R: 1:1.5 or better • Max drawdown: Under 20% • Profitable in 70%+ months ⚠️ YELLOW LIGHT (Needs work): • Expectancy: +5 to +15 pips • Win rate: 35-40% or 65-75% • Max drawdown: 20-30% → Might work, but refine it first 🔴 RED LIGHT (Don't trade): • Expectancy: Negative or under +5 pips • Win rate: Under 35% or over 75% (suspicious) • Max drawdown: Over 30% → Strategy doesn't work, move on
The Forward Test (Backtest Part 2)
Backtesting shows PAST performance. Forward testing shows CURRENT performance:
Forward Testing Protocol
Backtest done (positive expectancy): Now: 1. Open demo account 2. Trade strategy live for 50-100 trades 3. This is 'forward testing' 4. Uses CURRENT market data 5. Can't cheat (you don't know future) After 50 forward trades: Compare to backtest: Backtest: 43% win rate, +22 pips expectancy Forward: 41% win rate, +19 pips expectancy → Close match! ✓ → Strategy works in current market ✓ → Ready for live ✓ If forward much worse: → Market changed → Strategy doesn't work anymore → Don't go live
Key takeaways
- Backtesting = testing strategy on historical data
- Requires 100+ trades on 6-12 months data
- Must have EXACT, objective criteria to test
- Record EVERY signal honestly (no cherry-picking losers)
- Calculate: Win rate, expectancy, drawdown, streaks
- Positive expectancy = profitable on average
- Include spread costs in calculations
- Forward test on demo for 50+ trades after backtest
- Only go live if both tests show positive expectancy
- Takes 3-5 hours but saves thousands in losses
- Most traders skip = most traders lose
Knowledge check
Test what you just learned
1. How many trades minimum should you backtest?
2. What does positive expectancy mean?
3. After backtesting, what should you do?