▶️ Running Backtests
Executing Your First Backtest
Now that you've set up everything properly, it's time to run your backtest and see how BananaEA would have performed historically. This guide walks you through the execution process step-by-step.
Goal: Execute a complete backtest and generate reliable performance data for analysis.
Quick Start: Running a Basic Backtest
5-Step Process
- Open Strategy Tester → Press
Ctrl+R - Configure Settings → EA, symbol, period, model, spread, dates
- Set Parameters → Load preset or use defaults
- Click Start → Begin backtest execution
- Review Results → Analyze performance metrics
Detailed Backtest Execution
Step 1: Final Configuration Check
Before clicking [Start], verify these settings one last time:
Strategy Tester Settings Tab:
Expert Advisor: BananaEA.ex4 ✅
Symbol: GER40.r ✅
Period: H1 ✅
Model: Every Tick ✅
Spread: 20 points ✅
From: 2023.01.01 ✅
To: 2025.10.20 ✅
Visual mode: Unchecked (for speed) ✅
Optimization: Unchecked (unless optimizing) ✅
Inputs Tab:
- Parameters loaded correctly ✅
- Preset applied (if using) ✅
- Magic number unique ✅
Step 2: Start the Backtest
Click [Start] Button
What happens next:
1. MT4 loads historical data for symbol/timeframe
↓
2. EA initializes (OnInit() executes)
↓
3. MT4 simulates each bar sequentially
↓
4. EA analyzes market conditions per bar (OnTick())
↓
5. Trades executed when signals detected
↓
6. Results compiled and statistics generated
↓
7. "Tester: stop testing" message appears
Step 3: Monitor Progress
Progress Bar (Bottom of Strategy Tester):
Testing: 2024.03.15 14:00 [████████████░░░] 78%
Information Displayed:
- Current Date: Date/time being tested
- Progress Percentage: How much completed
- Bars Processed: Number of bars analyzed
- Ticks Simulated: Tick count (if "Every Tick" mode)
Estimated Time:
- Quick Test (6 months, Open Prices): 30 seconds - 2 minutes
- Standard Test (2 years, Every Tick): 5 - 15 minutes
- Comprehensive Test (5 years, Every Tick): 20 - 45 minutes
Duration varies by: Computer speed, data quality, EA complexity, timeframe, and modeling quality.
Step 4: During Backtest Execution
What You Can Do:
✅ Monitor Journal Tab - Check for errors or warnings ✅ Watch Progress - Observe completion percentage ✅ Minimize MT4 - Let it run in background ✅ Work on Other Tasks - No need to watch continuously
What You Should NOT Do:
❌ Don't Close MT4 - Backtest will abort ❌ Don't Change Settings - Wait for completion ❌ Don't Open Heavy Programs - May slow testing ❌ Don't Disconnect Internet - If using live data feed
Step 5: Backtest Completion
Completion Message:
Tester: stop testing BananaEA-v3.13.21-meanReversion.ex4 (GER40.r,H1)
Results Available:
- Results Tab: Trade-by-trade list
- Graph Tab: Equity curve visualization
- Report Tab: Comprehensive statistics
Visual Mode Backtesting
When to Use Visual Mode
Recommended For:
- ✅ Verifying signal detection accuracy
- ✅ Debugging entry/exit logic
- ✅ Checking SL/TP placement
- ✅ Understanding EA behavior
- ✅ Confirming indicator display
- ✅ Educational purposes (learning how EA trades)
NOT Recommended For:
- ❌ Full 2-year backtests (too slow)
- ❌ Optimization runs (disabled automatically)
- ❌ Final performance validation
Enabling Visual Mode
Step-by-Step:
- Strategy Tester → Settings tab
- Check "Visual mode" checkbox
- Configure other settings normally
- Click [Start]
What Appears:
┌─────────────────────────────────────────────┐
│ Chart Window (Visual Backtest) │
├─────────────────────────────────────────────┤
│ Price Chart with: │
│ - Price bars progressing in real-time │
│ - EA indicators overlaying │
│ - Trade arrows when signals fire │
│ - SL/TP lines on open positions │
│ │
│ [<< Prev] [Pause] [Play] [Next >>] │
│ Speed: [______|_________] (slider) │
└─────────────────────────────────────────────┘