TradeMath Trade History Statistics MT4

TradeMath is a read-only script. It reads the closed trades of the account it runs on and prints five numbers that describe the trading so far. It opens, changes and closes nothing. It measures the past and predicts nothing.

The five numbers

  • Expectancy: win % x average win - loss % x average loss = the average trade after costs. Also the net result and the profit factor.
  • Costs: swap, commission and fees in money and as a share of the gross profit.
  • Drawdown: the deepest fall of the closed-trade balance, how far the balance is below its peak now, and the gain needed to recover.
  • Losing streak: the longest run of losing trades, and what a streak of that length costs at 1 %, 2 % and 5 % risk per trade.
  • Luck test: the t statistic of the average trade. It says whether the result can be told apart from luck, and about how many trades of this kind it would take to know.

How to use it

In MetaTrader 4, first open the Account History tab, right-click and choose All History: the script sees only what that tab shows. Drag TradeMath from the Navigator onto any chart. The symbol and timeframe of the chart do not matter. The report appears on the chart and in the Experts tab. With Save_Report on, it is also written to a text file in the MQL4\Files folder of the terminal.

Inputs

  • From_Date, To_Date: the period. To_Date 0 means now.
  • Magic_Filter: -1 = every trade; otherwise only the trades with one magic number (0 = manual trades).
  • Symbol_Filter: empty = every symbol; otherwise one symbol.
  • Save_Report: also write the report to a text file.

How to read the report

If the average trade is negative, the method loses, and a different lot size only changes how fast. If costs take a large share of the gross profit, the method trades too often or its stops are too short for its costs. If the losing streak at your real risk is more than you could bear, lower the risk per trade. If the luck test says the result cannot be told apart from luck, there are still too few trades to rely on it.

Limits

  • Spread is paid inside the prices, so it is not in the cost line.
  • Deposits and withdrawals in the period are not separated from the balance curve.
  • The drawdown percentages start from the current balance minus the net result of the selected trades. With Magic_Filter or Symbol_Filter they are approximate.
  • With fewer than 30 trades the luck test only says that there are too few trades.
  • The report and its file name contain the account number. Remove it before you share the report.

The numbers measure the past only. A positive past is not a promise for the future. Check the numbers against your broker's statement before you rely on them.

More from author
Is your broker filling you at the price you see? Execution Quality Logger answers with numbers: slippage, latency and spread for every fill on the account - every EA and every manual trade - in a chart panel and a CSV file. Use it to compare brokers, to check a VPS, or to find out why live results differ from the backtest. It only measures; it never trades on a live account. A utility that measures how your broker fills your orders. Attach it to any one chart: it watches every deal on the tradin
One bad day should not end your account. Account Guardian is a seat belt for your whole trading account: you set the loss limits once, and when equity reaches one of them it closes everything and keeps the account flat - even if an EA misbehaves, a manual trade goes wrong or you are asleep. Why traders install it Guards the whole account, not one chart: every EA, every manual trade, every pending order, every symbol. Daily loss and max loss limits like the prop firms use, with a buffer so it tri
PropGold
Ganzorig Munkhbayar
A calm gold breakout EA that shows you its losses before you buy it. One idea, traded with discipline: wait for a clean break of the H4 opening range on XAUUSD, enter with a stop already in place, bank part of the move, and let the rest run. No martingale, no grid, no averaging down, no hedging, and never a trade without a stop loss. Price: 299 USD. Rent: 30 USD for 1 month or 199 USD for 1 year. Why traders choose it Small, controlled drawdown. In the real-tick backtest below the deepest equity
One bad day should not end your account. Account Guardian is a seat belt for your whole trading account: you set the loss limits once, and when equity reaches one of them it closes everything and keeps the account flat - even if an EA misbehaves, a manual trade goes wrong or you are asleep. Why traders install it Guards the whole account, not one chart: every EA, every manual trade, every pending order, every symbol. Daily loss and max loss limits like the prop firms use, with a buffer so it tri
TheRedeemer
Ganzorig Munkhbayar
Built by a trader, for traders who want to stay in the game. TheRedeemer is ten years of one trader's work on gold, distilled into an Expert Advisor that does the hard parts for you: it opens a balanced hedge pair instead of guessing the direction, follows the side the market chooses, locks profit before it slips away, and recovers a drawdown step by step rather than all at once. Version 6.3 brings the account guard, margin checks and order checks that our own long tests asked for - so it can ru
Terminal Watchdog
Ganzorig Munkhbayar
Find out the moment your EAs stop working - not days later. Terminal Watchdog sends a push to your phone when the connection drops, Algo Trading is switched off, the price feed freezes, an EA disappears from its chart or the margin level gets low, and again when it recovers. Built to stay quiet at weekends and daily breaks, so an alarm means something. It never trades on a live account. A utility for anyone who leaves MetaTrader 5 running on a VPS or a home computer. Attach it to one chart: ever
TradeMath is a read-only script. It reads the closed trades of the account it runs on and prints five numbers that describe the trading so far. It opens, changes and closes nothing. It measures the past and predicts nothing. The five numbers Expectancy : win % x average win - loss % x average loss = the average trade after costs. Also the net result and the profit factor. Costs : swap, commission and fees in money and as a share of the gross profit. Drawdown : the deepest fall of the closed-trad
FREE
Filter:
No reviews
Reply to review