CSV import
Export cookbook for MT4 and MT5
One-click-feeling steps to a file our parser already accepts. Closed positions only — no broker auto-sync yet.
Drop the CSV here
Parsed in the browser. Guest-friendly — sign in only if you want to save a copy.
What a good file looks like
- Real CSV (commas, semicolons, or tabs) — not .htm / .html and not Excel-only .xlsx.
- A header row near the top with trade columns. Extra title lines above it are OK.
- One row per closed trade. Balance, credit, and deposit rows are skipped automatically.
- Both an open time and a close time (MT5: two Time columns on Positions, not one Time on Deals).
MT4
MetaTrader 4
Copy Account History into a spreadsheet, then save as CSV. Native Save as Report is HTML.
MT4 desktop has no “Save as CSV”. File-menu / right-click Save as Report and Save as Detailed Report both write HTML. RiskGuard rejects HTML. The path below produces the closed-trade CSV our parser already accepts.
- 1Open MetaTrader 4 on the desktop and log in to the account you want to audit.
- 2Press Ctrl+T (or View → Terminal) and click the Account History tab.
- 3Right-click the list → All History (or Custom Period) so every closed trade you want is visible.
- 4Skip Save as Report / Save as Detailed Report — those files are HTML.
- 5Click a row, then Ctrl+A (or Shift-click the range). Right-click → Copy.
- 6Paste into Excel or Google Sheets. You should see Ticket, Open Time, Type, Size, Item, two Price columns, S/L, T/P, Close Time, Profit.
- 7Save as CSV UTF-8 (Excel: File → Save As → CSV; Sheets: File → Download → CSV).
- 8Drop that .csv on the leak calculator. Semicolon-delimited EU exports are fine.
Expected columns
Ticket,Open Time,Type,Size,Item,Price,S/L,T/P,Close Time,Price,Commission,Taxes,Swap,Profit
MT5
MetaTrader 5
Export closed Positions (two Time columns). Never deal-only history.
Do not export Deal history with a single Time column. We do not reconstruct deals into positions.
- 1Open MetaTrader 5 on the desktop and log in.
- 2Press Ctrl+T and open Toolbox → History.
- 3Right-click the history list → Positions (closed positions). Leave Deals unchecked.
- 4Right-click → All History or Custom Period.
- 5Copy the Positions table (select rows → Copy), or Report → Open XML (Excel) then keep the Closed Positions table only.
- 6In Excel or Sheets, confirm two Time columns (open and close) plus Position, Symbol, Type, Volume, Price, S/L, T/P, Profit.
- 7Save as CSV UTF-8 and drop it here. Native MT5 reports are often HTML or XLSX — convert the positions table to CSV first.
Expected columns
Time,Position,Symbol,Type,Volume,Price,S/L,T/P,Time,Price,Commission,Swap,Profit
cTrader
cTrader
Export closed positions with opening and closing times.
- 1In cTrader, open History and filter to closed positions for the dates you want.
- 2Export / Copy as CSV (not a PDF statement).
- 3Confirm Opening Time and Closing Time are both present — not a single fill timestamp.
Expected columns
Closing Deal ID,Opening Deal ID,Opening Time,Closing Time,Entry Price,Closing Price,Commissions,Swap,Symbol,Quantity,Direction,Gross Profit
Myfxbook
Myfxbook
Download the account CSV statement.
- 1Open the Myfxbook account → History / Statement.
- 2Export CSV (not the HTML widget).
- 3You need Open Date, Close Date, Symbol, Action, Lots, and Profit.
Expected columns
Open Date,Close Date,Symbol,Action,Lots,Open Price,Close Price,Pips,Profit,Duration,Gain