Tester vs Live Trade Matcher
Info
The Tester vs Live Trade Matcher is a Indicator for MetaTrader 5 that a backtest looks great. Then the EA runs live and the numbers are different, and nobody can say why.
Usage
This tool is typically used for enhancing chart analysis and decision making.
Platform
This Indicator works exclusively on MetaTrader 5 (both build 600+ and newer versions).
Setup
Place the downloaded file in MQL5/Indicators folder via File ? Open Data Folder in MetaTrader 5.
How to Install and Use Tester vs Live Trade Matcher
1. Installation: Place your file in the MQL/Indicators folder via "Open Data Folder" and restart your terminal.
2. Loading: Find the indicator in the Navigator, drag it onto your chart, and configure the input parameters in the popup window.
3. Customization: Press Ctrl+I to open the indicator list, select your tool, and click "Properties" to change colors, levels, or visual styles.
4. Updating: Replace the old file in the Indicators folder with the new version and restart the platform to apply changes.
Frequently Asked Questions
Q: Why is my indicator not showing? A: Verify the file is in the MQL/Indicators folder, or try right-clicking the "Indicators" tree in the Navigator and clicking "Refresh."
Q: Do custom indicators slow down the platform? A: Too many complex indicators can impact performance; remove unused ones via the "Indicator List" (Ctrl+I).
Q: Can I use MT4 indicators on MT5? A: No, MQL4 and MQL5 are distinct languages; ensure the indicator is compiled specifically for your platform version.
What this tool does
A backtest looks great.
Typical Use Case
This Indicator excels in automated trading and technical analysis on MetaTrader 5.
Compatible Platform & Setup
This Indicator works on MetaTrader 5. Place the file in the MQL5/Indicators folder and restart the terminal.
Description & Settings
Related: Prop Firm Live Daily Breach Line: Accurate Drawdown Monitoring - another powerful indicator for MetaTrader 5 traders.
Also recommended: Change in State of Delivery Identification - similar indicator with strong performance on MetaTrader 5.
A backtest looks great. Then the EA runs live and the numbers are different, and nobody can say why. Was it slippage, missed signals, a restart or a manual trade? Or was the backtest flattering?
Tester vs Live Trade Matcher answers that trade by trade, on MetaTrader 5. It never opens, modifies or closes orders.
What you get:
Verdict:
green (live matches the backtest), amber (partly matches) or red (live differs).
Trade match:
trades on each side and the match rate (Jaccard); trades the backtest took but live missed, and what they earned; extra live trades the backtest never took.
Execution:
average entry slippage, exit slippage and entry delay, plus trades where one side hit SL/TP and the other did not.
Result:
price distance captured on matched trades, backtest vs live (independent of lot size); the % of the backtest edge retained live; real commission and swap on both sides.
Largest gaps:
the 5 matched trades where live did worst against the backtest. Click a row to jump to that trade.
Chart marks:
blue ring = backtest entry, orange dot = live entry, dotted lines from entry to exit; red x = missed by live, magenta x = extra on live. Every mark has a tooltip.
CSV export
of the full trade-by-trade table.
Two modes:
Report vs account history:
the main use. Works on hedging and netting accounts.
Report vs a second report:
compare two brokers, two data feeds, or two versions of an EA.
Quick start:
Save the Strategy Tester report as HTML (MetaTrader 5 and MetaTrader 4 reports both work).
Copy the .htm file to MQL5\Files (File > Open Data Folder > MQL5 > Files).
Attach the tool to a chart of the traded symbol. Set the report file name and the EA's magic number.
Read the panel.
Run
re-reads everything,
CSV
writes the table,
Marks
shows or hides the trades,
Go
scrolls to the last compared trade. Click the title to fold the panel.
Nothing found? The panel says why and what to do (file not in the Files folder, no closed trades for that symbol or magic number, report and account do not overlap in time).
How matching works:
Only closed trades are used, within the window where both sides overlap.
Backtest trades are processed in time order. Each takes the nearest unused live trade in the same direction within the tolerance (default 180 s).
Match rate = matched / (backtest + live - matched). Slippage is signed: positive means live got a worse price.
Partly closed positions use the volume-weighted exit price.
Tested:
on 11 pairs of real MetaTrader 5 and MetaTrader 4 reports the panel gives exactly the same numbers as an independent reference script, and an end-to-end test with 184 trades (hedging, partial closes, stop loss, take profit and manual exits) matched 184 of 184.
The verdict thresholds are practical rules of thumb, not statistics: green = match at least 90 % and edge retained at least 80 %; amber = at least 70 % and 50 %. For grid or basket EAs, lower the match tolerance.
Free to use, modify and share (MIT). No warranty, and nothing here is trading advice.
You may also like: Spread Monitor Panel: Live Spread and Spike Alerts - excellent alternative for indicator users on MetaTrader 5.
Source Code
#property copyright "RobotFX"
#property link "https://robotfx.org"
#property version "1.00"
#property description "This code is educational. Feel free to use, modify and upgrade as you wish. Visit ROBOTFX.ORG for professional trading tools"
#property indicator_chart_window
#property indicator_buffers 0
#property indicator_plots 0
#define PFX "TVL_"
#define EPS 1e-8
#define MAXC 16
.......
⚠ Limitations & Risk Warning
- This tool is provided for educational and testing purposes only.
- Past performance does not guarantee future results.
- Trading involves substantial risk of loss. Use on a demo account first.
- Results may vary depending on market conditions, broker, and settings.
- We recommend thorough backtesting and forward testing before using with real funds.