command line tool to convert MetaStock to csv
atem converts metastock financial data to CSV text, fast and reliable.
Download source and binary releases:
https://bitbucket.org/rudimeier/atem/downloads
RPM Packages for Linux distros (Fedora, CentOS, RHEL, Fedora, openSUSE, SLE):
http://software.opensuse.org/download.html?project=home:rudi_m&package=atem
The project homepage, bugtracker, git repo:
https://github.com/rudimeier/atem
Building from source requires a C++ compiler, like gcc/g++, clang/clang++
or icc/icpc. On Windows you could use cygwin or mingw.
Build from tar tarball works as usually:
./configure
make
make install
When building from git checkout you also need autoconf and gengetopt and don’t
forget to type “autoreconf -vfi” first.
By default atem reads metastock data from the current or given directory and
writes complete time series to stdout. Comma separated like this
$ atem -F, /path/to/msdata
ANY.HU,2013-11-18,09:05:00,626.00000,633.00000,626.00000,633.00000,5036,0
ANY.HU,2013-11-18,09:10:00,633.00000,634.00000,633.00000,633.00000,1479,0
ANY.HU,2013-11-18,09:25:00,632.00000,632.00000,632.00000,632.00000,120,0
FHB.HU,2013-11-18,09:05:00,375.00000,375.00000,375.00000,375.00000,1500,0
FHB.HU,2013-11-18,09:20:00,375.00000,375.00000,375.00000,375.00000,300,0
FHB.HU,2013-11-18,09:30:00,379.00000,379.00000,379.00000,379.00000,4407,0
See “atem --help” for more options, how to format the output and select the right
colums, etc. You’ll also find some example data in the test directory.
If you have questions, bug reports, patches etc., contact
Ruediger Meier [email protected] (in English or German).