Record keeping
How to Keep Good Trading Records for Your Expert Advisor: Exporting MT5 History and Reviewing It
By Benjamin Lee · Updated · 6 min read
An Expert Advisor trades without you, which makes it easy to stop paying attention. Months later you cannot say what it earned after costs, whether its drawdown was within the tested range, or what to give your accountant. Good records fix this. They do not need to be complicated: an export of the account history, a short monthly log and a clear folder structure are enough. This guide shows how to export history from MetaTrader 5, what to track each month, how to review it, and how to prepare records you can hand to a professional.
Key takeaways
- Export the MT5 account history every month and save it with the date in the file name.
- Keep a short monthly log of results, drawdown, costs and any changes you made.
- Record changes to settings, lot size and versions, so results can be explained later.
- Keep broker statements and deposit or withdrawal records alongside the exports.
- Tax treatment differs by country. Ask a qualified adviser; this guide gives no tax advice.
Why records matter for an EA
Records answer three questions. Is the EA doing what it did in testing? What does it really cost me to run it? And what do I need to show if someone asks, such as an accountant or a broker? Without records you rely on memory, which favours the last few trades. With records, you can compare months, spot drift and make decisions from facts. They also protect you if there is a dispute with a broker or a seller, as covered in our buying checklist.
Export your account history from MT5
Step 1: Open the History tab
In the Toolbox window at the bottom, choose the Trade tab and the History tab. History lists closed positions, orders and deals.
Step 2: Set the period
Right-click in the History tab and choose a period such as last month, last three months or a custom period.
Step 3: Choose what to show
Positions show each trade with entry, exit, profit, commission and swap. Deals show every execution, including deposits and withdrawals.
Step 4: Save the report
Right-click and choose Report, then pick HTML or Excel (CSV style) and save it. Use a clear name such as account-12345-2026-10-positions.
Step 5: Save a copy of the statement from the broker
Your broker's client area provides official statements. Keep these too, because they are the broker's record.
Step 6: Back up the files
Store copies in two places, such as your computer and a cloud folder.
Menus differ slightly between versions of the terminal. If an item is missing, check the MetaTrader help or ask your broker. MetaQuotes describes the trading history and the report options in its help pages on trading operations.
What to track each month
| Item | Why it matters |
|---|---|
| Starting and ending balance and equity | Shows growth after everything |
| Deposits and withdrawals | Separates profit from money you added or took out |
| Net profit and number of trades | The raw result and its sample size |
| Largest drawdown during the month | Compare with the backtest's maximum |
| Average spread and slippage seen | Shows the real cost against the test |
| Commission and swap paid | The costs that a gross figure hides |
| Software and VPS costs | The total cost of running the EA |
| Changes made | Settings, lot size, version, broker or account type |
| Notes | News events, errors, restarts and anything unusual |
Put the table in a spreadsheet and add one row per month. After a quarter you will see whether results, drawdown and costs match what you tested. If they do not, the log tells you when the difference began, which helps you find the cause. This is also the data you need for the decisions in what to do when your EA is in drawdown and when to turn off your EA.
A monthly review in ten minutes
Step 1: Export and save the history
Do it on the same day each month.
Step 2: Update the log
Fill in the row from the table. Use the account history for exact figures.
Step 3: Compare with the test
Check drawdown, trade count and average trade against the backtest and forward test.
Step 4: Check costs
Add spread, commission, swap and software costs and compare with profit.
Step 5: Write one line of conclusion
For example: within range, no change; or drawdown above plan, reduced lot by half.
A simple folder structure
- A folder per year, with a subfolder per account.
- Inside each: monthly history exports, broker statements and the EA log spreadsheet.
- A separate folder per EA with the manual, the setfile, the version file, the licence and the order confirmation.
- A notes file of changes with dates, so that you can match them with the results.
- Backups in a second place. Test that you can open them.
Records for your accountant
How trading profits and losses, software costs and VPS fees are treated depends on your country, your status and your circumstances, and the rules change. This guide does not give tax or legal advice. What it can do is help you gather the material a professional will usually ask for: the broker statements for the period, the account history export, deposit and withdrawal records, invoices for the EA and for the VPS, and the dates and amounts of any payouts. Ask your adviser in advance what form they want, because it is easier to export it correctly than to rebuild it later.
The wider routine is in the MT5 Expert Advisors guide, and the first 30 days plan shows what to record from the start.
A sample three-month log
The figures below are invented to show how a log reads. They are for a 2,000 euro account running one EA.
| Month | Start equity | Deposits | Net profit | Max drawdown | Costs (spread, commission, swap, VPS) | Note |
|---|---|---|---|---|---|---|
| July | 2,000 | 0 | +70 | 6% | 55 | Normal month |
| August | 2,070 | 0 | -95 | 11% | 60 | Near the tested maximum of 12%; lot size reviewed |
| September | 1,975 | 500 | +40 | 7% | 62 | Added funds; lot raised by rule, not by feel |
Three months of rows already tell a story. August was close to the tested drawdown, so the trader reviewed and kept the plan. In September the deposit is shown separately from profit, so the balance growth is not mistaken for performance. Costs are written down, which shows they were over 80 percent of the profit in July, a figure many traders never see. That is the value of the log: it turns a vague feeling into numbers you can act on.
Sources and further reading
- MetaTrader 5 Help: Basic Principles of Trading OperationsOrders, deals and positions, and how netting and hedging accounts differ.
- MetaTrader 5 Help: Testing ReportWhat each figure in the tester's report means, including drawdown.
- MetaTrader 5 Help: Expert Advisors and Custom IndicatorsHow Expert Advisors and custom indicators work in the terminal.
Frequently asked questions
How do I export my trade history from MT5?
Open the History tab in the Toolbox, set the period, right-click and choose Report, then save as HTML or Excel. Also download the official statement from your broker's client area.
How long should I keep EA trading records?
Keep them for as long as your country's rules require, which can be several years, and for as long as you want to compare results. Ask your adviser for the exact period.
What should I record besides profit?
Drawdown, trade count, spread and slippage, commission and swap, software and VPS costs, deposits and withdrawals, and every change to settings or versions.
Do I need records if the EA is on a prop firm account?
Yes. Keep the firm's rules at the time you started, payout records, fee receipts and your own trade logs. They help with disputes and with your adviser.
Can you tell me how my trading profit is taxed?
No. Treatment depends on your country and situation. Ask a qualified tax adviser and bring organised records.
Expert Advisors in these styles
Apply the checks above to any of these before you buy: read the manual, run your own backtest, and start on demo.
Keep reading
- Pillar guideMT5 Expert Advisors: The Complete Guide for BeginnersEverything about MetaTrader 5 Expert Advisors in one place: how they work, strategy types, risk, backtesting, buying safely, gold, EURUSD, prop firms and Europe.
- Getting startedYour First 30 Days With an EA: A Week-by-Week PlanA week-by-week plan for your first 30 days with an Expert Advisor: install, backtest, demo, a small live account, and the numbers to record each week.
- Risk managementEA in Drawdown: What to Do (and What Not to Do)What to do when your Expert Advisor is in drawdown: separate normal from broken, check the logs, compare with the backtest, and decide to hold, reduce or stop.
- Buying guideEA Buying Checklist: 15 Questions to Ask Before You Pay15 questions to ask before buying an MT5 Expert Advisor: who built it, licence terms, backtest proof, risk logic, support and refunds, with a printable checklist.


