Trade CSV Import Errors: Time Zones, Commas, Duplicates Fixed

Quick answer

Most trade CSV import errors come from ten causes: the wrong delimiter, thousand or decimal separators, repeated Time and Price headers, balance rows, an unknown time zone, duplicate tickets, ambiguous dates, symbol suffixes, summary rows and unquoted commas. Open the file in a plain text editor, compare one known trade, and fix the cause rather than editing numbers by hand.

Key takeaways
  • Look at the raw file in a text editor first: it shows the real delimiter, quotes and header row that a spreadsheet hides.
  • A comma inside a number such as 1,250.50 splits it into two fields unless the field is quoted, according to the CSV format notes in RFC 4180.
  • Excel picks its delimiter from the Windows list separator, which is usually a semicolon where the comma is the decimal mark.
  • Deposits and withdrawals appear as balance rows and must be removed before you compute win rate or profit factor.
  • Test the time zone with one trade you remember; a two-hour offset can move a trade to the next day.
In this article
  1. What are the ten most common trade CSV import errors?
  2. How do you diagnose a CSV before you import it?
  3. Why does the CSV open in one column (delimiter errors)?
  4. How do thousand separators and decimal commas break an import?
  5. What goes wrong with repeated Time and Price columns?
  6. How do balance rows and summary rows distort statistics?
  7. How do you fix a wrong time zone in a trade CSV?
  8. How do duplicate tickets and overlapping files happen?
  9. What about ambiguous dates, symbol suffixes and quotes?
  10. How do you stop these errors from coming back?
  11. The short version

When a trade CSV fails to import, or imports and shows wrong numbers, the cause is almost always one of ten things: the delimiter, the number format, repeated column names, balance rows, the time zone, duplicates, ambiguous dates, symbol names, summary rows or unquoted commas. The fastest fix is to stop guessing: open the raw file in a plain text editor, compare one trade you know, and match the symptom to the table below.

The silent failures are the dangerous ones. A file that refuses to load is annoying. A file that loads with every trade shifted by two hours, or with a deposit counted as a winning trade, quietly corrupts your win rate and every chart built on it. This guide shows how to recognize each failure and fix it at the source.

What are the ten most common trade CSV import errors?

Here is the full troubleshooting table. Each row names the symptom you will see and the fix. Details follow below.

# Error What you see Fix
1 Semicolon delimiter Whole row in one column Choose the delimiter at import, or re-save with commas
2 Thousand or decimal separators Numbers split or read as text Quote fields; use a dot decimal and no thousand separator
3 Repeated Time and Price headers Open and close values overwrite each other Rename headers to Open Time, Close Time, Open Price, Close Price
4 Balance rows Rows with no symbol, odd win rate Delete rows of type balance
5 Wrong time zone Trades on the wrong day or session Set the file’s zone at import
6 Duplicate tickets Doubled trade count De-duplicate by ticket or trade ID
7 Ambiguous dates 03/04 read as the wrong month Use yyyy-MM-dd
8 Symbol suffixes XAUUSD and XAUUSD.m as two markets Map or strip the suffix
9 Summary or extra rows Totals imported as trades Keep the trades table only
10 Unquoted commas or quotes in text Columns shifted right Quote fields with commas; double inner quotes

How do you diagnose a CSV before you import it?

Open the file in a plain text editor such as Notepad or TextEdit, not in Excel. A text editor shows exactly what is in the file: which character separates fields, whether text is in quotes, and where the header row is. A spreadsheet hides all three and may rewrite data when you save.

Then run the known-trade test. Pick one trade you remember well, such as a gold trade you closed just after a news release. Find it in the file and compare four things with your own record: the symbol, the side, the open and close times, and the profit. If all four match, the file is probably sound. If the times differ by a round number of hours, you have a time-zone problem. If the profit differs by a factor of 100 or 1,000, you have a separator problem.

Why does the CSV open in one column (delimiter errors)?

The program expects one separator and the file uses another. A comma is standard, but many regions use a semicolon. The Ablebits explanation of Excel delimiters says Excel uses the list separator defined in Windows regional settings, and in European countries, where a comma is reserved for the decimal symbol, the list separator is generally a semicolon.

Fixes, in order of safety. First, use the import function, such as Power Query’s Preview dialog, and choose the delimiter there. Second, in Excel, clear “Use system separators” under File, Options, Advanced, which affects only Excel. Third, change the list separator in Windows Region settings, but note that this changes formula argument separators too and is system-wide. Fourth, re-export from the platform with a different regional setting.

How do thousand separators and decimal commas break an import?

An unquoted comma inside a number turns one field into two. RFC 4180, the closest thing to a CSV standard, says fields containing commas, double quotes or line breaks should be enclosed in double quotes. It also notes that there is no formal specification, which “allows for a wide variety of interpretations of CSV files,” so tools disagree.

Hypothetical example. A profit of one thousand two hundred fifty and fifty cents:

Raw text in file Result in a comma-delimited parser
1,250.50 (unquoted) Two fields: 1 and 250.50; every later column shifts right
"1,250.50" (quoted) One field, but a strict number parser may still reject the thousand separator
1250.50 Correct
1.250,50 A decimal-comma format: read as text, or as 1.25, by a dot-decimal parser

The safest format is no thousand separator and a dot decimal. If you cannot change the export, use find and replace on the numeric columns only, in a copy, then check three totals against your platform.

What goes wrong with repeated Time and Price columns?

Trade reports often list open and close values side by side, and the same header can appear twice. MetaTrader 4’s help describes a table with open time and close time, and open price and close price, in one row. In the file, those may both read “Time” and “Price,” and a parser or spreadsheet that keys on header names will keep one and drop or overwrite the other.

