There should be two type of formats to print for read_mt_formats.py script, one for the header, another for data it-self.
Then the convert_mt_to_csv.py should print only data into CSV format, in the same format as it is for the existing HST or FXT format (the one which is most suitable for it).
For unknown fields, you can add the placeholders (e.g. unknown1, unknown2).
Extend
read_mt_formats.py
andconvert_mt_to_csv.py
scripts (both) to read HCC files containing historical data (similar as it does for other formats).The structure of this format is explained here (note: this info could be a bit out of date).
Then after running the script (
read_mt_formats.py
) I expect that all values are printed into the screen into meaningful formats, for example:There should be two type of formats to print for
read_mt_formats.py
script, one for the header, another for data it-self.Then the
convert_mt_to_csv.py
should print only data into CSV format, in the same format as it is for the existing HST or FXT format (the one which is most suitable for it).For unknown fields, you can add the placeholders (e.g. unknown1, unknown2).
See also: CSVtoHCC repo.
Please find the sample files in the attachment.
EURUSD.zip
Ref: codemill$160