Bar CSV Import Check
- Utilità
- Versione: 1.0
- Attivazioni: 5
Check the file before it becomes your backtest history.
A CSV can look tidy in a spreadsheet and still contain a repeated minute, an impossible candle or a date that silently changes when parsed. Bar CSV Import Check gives you a read-only inspection inside MT5 before you import a file into a custom symbol.
Find the rows worth reviewing
- Detect unsupported field layouts, malformed dates and numeric values, integer overflow and inconsistent open/high/low/close bounds.
- Count backwards ordering, equal consecutive timestamps and repeated minute keys anywhere in the checked, structurally parsed rows.
- Flag nonpositive OHLC prices and timestamps that are not on whole minutes.
- Optionally count forward intervals that differ from your chosen duration, with a clear distinction between interval warnings and proven missing data.
- See up to five example findings with file line numbers and save a local text report.
- Know when a check is partial: row caps are labelled explicitly instead of presented as a clean whole-file result.
Useful beyond the import dialog
- Review manually edited or externally supplied candle files before using them as custom-symbol history.
- Check files after changing delimiters, date formatting or exporting from a spreadsheet.
- Inspect a file produced by your own data exporter before using it for MT5, spreadsheet or Python research.
- Send a developer a compact local findings report with line references, after reviewing it for information you want to share.
- Use the clearly labelled built-in synthetic demonstration to understand the findings without supplying a file.
Getting started
Put your file in the terminal's MQL5/Files directory or a subfolder. Attach the indicator, enter the relative filename and select UTF-8 or UTF-16LE. Comma, semicolon and tab separators are detected from the required header. Leave the filename empty for the synthetic demonstration. Reattach to check another file or rerun the check.
Supported profile
Exactly nine columns, with these header names and order:
<DATE>,<TIME>,<OPEN>,<HIGH>,<LOW>,<CLOSE>,<TICKVOL>,<VOL>,<SPREAD>
Dates YYYY.MM.DD (1970–2099), times HH:MM:SS, dot-decimal prices and nonnegative integer volumes/spread. Zero volume is allowed. UTF-8 BOM is supported. Quoted/multiline fields, exponent notation, decimal commas, alternate schemas, headerless files and tick CSV are outside this profile. An unsupported format is not proof that the underlying prices are wrong.
Practical limits
Checks at most 200000 data lines and accepts files up to 64 MiB; default line cap is 100000. Invalid and blank lines count toward the cap. Processing is batched. Use a chart area at least 1020x680 pixels. The optional expected interval is fixed seconds, not a session or holiday calendar. Counts can overlap and must not be added as a count of distinct bad rows. Repeated-minute checks use structurally parsed rows; rejected rows are reported separately.
Read-only by design
The utility leaves your input file unchanged. It does not import, repair, sort or rewrite the data; create or modify custom symbols; or place trades. A no-findings result is limited to the supported checks. It does not certify completeness, timezone, provenance, price accuracy, successful import or profitable backtests. Reports remain in MQL5/Files until you choose to share them. No DLLs, external runtime or network requests are required by the product.
Screenshot captions
1. Genuine MT5 execution of the clearly labelled synthetic demonstration with deliberate findings.
2. Controlled malformed semicolon file: category counts and exact example line references.
3. Read-only QA export of 500 closed broker M1 bars, checked in the compiled product. This is not a claim of testing every broker or GUI export format.
4. Two-row prefix of a three-row file: the panel explicitly reports PARTIAL CHECK.