How to recognize it: every trade’s open and close time look the same, or one of them is blank. Fix by renaming the headers by position before import: first Time to Open Time, second Time to Close Time, first Price to Open Price, second Price to Close Price. Check the order against the raw report, because the open value comes first in the MT4 layout. Save the renamed file as a copy.

How do balance rows and summary rows distort statistics?

They add entries that look like trades. MetaTrader 4’s help says the Type column can read “Balance” for entering of funds in the account, and its reports include a summary with Balance, Equity, Margin and Free Margin. A deposit row has a profit figure and no symbol, so a journal can count it as a win.

Hypothetical closed trades: +120, -60, +90, -40. Net +110, win rate 2 of 4, or 50%. Add a +1,000 deposit row, and the profit sum is +1,110 and the win rate 3 of 5, or 60%. Add a -500 withdrawal and the win rate is 3 of 6, 50%, but the net is +610. Every metric built on the sum is wrong, including expectancy. Delete rows of type balance, and stop the file at the end of the closed-trades table.

How do you fix a wrong time zone in a trade CSV?

Work out the offset with one known trade, then apply it once at import. Platforms do not label time zones consistently. MetaTrader 4’s help lists times as YYYY.MM.DD HH:MM without a zone, a third-party MT4 guide says they reflect the broker’s server time, and Binance’s support page says its history is shown in UTC+0. Check your own platform rather than assume.

Example (hypothetical) Value
Your record: trade closed 2026-01-12 17:30 New York (UTC-5)
File shows 2026-01-13 00:30
Offset File is 7 hours ahead of New York
Meaning File is probably UTC+2 server time

Notice the date changed too: the trade lands on January 13 in the file and January 12 in reality. That moves daily profit and loss and your session analysis. Watch for daylight saving, because a server that follows US or European rules changes its offset twice a year, so one offset may not fit a whole year of data. If your journal offers a time-zone setting for the import, use it instead of editing the column.

How do duplicate tickets and overlapping files happen?

The same trade enters twice through overlapping exports or two different file types. MetaTrader 5 help says a position is included in a report if its opening date or closing date falls inside the period, so monthly exports of a trade held across a month end both contain it. Importing a Deals file after a Positions file does the same.

Detect by sorting on the ticket or trade ID and looking for repeats. Fix by importing one file type from one All History export, or by deleting the duplicates before import. If you keep both files, label them, and never import both into the same account. The MT5 export guide and the MT4 export guide show how to choose the export that avoids this.

What about ambiguous dates, symbol suffixes and quotes?

Three smaller errors cause large confusion. For each, the table gives a hypothetical case.

Error Example Consequence Fix
Ambiguous date 03/04/2026 3 April or 4 March Use yyyy-MM-dd
Symbol suffix XAUUSD.m vs XAUUSD Two instruments in reports Map to one symbol
Quote or comma in a comment Took "A" setup, late Columns shift right Quote the field; double the inner quotes

For quoting, RFC 4180 says a double quote inside a quoted field is escaped by another double quote, so the comment above should be "Took ""A"" setup, late". If your platform exports comments, check that column first when a file looks shifted.

How do you stop these errors from coming back?

Make the export repeatable. Export All History once a month, name the file with the date, keep the original, and import a copy. Write down the settings that worked: delimiter, time zone, date format, file type. The interactive brokers guide shows these settings for a platform where you choose them yourself.

If you cannot be bothered to maintain a spreadsheet of fixes, that is a legitimate reason to use software, and the spreadsheet versus journal software comparison puts numbers on the time involved. A journal like Pips Decoded recognizes the MT4, MT5, cTrader and other CSV layouts and has a time-zone setting for each file, which removes several of the ten errors, though not the need to export the right file; see pipsdecoded.com.

This article is educational and is not financial advice.

The short version

  • Read the raw file in a text editor, then run the known-trade test on one trade.
  • Delimiter, number format and quoting errors show up as shifted or merged columns.
  • Remove balance and summary rows; they count as fake trades.
  • Find the time-zone offset with one trade, apply it once, and watch daylight saving.
  • Export All History once, import once, and de-duplicate by ticket or trade ID.

Sources

Frequently asked questions

Why does my trade CSV open in one column?

The file's delimiter does not match what your program expects. Excel uses the list separator from your Windows regional settings, which is often a semicolon in regions where the comma is the decimal mark. Open the file with Excel's import option and choose the delimiter, or change the separator, rather than retyping data.

How do I fix the wrong time zone in a trade CSV?

Find one trade whose real time you know, compare it with the file, and work out the offset in hours. Then set that offset in your journal's import time-zone setting, or convert the column before import. Do not edit single rows by hand. Remember that daylight saving can change the offset during the year.

Why does my journal show duplicate trades after importing?

Usually the same trade is in two files because your export periods overlapped, or because you imported a deals file and a positions file. Compare ticket or trade IDs, and delete one copy. Exporting All History once and importing it once is the simplest way to prevent it.

What are balance rows in a trading CSV?

Balance rows record deposits, withdrawals and similar account entries. MetaTrader 4's help describes the Balance type as entering of funds in the account. They have no symbol and are not trades, but they can sit in the same table, so remove them before you calculate any statistic.

Should I edit a trade CSV in Excel before importing?

Only if you have to. Excel can reformat dates, strip leading zeros and change separators on save. Make a copy, make the smallest fix, save as CSV, and then check the result in a text editor. Better still, fix the cause in the export settings and re-export.

Keep reading

Written by the Pips Decoded editorial team and last updated November 13, 2026. We cite the sources we opened and recompute every example. Pips Decoded sells a trading journal, so read our product mentions with that in mind. How we write and check articles. This article is educational and is not financial advice.