Python utility that reads Metastock data files and save the quotations in text files. Full article is available here: http://themech.net/2008/08/reading-metastock-files/
This script converts data from metastock format to CSV.
Input directory must contain metastock data EMASTER/XMASTER.
Listing the symbols in Metastock data:
python ms2csv.py --list
Extracting all quotes:
python ms2csv.py --all -d <path-to-ms-dir> -o <path-to-csv-dir>
More help:
python ms2csv.py --help
This script upload all CSV from input directory to MySQL server. Input directory should contains substructure like the following diagram
๐ csv-dir
โโโ ๐ market1-dir
โ โโโ ๐ symbol-1.TXT
โ โโโ ๐ symbol-2.TXT
โ ...
โ โโโ ๐ symbol-n.TXT
...
- pymysql
Listing the symbols in Metastock data:
python rdsupload.py -d <path-to-csv-dir>