Giter VIP home page Giter VIP logo

time-series-stocks's Introduction

Time Series Analysis on Stocks

Playing with NSE data from year 2015-2016 using Time Series Analysis and Bokeh Visualization.

The following tasks have been completed in the following notebook.

Dataset selection: Use: https://github.com/swapniljariwala/nsepy Source OCLHV data for NSE stocks (INFY,TCS) between 2015-2016. Data level - Daily. Source OCLHV data for NIFTY IT index. Data level - Daily.

Part 1:

Moving Averages Create 4,16,....,52 week moving average(closing price) for each stock and index. This should happen through a function.

Dummy series:

  1. Volume shocks - If volume traded is 10% higher/lower than previous day - make a 0/1 boolean time series for shock, 0/1 dummy-coded time series for direction of shock.
  2. Price shocks - If closing price at T vs T+1 has a difference > 2%, then 0/1 boolean time series for shock, 0/1 dummy-coded time series for direction of shock.
  3. Pricing black swan - If closing price at T vs T+1 has a difference > 2%, then 0/1 boolean time series for shock, 0/1 dummy-coded time series for direction of shock.
  4. Pricing shock without volume shock - based on points a & b - Make a 0/1 dummy time series.

Part 2 (data visualization ): For this section, you can use only bokeh. https://bokeh.pydata.org/en/latest/docs/gallery.html

  1. Create timeseries plot of close prices of stocks/indices with the following features:
  2. Color timeseries in simple blue color.
  3. Mark closing Pricing shock without volume shock to identify volumeless price movement.
  4. Hand craft partial autocorrelation plot for each stock/index on upto all lookbacks on bokeh

time-series-stocks's People

Contributors

r1shbh avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

prasi79

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.