Summary: Export your MT4 trading history to CSV format. This guide covers accessing account history, saving as report, and converting to CSV for equity curve visualization and performance tracking.
Step 1: Open Account History in MT4
Launch MT4 and press `Ctrl+T` to open the Terminal window if not visible. Click the ‘Account History’ tab at the bottom. Screenshot: Terminal window with Account History tab highlighted.
Step 2: Select Time Range
Right-click anywhere inside the Account History area. Choose ‘All History’ for complete data, or select ‘Last 3 Months’ / ‘Last Month’ / ‘Custom Period’ as needed. Screenshot: right-click menu showing time range options.
Step 3: Save as Detailed Report
Right-click again on Account History. Select ‘Save as Detailed Report’. Choose a location on your computer (e.g., Desktop). Name the file and click ‘Save’. The file will be saved as .htm (HTML) format. Screenshot: Save as Detailed Report dialog box.
Step 4: Open HTML File in Excel
Open Microsoft Excel. Go to ‘File’ → ‘Open’ → ‘Browse’. Select ‘All Files’ from the file type dropdown. Locate your saved .htm file and open it. Excel will render the HTML as a spreadsheet. Screenshot: Excel opening HTML file.
Step 5: Save as CSV
In Excel, click ‘File’ → ‘Save As’. Choose ‘CSV (Comma delimited) (.csv)’ as the file format. Name your file and click ‘Save’. Now you have a clean CSV file. Screenshot: Save as CSV option in Excel.
Step 6: Generate Equity Curve
Open the CSV in any tool (Excel, Python, or trading journals). Use the ‘Balance’ or ‘Profit’ columns to plot cumulative profit over time. That line is your equity curve. Screenshot: sample equity curve chart from CSV data.
Reference: MetaQuotes Help Desk – How to save account history as report.