How to Backtest in MetaTrader 5

A backtest runs an EA against past price data to show how the system behaves. We recommend running your own, with the settings and broker you'll actually use, rather than relying only on the results we show on this site.

Your own computer is fine

  • A backtest needs no VPS and no License Key
  • Don't run a backtest on a VPS where a bot is trading live: the Strategy Tester is heavy and can slow down the running bot

Where to get the backtest file

Pick your case:

Get the free backtest file by email

You get the full EA (.ex5, LC edition), the same file used on live accounts. Its built-in settings are the same as Default.set, so no preset file is needed.

  1. Pick the bot you want to test. Each link takes you straight to that bot's request form

    • Hoshi · Breakout + trend following · 5 entries in one bot
    • Kumo · Breakout · rides the move with a trailing stop
    • Sora · Trend following · enters only with the higher-timeframe trend
    • Asahi · Day trade · follows the Asian session's direction, no overnight positions
    • Hayate · Daily breakout · trades only the days gold breaks its range with the big trend
  2. Coming from somewhere else? The form is reachable three ways:

    • scroll to Test it before you pay (below the backtest results table, above Get Started in 4 Steps)
    • press Get the free backtest file, floating at the bottom of the strategy page or in that page's Downloads list
    • on Backtest results, press Get the free backtest file under the bot you like

    The floating bar at the bottom of a strategy page on a phone, with Free backtest and Buy Kumo buttons

  3. Enter your full name and a real email, tick the Terms & Conditions and risk warning box (the newsletter box is optional), then press Email me the file

    The backtest file form filled in, with the terms ticked and the Email me the file button

  4. Open the email from CLOUDPips and press the download link to get the .ex5

    • Nothing within 2 minutes? Check Spam or Promotions

    • The link works for 7 days. If it has expired, the page lets you enter your email for a new link right away

      The expired download link page: enter your name and email again, then press Email me a new link

    • You can request every bot, one at a time. Too many requests in a row and you'll be asked to wait an hour

Bought on cloudpips.io

Sign in to My Licenses with the email you bought with → Downloads tab → download the EA of the bot you bought. The same file works for backtests and live trading (live trading needs your License Key; backtests don't).

The Downloads tab in My licenses with the CLOUDPips Kumo EA file and its presets, each with a download button

Bought or trying on MQL5

Bought it? Backtest right away with the EA installed from Market → Purchased (how to install). Not bought yet? Download the Free Demo from the product page on MQL5 — it runs in the Strategy Tester only.

Put the file into MT5

Do this when you got the .ex5 by email or from My Licenses (the MQL5 file is installed for you — skip to Steps).

MT5 File menu with Open Data Folder selected

  1. In MT5, go to File → Open Data Folder

The MQL5 → Experts folder in Windows with the CLOUDPips Sora file

  1. Open MQL5 → Experts and copy the .ex5 file in

MT5 Navigator: right-click Expert Advisors and choose Refresh

  1. Back in MT5 → Navigator (Ctrl + N) → right-click Expert Advisors → Refresh, and the EA appears in the list

No License Key is needed: the license check is skipped in the Strategy Tester, and the EA's panel shows BACKTEST.

Steps

MT5 View menu with Strategy Tester highlighted

  1. Open the Strategy Tester with Ctrl + R, or View → Strategy Tester.

MT5 Strategy Tester, Settings tab, with Expert, Symbol, timeframe, Date, Modelling and Deposit filled in

  1. Fill in the Settings tab:
Field Set to Note
Expert The EA you want to test
Symbol Gold from the broker you'll trade with. The name can differ by broker and account type, e.g. XAUUSD, XAUUSDm, XAUUSDc or GOLD. To test BTCUSD, pick your broker's BTCUSD symbol instead Works on both Standard and Cent accounts. Pick the same one you'll trade, as spreads and contract sizes differ by broker and account type
Timeframe Any, we suggest M5 Our EAs read the timeframes they trade from the Inputs tab. The timeframe here only changes the chart you see in Visual mode, and M5 shows entries and exits in the most detail
Date At least 2 years, e.g. 2024 to today Compares directly with our 2024–2026 results. Longer periods depend on how much history your broker has, and take much longer to run
Modelling Every tick based on real ticks Most accurate, uses real spreads, but slowest
Deposit Standard account: 1,000 USD · Cent account: 10,000 USC The EA sizes each lot from your risk % per trade, so results in % compare across both. With less, the broker's minimum lot can risk more than you set (why)
Leverage Match your real account
  1. Inputs tab: use the same settings you'll run live, especially risk per trade.
  2. To see the EA's panel and the chart during the test, tick Visual mode (slower). Without it the panel isn't shown, but the results are the same.
  3. Click Start.

The first run downloads historical price data from your broker. It can take a while, depending on the length of the period and your internet speed.

Viewing the results

When the test finishes, new tabs appear:

  • Backtest: all the summary figures — net profit, profit factor, drawdown and more.
  • Graph: your balance over the whole test.

To understand each figure, see Reading the Backtest Numbers.

Exporting the report

Right-click the Backtest tab → Report → choose HTML or Open XML to save it as a file. You can open that file in analysis tools like QuantAnalyzer — the backtest images on our site were made this way.

Why your result can differ from ours

Our published backtests use tick data from QuantDataManager (QDM), a tool that downloads historical tick data and exports it to MT5 as a custom symbol, tested in the Every tick based on real ticks mode from 2003 to 2026 with a 24-pip (0.24 USD) spread.

Your Strategy Tester uses your broker's own history. It may be shorter, have gaps, or have different spreads, so your numbers can differ from ours even with the same EA and preset. To get closer to our results, test a long period in Every tick based on real ticks, or download XAUUSD tick data with QDM and test on that custom symbol.

Limits of backtesting

  • The past isn't the future. Markets can behave very differently from the period you tested.
  • Results vary by broker. Spreads, commissions and slippage differ, and can change results a lot.
  • Live trading has things the tester doesn't simulate — dropped connections, VPS downtime, price gaps after weekends.
  • Don't tune settings until the backtest looks perfect. Fitting parameters too closely to the past (overfitting) usually makes live results worse than what you saw.

The best approach: backtest to understand the system, then run it on a demo account before using real money.

Updated 11 November 2026

Still stuck? Email us at support@cloudpips.io or message LINE @cloudpipsfx and we'll help you sort it out.