ProEA Lab · Topic hub
Forex EAs & MT5 backtesting, without the fantasy
Before considering an EA, ask for the assumptions behind its backtest and enough information to inspect the implementation. A result without those details is difficult to evaluate.
This cluster is the paper trail. It covers what a backtest can and cannot tell you, how one equity curve hides a distribution of luck, how AI-optimized results overfit, and what changes between a test and a live account. The through-line: evidence you can re-run beats a screenshot every time.
Start with why an EA's live results drift from its backtest. Then use the simulation tools to explore how different assumptions or sampled outcomes change a balance path; simulated paths are not a forecast.
Start here
EA Backtest vs Live Results: The Gap Is the Tell.
12 min read
Monte Carlo simulator →
simulate trade paths from your win-rate, payoff and risk assumptions
Backtest sample size calculator →
how many trades your own edge needs before it clears zero
Win rate calculator for trading →
the break-even win rate, and whether your count clears it
MQL4 (.mq4) to Pine Script v6 converter →
port MetaTrader 4 indicators (iMA, iRSI, iBands, iMACD) to Pine v6 locally
MQL5 (.mq5) to Pine Script v6 converter →
translate MT5 OnInit() handles, CopyBuffer() arrays and CTrade EAs to Pine v6
NinjaScript (C#) to Pine Script v6 converter →
translate NinjaTrader 8 C# indicators and .zip archives to Pine v6 locally
cTrader (C# & .algo) to Pine Script v6 converter →
translate cTrader Automate C# indicators, cBots and source-enabled .algo packages to Pine v6
MTR — the EA with full MT5 source →
$49 one-time, with reference-test methodology and risk limits
Evolution Lab →
the backtest-hardening toolkit
MT5 VPS size calculator →
the RAM and CPU your terminals and EAs need
Broker free VPS calculator →
whether your volume earns a broker's free VPS
Prop firm VPS rules →
which firms allow a VPS, and on what terms
Pine Quant Studio — OOS & Monte Carlo validator →
five kill-gates, in-sample/out-of-sample discipline and deflated Sharpe on TradingView
Pine Strategy Foundation — idea to testable Pine v6 →
18 worked blueprints and a non-repainting strategy build bridge
GapFillStats — opening gap fill probability database →
2-year same-day & 50% fill rates across CME BTC, Gold, SPY, NQ, ES & NVDA
ORBStats — 5m/15m/30m ORB win & fakeout database →
chronological 1R/2R hit rates and 14D ADR fakeout filter across 16 assets
CorrBreak — 20x20 cross-asset correlation & 2σ radar →
7D/30D/90D Pearson correlations and 5-day reversion odds on divergences
Hands-on with the terminal
How to Install an EA on MT5: EX5, MQ5 and Fixes
Install an EA in MT5's Experts folder, compile MQ5 source, attach it to a chart, and check trading permissions, missing files and broker sessions.
How to Open .mq5, .ex5 and .set Files (and Where They Go in MT5)
An .mq5 is source code you can read and edit. An .ex5 is a compiled program you can only run. A .set is a plain-text list of input values. Open yours below: it's read in your browser, never uploaded.
How to Open an .ex4 or .mq4 File (MT4), and Whether MT5 Can Run It
An .ex4 is a compiled MetaTrader 4 program: you don't read it, you run it, from MQL4\Experts, Indicators or Scripts in MT4's data folder. An .mq4 is its source, opened and compiled in MT4's MetaEditor. MT5 runs neither as it is; it needs an MT5 version or the .mq4 ported to MQL5.
MT5 Templates: Load a .tpl, Find the Folder, Fix Missing Indicators
An MT5 template is a .tpl file of chart settings: colours, scale, indicators and their settings, drawings, even a running EA. You load it from the chart's Templates menu, and it lives in MQL5\Profiles\Templates. A custom indicator it names only appears if that indicator's own .ex5 is already installed, which is why a template from someone else often opens with gaps.
Where Is It in MT5? Algo Trading, the Tester, Navigator and 16 More
MT5 opens most of its windows with one key: Ctrl+N for the Navigator, Ctrl+T for the Toolbox, Ctrl+R for the Strategy Tester, Ctrl+M for Market Watch, F4 for MetaEditor. The Algo Trading button sits on the top toolbar. What MT4 called the History Center and the Terminal window have other names in MT5, and your account number is in the Navigator.
MT5 Invalid Account or No Connection: Fix Every Login Error
"Invalid account" (or "Authorization failed") means your broker's server refused the login: wrong account number, website password instead of trading password, wrong server, or an expired demo. "No connection" means MT5 can't reach the server at all. Both show at the bottom right and in the Journal tab.
MT5 for Mac: Install MetaTrader 5, Log In and Add an EA
MetaQuotes makes a macOS installer for MetaTrader 5. It sets up Wine and runs the Windows terminal inside it, on macOS Catalina (10.15.7) or later, Apple M1 chips included. How to install it, log in to your broker, find the data folder, add an EA, and when the web terminal is enough. We run Windows, so every step here is MetaQuotes' own, read on 2026-10-17.
MT5 EA Not Taking Trades? Six Checks and the Codes That Name Them
EA attached but no trades? Check both Experts and Journal, then the EA's permissions, symbol and request results. An empty log cannot identify the cause. Codes such as 10027, 10018, 10014 and 10019 help narrow the next check.
How to Backtest an EA in MT5: Strategy Tester Setup (Ctrl+R)
Set up MT5 Strategy Tester (Ctrl+R), choose Every tick based on real ticks for intrabar EAs, add execution delay and a forward holdout split, turn off Profit in pips, and read expectancy in R.
Every Tick vs Real Ticks in MT5: Why the Same EA Gets Two Results
MT5's tester can feed your EA the broker's recorded ticks, ticks it generates from each minute's OHLC, or just the four OHLC prices. When a stop and a target sit inside one minute, those modes can disagree on which one filled.
Walk-Forward Testing: Steps, Example and Limits
Optimize on earlier data, freeze the rules, test on the next unseen period and repeat. A dated walk-forward example, efficiency pitfalls and MT5 forward-test limits.
MT5 Server Time: Why Your Trade Times Are Hours Off
MT5 stamps every trade in your broker's server time, not yours. How to find your server's offset in one minute, convert any trade time to your clock, and the two stretches a year when the usual New York + 7 hours is wrong by an hour.
MT5 VPS: Rent MetaQuotes' Virtual Hosting and Keep an EA Running
MetaQuotes rents a VPS from inside MetaTrader 5: right-click your account in Navigator, choose Register a Virtual Server, pay, then migrate the charts that run your EAs. What moves and what stays behind, how to read the server's own journal, how to stop or cancel it, and what a Windows VPS from another company leaves to you. From MetaQuotes' pages, read on 2026-10-17; we haven't rented one.
MT4 vs MT5: What Actually Differs, and Which One to Use
MetaQuotes' own comparison puts MT5 ahead on timeframes (21 to 9), pending order types (6 to 4), broker- or exchange-fed market depth, the economic calendar and a multi-threaded Strategy Tester with real ticks. MT4's main advantage is the EAs already written for it, which MT5 can't run. Read from MetaQuotes' pages on 2026-10-17; the market-depth distinction was corrected on 2026-10-18.
The core reading
Monte Carlo Backtesting: One Trading System, 10,000 Simulated Paths
A worked bootstrap example using 24 separate MT5 monthly backtests with generated ticks. We show the inputs, 10,000 synthetic paths, sensitivity to one extreme month, and why these calculations cannot establish live returns or a probability of success.
AI Backtest Overfitting: How to Audit a Perfect Result Before You Trust It
Describe a strategy to AI, or let an EA/indicator generator optimize it, and you'll get a gorgeous equity curve in minutes. You didn't find an edge — you ran a search. And a big enough search always finds a winner, even when there's nothing there.
EA Backtest vs Live Results: The Gap Is the Tell.
Compare EA backtest and live results by checking costs, execution, code and market conditions. Learn why a gap can run in either direction, what evidence helps explain it, and why a simulator cannot certify your live performance range.
Where results quietly die
Forex Trading Costs: Spread, Commission, Slippage and Swap per Trade
Every forex trade pays the spread, usually a commission, often some slippage, and swap if it is still open at the daily rollover. Here is how to add them up per trade in R, with computed tables of the win rate those costs take at each ratio and stop size.
What Is Look-Ahead Bias? How to Find It in a Backtest
Look-ahead bias is a backtest using information that didn't exist yet when each trade was decided. The five places it hides, how to trace each one, and why a one-bar delay test can point at a leak but can't prove one.
How Many Trades Do You Need to Test a Strategy?
There is no universal trade count: what you need depends on how big the edge is, how much single trades vary and whether they move together. Here's how uncertain a win rate stays from 15 to 300 trades, and how to set review points and kill criteria before you start.
One Lucky Hand.
A backtest shows one ordering of your trades. Deal the same cards again and the drawdown can double. Here's the top-quant trick that shows you the real risk — and you can run it today.
XAUUSD EA Backtests: Everyone Was a Gold Genius — Until the Regime Changed
A rising gold market can flatter long-biased EA results. Using the run into January 2026 and the subsequent June snapshot as context, separate directional exposure from decision quality with a matched benchmark and a post-regime audit.
AI Found a Winner.
Test ten thousand strategies and one will look brilliant by pure luck. AI tests ten thousand before lunch. Here is the test quant funds run — and retail skips — that tells a real edge from a coincidence.
Do EAs work at all?
Running it around the clock
MT5 VPS: Rent MetaQuotes' Virtual Hosting and Keep an EA Running
MetaQuotes rents a VPS from inside MetaTrader 5: right-click your account in Navigator, choose Register a Virtual Server, pay, then migrate the charts that run your EAs. What moves and what stays behind, how to read the server's own journal, how to stop or cancel it, and what a Windows VPS from another company leaves to you. From MetaQuotes' pages, read on 2026-10-17; we haven't rented one.
QuantVPS vs ForexVPS 2026: Futures CME Latency vs MT5 Forex Pricing Compared.
Choosing the right trading VPS by broker architecture: QuantVPS Chicago/Aurora servers for NinjaTrader, Tradovate, Rithmic and CQG futures ($29.99–$399.99/mo list) against ForexVPS and FXSVPS Windows plans (ForexVPS in Equinix NY4/LD7) for MetaTrader 4/5 EAs ($3.96–$80/mo).