Summary: This tutorial explains how to export complete MT4 account history to CSV format, including trade list, order details, and using the built-in report generator for professional data analysis.




Step 1: Open Account History Tab in MT4 Terminal
Launch MT4 and press Ctrl+T to open the Terminal window. Click the "Account History" tab. Right-click inside the tab area and select "All History" to display every transaction from the entire account period.
(Screenshot suggestion: Terminal window with Account History tab and right-click menu open)

Step 2: Choose Export Format – CSV or HTML
Right-click again on any row in the Account History list. Hover over "Save as Report" or look for "Export". MT4 native generates an HTML report. For CSV, use third-party tools or the "Export to CSV" option if your broker provides a custom build. Alternatively, copy and paste: select all rows (Ctrl+A), copy (Ctrl+C), paste into Excel (Ctrl+V), then save as CSV.

Step 3: Generate Detailed Report via Save as Report
Right-click → "Save as Report". Choose a folder and file name. MT4 creates an .htm file. Open it in a browser, then copy tables into Excel. From Excel, go to File → Save As → choose CSV UTF-8 (.csv).
(Screenshot suggestion: Save as Report dialog window)

Step 4: Use Free Tools for One-Click CSV Export
Install a free script like "History2CSV" (available on MQL5 marketplace). Copy the .mq4 file to MQL4/Scripts. Drag the script onto any chart. It auto-generates a CSV file inside MQL4/Files. Open Data Folder to retrieve it.

Step 5: Data Fields You Get
Exported CSV typically includes: Open Time, Type, Size, Symbol, Price, S/L, T/P, Close Time, Commission, Swap, Profit, Comment, Magic Number. Use this for equity curve or tax reports.

Step 6: Backup Your History Regularly
Go to File → Open Data Folder → profileshistory. Copy .hst files for backup. This preserves raw tick data for backtesting.

Reference: MetaQuotes Help Desk – Account History (2025). MQL5 Documentation – File Functions and Export Scripts (2024).