Git Product home page Git Product logo

metastock-data-convert's Introduction

Author: mech

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/

ms2csv.py

This script converts data from metastock format to CSV.

Input directory must contain metastock data EMASTER/XMASTER.

Usage

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

rdsupload.py

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
...

Require Modules

  • pymysql

Usage

Listing the symbols in Metastock data:

python rdsupload.py -d <path-to-csv-dir>

metastock-data-convert's People

Contributors

ipoppo avatar parin-kaewsim avatar themech avatar kojiro540 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.