Home > EA & MT5 Knowledge Base > How to Backtest

BacktestMT5

Cara menjalankan backtest dengan Strategy Tester MT5

Updated: May 15, 2026

What is Backtesting?

Backtesting is the process of running an EA against historical market data to verify the effectiveness of a strategy. MT5 comes standard with a powerful backtest function called the Strategy Tester.

Without using real funds, you can check EA performance against years of historical data, making it an important step before running an EA on a live account.

Even if a backtest shows good results, it does not guarantee future profits. Use backtesting only as a reference.

Opening the Strategy Tester

Tab Settings pada Strategy Tester MT5 (EA, simbol, timeframe, periode, dan mode pemodelan)
Tab Settings pada Strategy Tester MT5 (EA, simbol, timeframe, periode, dan mode pemodelan)

Here's how to open the Strategy Tester in MT5.

  • Method 1:Click 'View' → 'Strategy Tester' from the top menu
  • Method 2:Use the keyboard shortcut 'Ctrl + R'
  • Method 3:Click the 'Strategy Tester' button in the toolbar

The Strategy Tester panel will appear at the bottom of the screen.

Backtest Settings

Tab Inputs pada tester (memeriksa dan mengubah nilai input EA)
Tab Inputs pada tester (memeriksa dan mengubah nilai input EA)
SettingRecommendedDescription
Expert AdvisorGOLD_VIPERSelect the EA to test
Symbol (Currency Pair)XAUUSDSelect GOLD
TimeframeM30 (30 menit)Set to match the EA design
ModelEvery TickHighest accuracy (takes longer)
PeriodCustomSet the period to test (e.g., 2020-2025)
Initial Balance10000Virtual initial capital ($10,000, etc.)
CurrencyUSDMatch your account currency
Spread30-50 (XAUUSD)Set a value close to the actual spread
'Every Tick' mode is most accurate but takes longer. We recommend first checking quickly with 'Control Points', then verifying with 'Every Tick'.

Running the Backtest

Backtest sedang berjalan (unduhan histori dan bilah progres)
Backtest sedang berjalan (unduhan histori dan bilah progres)
  1. 1.Once settings are complete, click the 'Start' button
  2. 2.A progress bar will appear and the backtest will begin
  3. 3.After completion, a list of all trades will appear in the 'Results' tab
  4. 4.In the 'Graph' tab, you can view a chart of asset progression
  5. 5.In the 'Report' tab, you can check detailed statistical information

Reading the Results

Hasil di tab Backtest (laba bersih, profit factor, drawdown maksimum, jumlah transaksi)
Hasil di tab Backtest (laba bersih, profit factor, drawdown maksimum, jumlah transaksi)
MetricDescriptionTarget
Net ProfitTotal profit during the backtest periodShould be positive
Win RatePercentage of profitable trades out of all tradesTergantung strategi (35–45% wajar untuk EA tren)
Profit Factor (PF)Total profit ÷ Total loss1,3+ sebagai patokan (1,1–2,0 sehat)
Maximum Drawdown (DD)Maximum decline in assetsDi bawah 20% sebagai patokan (DD relatif 10–25% umum)
Sharpe RatioReturn-to-risk ratio1.0+ desirable
Total TradesNumber of trades during the backtest periodToo few = low reliability
Max Consecutive LossesMaximum number of consecutive lossesCheck if you can tolerate this psychologically

Komentar & pertanyaan