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>