GithubHelp home page GithubHelp logo

dcastillost / stockalgorithm Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ncohen10/stockalgorithm

0.0 0.0 0.0 157 KB

A profitable mean reversion stock trading algorithm

License: GNU General Public License v3.0

Python 100.00%

stockalgorithm's Introduction

StockAlgorithm

A profitable stock trading algorithm based on a exponential moving average (EMA) crossover strategy.

Download and Install

git clone https://github.com/Ncohen10/StockAlgorithm
py -m pip install -r requirements.txt

Run a Backtest

  • Get an Alpha Vantage API key from here.
  • Run main on the Tests/RunBacktest.py file.
  • Paste your API key in console and hit enter.

Note - Alpha Vantage claims you can make 500 requests per day. I have been able to more than that however.

Dates can be taken as parameters for the RunTest() function in the RunBacktest file. They must be entererd in the form YYYY-MM-DD.

Scan for Stocks to Buy

  • Install Mozilla Firefox and geckodriver
  • Put the geckodriver.exe file in the root directory
  • Run main on CrossoverStrategy/TechnicalAnalysis.py
  • Paste Alpha Vantage API key in console (explained above) and hit enter

stockalgorithm's People

Contributors

dcastillost avatar ncohen10 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.