著者: William Harris · 最終レビュー
How to Export an MT5 Trading Statement (HTML, XML, CSV)
必要なもの
- • MT5 with the account you want to export
- • Web browser (for viewing HTML report)
- • Optional: Excel or Python for CSV analysis
ステップバイステップの手順
ステップ 1: Open the Account History tab
View → Toolbox (Ctrl+T) → Account History tab (next to Trade, Exposure, History). Or Ctrl+T then navigate to the History tab if it's hidden by default.
By default, Account History shows the last 7 days of trades. To export a wider window, right-click → Period → choose Last Month, Last 3 Months, All History, or Custom Range. Custom Range opens a date picker; pick the range you need.
For a complete account history (all trades since account opening), use 'All History'. This can include thousands of rows for an old account; the report file size scales linearly. Filter to a smaller period if you only need recent data.
The table shows columns: Time, Position ID, Symbol, Type (Buy/Sell), Volume, Price, S/L, T/P, Time of close, Price of close, Commission, Swap, Profit. Most exports preserve all columns; CSV exports preserve only the columns shown.
ステップ 2: Right-click → Save as Report
Right-click anywhere in the Account History table → Save as Report. A submenu offers:
• Report — HTML file. Human-readable summary at the top (Net Profit, Trade Count, Win Rate, etc) followed by full trade list. Good for general sharing and support tickets.
• Detailed Report — HTML file with charts (equity curve, monthly returns bar chart, symbol breakdown). Largest file size (1-5 MB depending on trade count) but most informative.
• XML — XML format suitable for re-importing into another MT5 instance or for programmatic processing.
• CSV — comma-separated values, one row per trade. Best for Excel / Python / pandas analysis.
Pick HTML or Detailed Report for human consumption. Pick CSV for analysis. Pick XML for tool interoperability.
MT5 prompts for a save location. Default is your Documents folder; the file is named like AccountStatement_<accountnumber>_<daterange>.html. Use a descriptive name if you'll have multiple reports.
ステップ 3: What's in the HTML report
Open the saved HTML in any web browser. Top section is summary:
• Account Number, Name, Currency — your account identifiers. • Leverage, Balance, Equity at report time. • Total Net Profit, Gross Profit, Gross Loss, Profit Factor. • Expected Payoff, Absolute / Maximal / Relative Drawdown. • Total Trades, Profit Trades / Loss Trades counts and percentages. • Largest profit trade / loss trade. • Average win / loss / consecutive wins / losses. • Sharpe Ratio, Sortino Ratio (in newer MT5 builds).
Middle section: Closed Positions table. One row per trade with all the detail.
Bottom section (Detailed Report only): Equity curve chart, Monthly Returns bar chart, optional Symbol Performance breakdown.
This is the standard report format every broker, prop firm, and EA vendor recognises. When opening a support ticket, attaching the Detailed Report HTML gives the support team everything they need in one file.
ステップ 4: What's in the CSV export
Open the CSV in Excel, Google Sheets, or a text editor. Headers vary slightly across MT5 builds; in 2026 the standard columns are:
Time, Position, Symbol, Type, Volume, Price (open), Stop Loss, Take Profit, Time (close), Price (close), Commission, Swap, Profit.
One row per closed trade. Open positions are excluded — only realized P&L. Order modifications (S/L / T/P changes mid-trade) are not in the position-level CSV; for that detail use the Deal-level export.
Deal-level export is a separate option: right-click → 'Save as report' → Detailed CSV. This produces one row per Deal (every market interaction: open, modify, close), which is essential for forensic reconstruction of complex trades.
For Python analysis: ```python import pandas as pd df = pd.read_csv('Statement.csv', skiprows=2) # skip header rows df['Profit'].sum() # net P&L df.groupby('Symbol')['Profit'].sum() # per-symbol P&L ```
For Excel: import via Data → Get External Data → From Text → choose CSV delimiter. Use Pivot Tables to slice by symbol, month, or magic number.
ステップ 5: Filter before exporting for specific use cases
MT5 lets you filter the trade list before exporting. Common filter patterns:
By Magic Number — Right-click → Magic Number filter (or Custom → Magic Number). Useful for exporting a single EA's trades from a multi-EA terminal.
By Symbol — Right-click → Symbols → check only the symbols you want.
By Date Range — Right-click → Period → Custom Range, pick dates.
By Trade Type (Buy/Sell) — Right-click → All Trades / Only Buy / Only Sell.
For prop-firm verification reports, you usually want: a specific date range covering the challenge period, all symbols, all magic numbers. Set those filters, then Save as Report.
For a tax-year report, filter by the calendar year date range, then export as CSV. Most accounting tools accept the MT5 CSV format directly with minor column mapping.
ステップ 6: Export for prop-firm verification (specific tips)
Prop firms require very specific report formats during verification or after passing the challenge. Common requirements:
• Date range covering the entire challenge period — set Custom Range from challenge-start date to today.
• Detailed Report HTML format — gives them the equity curve they verify against their own server logs.
• Includes commissions and swaps — most prop firm rules count gross P&L not net, but they cross-check the components. Don't strip these columns.
• 'No EA trades hidden' — some firms forbid hidden / mid-trade-deleted positions. The report should show every trade with timestamps; if you've cleared the History, regenerate from broker portal.
• Account number must match the prop firm's account — verify the report header shows the correct account ID.
If the prop firm requires a Myfxbook-verified track record (not just an MT5 report), set up Myfxbook with your investor password and share the public URL instead.
For prop-firm withdrawal requests, the report is usually generated by the firm's back office automatically — you don't export anything. The MT5 export is for your own records or for disputing a flagged trade.
避けるべきよくある間違い
- ✗ Exporting Detailed Report when you only need basic numbers (causes huge files)解決策: Use plain Report for support tickets. Detailed Report only when you need the visual charts.
- ✗ Forgetting to filter by Magic Number when sharing with one EA's vendor解決策: Vendors don't need to see your other EAs' trades. Filter by Magic before exporting.
- ✗ Exporting positions-level CSV when you need deal-level forensic detail解決策: Position-level is one row per closed trade. Deal-level is one row per market interaction. Pick based on use case.
- ✗ Sharing HTML reports with raw broker account numbers visible解決策: For public sharing (Twitter, forums), open the HTML in a browser and edit the account number out before publishing. Account numbers can be socially engineered.
- ✗ Assuming the export shows open positions too解決策: Account History export is closed positions only. For open positions, use Trade tab → right-click → Save as Report.
よくある質問
What's the difference between 'Report' and 'Statement'?
Historically MT4 used 'Account Statement' and some MT5 builds use 'Report'. The format is the same: HTML with summary header + trade list. If a broker support ticket asks for a 'statement', the MT5 Save-as-Report HTML is what they want.
Can I import the MT5 report into Myfxbook?
Manual import is useful for backfilling history before you had Myfxbook connected. For ongoing live verification, use the investor-password connection — it's automatic and trustless. Mixed setups (manual import for old history + live connection for new) work but require manual reconciliation if there's an overlap period.
Does the MT5 report include enough detail for tax filing?
US 1099-B reporting requires per-trade detail for short-term gains. EU member states usually accept aggregated annual P&L with supporting per-trade detail on request. UK SA108 (CGT) requires per-asset annual gain/loss. The MT5 CSV is the raw material; your accountant or tax software processes it into the right return format. For futures-only accounts, the broker often issues a year-end 1099 that supersedes the MT5 report.
Can I export 5+ years of trade history at once?
MetaTrader 5 stores trade history client-side in the data folder cache. The cache is populated from the broker server on first request. If you reinstall MT5 on a new VPS, all history must re-sync from the broker — for a 5-year history this can take 5-30 minutes. Old brokers sometimes only retain 12 months on the server; for older data you need broker support to retrieve archived records.
Is it safe to share my MT5 report with a vendor or prop firm?
Public sharing (Twitter, forums, public blog) requires more care. The account number combined with social engineering can sometimes get an attacker further than it should — recommended to redact for public sharing. For private sharing with a vendor or prop firm, the account number is part of what the recipient legitimately needs (to verify you are the account owner).
Report exported — ready for the next phase
If you're moving from demo to live trading, the report from a 30+ day demo run is your evidence. Our demo-to-live guide walks through the transition.
Continue to: How to go from demo to live trading →関連するハウツーガイド

William Harris
FxRobotEasy 創設者兼リード開発者
米国シカゴ · 2021年より
- 12年以上のライブトレーディング
- 10年以上の MQL5 / MQL4 経験
- 3つのライブ検証済み Expert Advisor
- 2021年設立
“私は中学生の頃からコードでものづくりをしてきました。大学時代からトレードを始めました。この2つの世界の交差点 —— アルゴリズム、市場、そしてそれらを結ぶテクノロジー —— が、私が過去15年間を過ごしてきた場所です。FxRobotEasy は、思い描いたものが実際のブローカー口座で動作するまで諦めないと決めたときに生まれるものです。”