MML Knowledge Bridge – Frequent Points and Resolves Overview
This doc addresses the commonest points customers encounter when organising and utilizing MML Knowledge Bridge, together with step-by-step options
1. MML Knowledge Bridge: Struct dimension mismatch for ‘filename.csv’ Your struct is 404 bytes, however knowledge file incorporates 528 bytes This implies your struct is lacking 1 area(s) or has incorrect area varieties
Root Trigger:
Answer:
- All the time use precisely ONE delimiter btween fields
- Do not use a number of tabs or commas for padding, white spacing is OK!
- Take a look at with small information first
- Examine your knowledge file format – guarantee single delimiters solely
- Confirm your struct definition matches the detected schema
- Regenerate schema by deleting corresponding binary file
- Examine config file for the right area depend and kinds
2. Time zone Conversion Issues
Signs:
- Knowledge seems at fallacious occasions in backtester
- Timezone offsets not dealt with accurately
Root Trigger:
- MML Knowledge Bridge makes use of UTC (GMT) time internally. All timestamps in binary information are saved in UTC and time comparisons towards tester time occur in UTC mechanically
Answer:
- Use correct ISO 8601 format with timezone: 2025-01-01T08:30:00-05:00
- Keep away from native time codecs with out timezone information
- Take a look at with identified timezone knowledge first
- Embrace timezone offset in all DateTime values
3. MML Knowledge Bridge: Can’t open binary file (Error: 5002)
Signs:
- Program quits unexpectedly
- EA fails to initialize
- Binary file entry errors throughout backtesting or optimization
Root Trigger:
- Binary file would not exist (CSV hasn’t been transformed to binary but)
- File is locked by one other course of or utility
- File path is wrong or inaccessible
- Inadequate file permissions
Answer:
- Guarantee CSV information are processed first – run EA as soon as to generate binary information earlier than backtesting
- Shut every other functions that may be accessing the information (Excel, textual content editors, and so on.)
- Confirm binary information exist in CommonFiles[EA_Name] listing
- Restart MetaTrader 5 if information seem locked
- If binary file is lacking, delete config file and let MML Knowledge Bridge regenerate it
4. MML Knowledge Bridge: Binary file ‘%s’ seems corrupted or empty. Document dimension is invalid (%d). Please regenerate binary by updating CSV file or deleting the binary file
Root Trigger:
- Binary file header incorporates invalid document dimension. File is corrupted, empty, or was created incorrectly
Answer:
- Delete the corrupted binary file from CommonFiles[EA_Name] listing
- Replace the CSV file (make a small change and save) to set off regeneration
- Or delete the binary file and restart EA – it is going to regenerate mechanically
- Confirm CSV file has legitimate knowledge rows earlier than regeneration
5. Knowledge Kind Detection Points
Signs:
- Numbers handled as textual content
- Dates not acknowledged
- Incorrect knowledge varieties in schema
Root Trigger:
- If a cell incorporates characters apart from INTS or DOUBLES, the entire column shall be handled as CHARS
Answer:
- Examine for blended knowledge varieties in similar column
- Delete binaries and rerun to regenerate a brand new schema
- Guarantee all values in a numeric column are numbers
- Take away any textual content, symbols, or formatting from numeric columns
6. DateTime Column Detection Points
Signs:
- Anticipated datetime column reveals up as Char[] in schema
- Time-based knowledge comparability fails
- Program will not run or produces incorrect outcomes
- Knowledge seems at fallacious occasions in again tester
Root Trigger:
- DateTime column incorporates non-ISO 8601 format knowledge
- Blended knowledge varieties in datetime column
- Lacking timezone data in datetime values
- Invalid datetime format inflicting schema to categorise as textual content
Answer:
- Use correct ISO 8601 format – YYYY-MM-DDThh:mm:ssZ or YYYY-MM-DDThh:mm:ss±hh:mm. Instance: 2024-07-30T16:00:00Z
- Guarantee timezone data – all datetime values will need to have timezone
- Regenerate schema by deleting binary
- Clear datetime knowledge – take away any non-standard codecs
7. MML Knowledge Bridge: Can’t open configuration file
Error Messages:
- MML Knowledge Bridge: Can’t open configuration file ‘%s’ (Error: %d)
- MML Knowledge Bridge: Anticipated location: Frequent Filespercents
Root Trigger:
- Configuration file is lacking, has incorrect path, or lacks learn permissions
Answer:
- Confirm config file exists in Frequent Recordsdata listing
- Examine file path matches EA title folder construction
- Confirm file isn’t locked by one other course of
- Examine file encoding is ANSI/textual content
- Navigate to the Frequent Recordsdata listing proven within the error message
8. MML Knowledge Bridge: Configuration file lacking [Settings] header. Please test your config file format
Root Trigger:
- Config file format is invalid or corrupted. The primary line should be [Settings]
Answer:
- Guarantee first line is strictly [Settings] (case-insensitive)
- Examine for further areas or characters
- Confirm file encoding is ANSI/textual content
- Guarantee correct line endings
9. MML Knowledge Bridge: Created new config file. Please add enter information and rerun
Root Trigger:
- Config file was simply created and desires file entries
Answer:
- Open config file in textual content editor
- Add file entries: File1 = your_data.csv
- Save config file
- Restart EA
10. MML Knowledge Bridge: File has invalid extension. Solely .csv and .tsv information are supported
Root Trigger:
- File listed in config has an unsupported file extension
Answer:
- Guarantee file extension is strictly .csv or .tsv (case-insensitive)
- Rename file if it has a unique extension
- Replace config file with right filename together with extension
11. MML Knowledge Bridge: The next file(s) listed in configuration weren’t discovered within the Frequent Recordsdata listing
Root Trigger:
- File is most definitely misspelled or not within the right listing
Answer:
- Examine file spelling and ensure to incorporate file extension (.csv/.tsv) within the filename (spelling isn’t case delicate)
- Use frequent information listing: C:Customers[YourUsername]AppDataRoamingMetaQuotesTerminalCommonFiles
- Recordsdata ought to be positioned immediately in CommonFiles (not in subfolders)
- Confirm file exists earlier than including to config
12. MML Knowledge Bridge: No legitimate information present in configuration
Root Trigger:
- Config file has no legitimate file entries or all entries are invalid
Answer:
- Add file entries in format: File1 = your_data.csv
- Guarantee information exist and are readable
- Confirm file extensions are .csv or .tsv
- Examine information are in Frequent Recordsdata listing
13. MML Knowledge Bridge: File ‘filename.csv’ not present in configuration
Error Message:
- MML Knowledge Bridge: File ‘%s’ not present in configuration
- MML Knowledge Bridge: Please guarantee file(s) are within the Frequent Recordsdata listing and listed in your config file
- MML Knowledge Bridge: To repair: Add ‘FileN = filename.csv’ to your config file and restart EA
- MML Knowledge Bridge: EA shall be eliminated because of configuration error
Root Trigger:
- Code requests a file not listed within the configuration. This happens when your EA code calls getRecordBytes_internal() with a filename that is not within the config file
Answer:
- Examine file location – should be in Frequent Recordsdata listing
- Confirm filename in config file matches precisely (case-insensitive)
- Add file to config utilizing format: FileN = filename.csv
- Restart EA after updating config
14. MML Knowledge Bridge: Warning – CSV file ‘%s’ incorporates no knowledge rows. File will need to have at the least one knowledge row after the header
Root Trigger:
- CSV file has a header row however no knowledge rows. Schema can’t be generated with out knowledge
Answer:
- Guarantee CSV file has at the least one knowledge row after the header
- Examine that knowledge rows usually are not empty or whitespace-only
- Confirm file was saved accurately
- Add pattern knowledge rows to check the file format
15. MML Knowledge Bridge: ISO-8601 format error in ‘%s’ at row %d: ‘%s’. Anticipated format: YYYY-MM-DDThh:mm:ssZ or YYYY-MM-DDThh:mm:ss±hh:mm
Root Trigger:
- Schema detection failed. File has no header row, no knowledge rows, invalid format, or inconsistent column counts
Answer:
- Guarantee file has a legitimate header row with column names
- Confirm file has at the least one knowledge row
- Examine that every one rows have constant column counts
- Confirm file encoding is right (ANSI/textual content)
- Guarantee correct delimiter utilization (single comma for CSV, single tab for TSV)
16. MML Knowledge Bridge: ISO-8601 format error in ‘%s’ at row %d: ‘%s’. Anticipated format: YYYY-MM-DDThh:mm:ssZ or YYYY-MM-DDThh:mm:ss±hh:mm
Root Trigger:
- DateTime worth would not match strict ISO-8601 format throughout CSV export. The worth proven did not parse
Answer:
- Use precise format: YYYY-MM-DDThh:mm:ssZ (UTC) or YYYY-MM-DDThh:mm:ss±hh:mm (with offset)
- Guarantee ‘T’ separator between date and time (uppercase or lowercase each accepted)
- Embrace timezone: ‘Z’ for UTC or ±hh:mm for offset (e.g., -05:00 or +02:00)
- Confirm all digits are current (no lacking zeros)
- Instance: 2024-07-30T16:00:00Z or 2024-07-30T16:00:00-05:00
17. MML Knowledge Bridge: Warning – Row %d in ‘%s’ has %d columns, anticipated %d. Lacking columns shall be padded with empty values
Root Trigger:
- CSV row has completely different column depend than detected schema throughout export. Lacking columns shall be full of empty/default values
Answer:
- Guarantee all CSV rows have the identical variety of columns because the header
- Examine for lacking delimiters in knowledge rows
- Confirm CSV file format is constant all through
- Add lacking columns or take away further columns to match header
18. MML Knowledge Bridge: Schema Mismatch – Column. File ‘%s’: Saved schema has %d cols, final line has %d cols
Root Trigger:
- Knowledge appended to a file doesn’t match the schema generated from again exams. New CSV knowledge row has completely different column depend than saved schema.
Answer:
- Preserve constant format as generated schema
- Guarantee all CSV rows have similar variety of columns as the unique schema
- Examine for lacking or further delimiters within the new knowledge row
- Rely columns within the new row and match to schema
19. MML Knowledge Bridge: Schema Mismatch – Column. File ‘%s’: Saved schema parses to %d cols, row has %d cols
Root Trigger:
- Schema metadata corruption or mismatch. The saved schema definition would not match the precise knowledge row.
Answer:
- Delete binary file and config file
- Restart EA to regenerate schema from CSV
- Confirm CSV file has constant column depend
- Examine for schema corruption in config file
20. MML Knowledge Bridge: Schema Mismatch – Datatype. File ‘%s’, Column %d expects DateTime; acquired ‘%s’
Root Trigger:
- Knowledge worth in DateTime column would not match ISO-8601 format. This happens when appending new knowledge in reside mode
Answer:
- Use correct ISO 8601 format with timezone: 2025-01-01T08:30:00-05:00
- Guarantee format matches: YYYY-MM-DDThh:mm:ssZ or YYYY-MM-DDThh:mm:ss±hh:mm
- Embrace timezone data (required)
- Instance: 2024-07-30T16:00:00Z or 2024-07-30T16:00:00-05:00
21. MML Knowledge Bridge: Schema Mismatch – Datatype. File ‘%s’, Column %d expects Int; acquired ‘%s’
Root Trigger:
- Knowledge worth in Integer column incorporates non-numeric characters. This happens when appending new knowledge in reside mode
Answer:
- Guarantee worth is a legitimate integer (no decimals, no letters)
- Take away any whitespace or formatting characters
- Examine for hidden characters or encoding points
- Instance: 123 is legitimate, 123.0 or 123abc are invalid
22. MML Knowledge Bridge: Schema Mismatch – Datatype. File ‘%s’, Column %d expects Double; acquired ‘%s’
Root Trigger:
- Knowledge worth in Double column can’t be parsed as a quantity. This happens when appending new knowledge in reside mode
Answer:
- Guarantee worth is numeric (integer or decimal)
- Use interval (.) as decimal separator
- Take away forex symbols or formatting
- Instance: 123.45 is legitimate, $123.45 or 123,45 are invalid
23. MML Knowledge Bridge: Examine config file for generated schemas and add to dataStructs.mqh to ingest knowledge
Root Trigger:
- Schema has been generated and must be added to your code
Answer:
- Open config file and find [Schema] part
- Copy the DataType = … line for every file
- Add corresponding struct definition to dataStructs.mqh
- Guarantee struct area order matches schema order
- Restart EA
24. MML Knowledge Bridge: Change in knowledge detected for ‘%s’, updating binary and verifying schema
Root Trigger:
- CSV file was modified, and binary is being regenerated mechanically
Answer:
- No motion wanted – that is computerized
- Look ahead to regeneration to finish
- Confirm schema in config file if wanted
25. MML Knowledge Bridge: No current metadata, initialized defaults
Root Trigger:
- First run – no metadata exists but (regular for brand spanking new setup)
Answer:
- That is informational, not an error
- EA will generate metadata and binaries on first run
- Guarantee CSV information are correctly configured
- Look ahead to initialization to finish
26. MML Knowledge Bridge: Added %d file(s) to config
Root Trigger:
- New information have been added to the configuration.
Answer:
- No motion wanted – that is informational
- Recordsdata shall be processed mechanically
27. MML Knowledge Bridge: Consumer eliminated %d file(s) from config, cleansing up binary
Root Trigger:
- Recordsdata have been faraway from config and related binary information are being cleaned up.
Answer:
- No motion wanted – cleanup is computerized
For all different points go to the person arrange guide
MML Knowledge Bridge Consumer Set Up Guide – Buying and selling Techniques – Draft – Merchants’ Blogs
For extra assist, please contact the developer @rylanw337@gmail.com