Giter Club home page Giter Club logo

capstoneproject18 / stock-market-analysis Goto Github PK

View Code? Open in Web Editor NEW
21.0 7.0 7.0 10.19 MB

Main idea is to get an comprehensive idea about a certain stock with prediction values for next few days; sentiment analysis on the news related to stocks and many more visualizations with built in comparison feature which support a powerful search engine.

Python 35.20% HTML 1.15% JavaScript 63.18% Jupyter Notebook 0.44% CSS 0.03%
stock-market-analysis django visualisation stock-prices sentiment-analysis comparison prediction search-engine

stock-market-analysis's Introduction

Stock-Market-Analysis

Objectives

  • Creating a model to predict next 3 day stock prices using historical data.
  • Sentiment analysis on the news/twitter related to a particular stock.
  • Comparing two or more companies based on their industry.
  • Search engine to make use of information retrieval techniques for searching.
  • Making a web application to produce comprehensive reports and compile the findings.

Work Done

  • Prediction Module
    • The model takes closing price and volume traded of all four currencies for 60 time periods and suggests if we should buy or sell LITECOIN, 3 time periods into the future.
    • Final model which will take in 5 years of stock data and twitter sentiments as input giving future prices/suggestions on buying or selling for the stock.
  • Sentiment Analysis Module
    • First step was to build a model to check for polarity of a single tweet
    • Using the twitter feed of the stock as input
    • The feed is the processed by a classifier (glob) and its polarity is decided
    • The the percentage of positive negative or neutral tweets is plotted in the form of a bar graph.
    • Integrating news
    • Detailed quantitative sentiment analysis (Eg - Innovation for Tech)
  • Visualisation Module
    • Create a portal for the investors where they can find analytics, news, about the company.
    • Display a chart showing the time series plot of close price of the company.
    • Show parameters like Market Cap, Book value, sales growth and other detail specific to company.
    • Display fundamental analysis of the company which includes Balance Sheets, P&L balances, Cash Flows of the company.
    • Show recent news / Announcement made by the company
  • Comparison Module
    • comparison between two or more stocks based on stock price - visualisation done
    • comparison between two or more stocks based on returns and growth rate
    • Comparison based on capital asset pricing model
    • Comparison dependent on visualisation module
  • Search Engine Module
    • The prototype takes query from user and gives it to the IR system.
    • The IR system evaluates the query and output the top results from the database.
    • The key point to note here is that this is not a simple query-result case of RDBMS system but here we have unstructured data and based on the evaluation results of IR system we get the results.
    • Autocomplete using Edit Distance
    • Wildcard queries

Our main project resides in visualization module of the master branch.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes

Prerequisites

What things you need to install the software

git
Python3
pip3
virtualenv [If no anaconda present]
Good internet connection : For retrieving data from APIs

Installing Anaconda will be better as most of the dependencies will be taken care of.

Installing and running

A step by step series of examples that tell you how to get a development env running

Clonning the repository on your machine

git clone https://github.com/CapstoneProject18/Stock-Market-Analysis.git

Building a virtual environment and starting the environment (If no anaconda installed)

virtualenv env

For windows : env\Scripts\activate.bat
For linux   : source env/bin/activate 

Installing requirements

cd visualization
pip3 install -r requirements.txt

Running the project

python3 manage.py runserver

Open browser window and in new tab go to link http://127.0.0.1:8000

  • Ayush Dosajh - Sentiment Module
  • Ganesh Singh - Prediction Module
  • Gulshan Singh - Search Engine Module
  • Mayank Singh - Visualization Module
  • Sangamesh Kotalwar - Comparison Module

Acknowledgement

We are highly indebted to Mr. Manish Hurkat and Mr. Bhavesh Sangwan for their guidance and constant supervision as well as for providing necessary information regarding the project & also for their support in completing the project. We acknowledge that any work that I submit for assessment at NIIT University:

  • Must be all my own work, unless this requirement is specifically excluded when part of a designated group assignment.
  • Must not have been prepared with the assistance of any other person, except those permitted within University guidelines or the specific assessment guidelines for the piece of work.
  • Has not previously been submitted for assessment at this University or elsewhere.

stock-market-analysis's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

stock-market-analysis's Issues

Search module

It is an advanced search functionality to search multiple things about a stock at once.

Prediction module

Make a complex prediction model for time series data - Stock market data forecasting.

Integrating Modules

Till now we have completed building multiple modules that are required according to our user. They have been developed on the individual scale. Now we have to integrate multiple modules into a single one so that we can start unit and integration testing. As well as other parameters can be added.

Visualization module

All the fundamental and technical analysis of the stock market are to be visualized.
Chart types:

  1. Histogram
  2. Line chart
  3. Pie chart

Showing Balance sheet, P/L statements, Cashflow statements.

Making Django environment for comparison V1.0.0 module

Creating a basic Django environment to integrate comparison module.
We need Django framework to complete the task.
The comparison module will have multiple visualizations for multiple stocks based on the query given by the user.

  • Max number of Comaprison parameters = 3

News sentiment analysis

We will do a sentiment analysis on all the news that come with a particular stock. Indirectly visualising how the stock was affected by a particular news.

Integrating comparisonV1.0.0

We have two modules to separately compare:

  1. Stock with itself
  2. Stock with other stocks including a comparison with closing price, market returns, average growth of stock daily.

Next task is to integrate these two modules

Comparison module

Here comparison of different stocks is required based on different factors like pricing, current growth rate and many more

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.