Code Monkey home page Code Monkey logo

bsm03's Introduction

Beating Stock Market

This repo contains an actual version of the master disertation beating_stock_market.

All codes are documented in spanish following numpy style guide.

You can see what to expect from this project reading in this medium post Machine Learning, Fintech & Trading | by: Esteban Sánchez | Medium or its spanish version Machine Learning, Fintech & Trading | ESP | by: Esteban Sánchez | Medium.

Before starting

First of all you will need a free or premium API key from Alpha Vantage that you have to write on line 7 of constants.py

AV_API_KEY

You have to decide how many tickers or over which tickers you want to use the app, you can change that on lines 59 and 60 of constants.py. There is a notebook called get_symbols_list.ipynb where you can find all the ticker list available in the API Finnhub to use as SYMBOLS.

SYMBOLS

Last thing you have to do before to start using it is to unzip the zip files inside ./data/model typing unzip file_2_unzip.zip

ZIP

Run the app

To run the app you have to activate the environment and then type:

python index.py

Views

Home

HOME

Numbers in red is to navegate between pages.

Update Values

UPDATE

This view is to update close price data clicking on the left button or technical indicators clicking on the right button.

This will update tickers in SYMBOLS variable of constants.py

Analysis

AN1 AN2

  1. Choose a ticker to analyse.
  2. Data range to see previous data.
  3. Choose technical indicators to analyse.
  4. Candlestick chart.
  5. Technical indicators chart.
  6. Days to deploy the pct_change.
  7. Pct_change chart.
  8. Box-plot of the distribution of the pct_change

Trading Strategy

TR1 TR2

  1. Choose a model.
  2. Choose the category to predict.
  3. Choose a ticker.
  4. Choose days to predict.
  5. Table with past data description on each category.
  6. Radar-plot to compare the actual ticker with the past values. White line is the actual prediction.
  7. Prediction of the actual ticker for the chosen date.
  8. Cosine similarity for the actual prediction with the past data.
  9. Table with the 50 highest tickers in relation to cosine similarity

bsm03's People

Contributors

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