Git Product home page Git Product logo

trade-analysis's Introduction

trade-analysis

A simple python framework to analyze trade execution. trade-analysis has been created with the aim to analyze execution of trades better. One can estimate how much saving a person will make if he/she executes the trades using the benchmark execution algorithms provided in this repo. With trade-analysis more seasoned traders can code up their intuition and see how it performs on different securities on historical data.

Installation

  1. Make sure you have a github account. If not make one here
  2. Fork the repo.
  3. Clone it into you repository:
    git clone https://github.com/USERNAME/trade-analysis
  4. Make sure pip is installed. Check if is installed by pip -V on linux systems. If not do the following:
    sudo apt-get update
    sudo apt-get install python-pip
  5. We love using virtualenv. It enables to work on different python projects with different versions of libraries. It is not mandatory to install. Install it from here
  6. Install the project requirements by executing pip install -r requirements.txt
  7. Add to PYTHONPATH trade-analysis directory.

Contribution

We want you to contribute and make this project richer. After you have successfully installed the requirements and are ready to code, glance through the contribution guidelines to get the formatting and code structure related things which this project adheres to.

License

See the license file.

Examples

If you want to do the analysis of a trade of selling 12 shares of etf VWO at time 5:35:00 PM UTC on 25th March 2015 using our mean reversion execution algorithm, execute the following command.
python execution/simulate_execution.py 20150325 VWO S 12 MeanRev 173500

We have provided sample minute bars for different securities generated from market data of 25th March 2015. Hence for running the backtesting one can give any of the shortcodes which are present in datafiles directory. MeanRev, Momentum and Direct are the execution algorithms provided.

trade-analysis's People

Contributors

ashesh-0 avatar hardikp avatar

Stargazers

Jake Ryan avatar

Watchers

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