Skip to content

Sumanmhalsank02/Trends-in-Stock-Market

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Trends in Stock Prices based on known conditions

To get a basic idea about Trends in stock market, I would recommend the following link Trends

GitHub top language GitHub repo size GitHub

Description


In this repository you will find a simple code that creates a column 'Trends' in the Stock Prices of the company TCS based on multiple conditions on the Daily Percentage Change.

Daily Percentage Change: The percentage change between two consecutive day's Closing price.

Instead of using the Mathematical formula to compute the same I have used a function pct_change() provided by Pandas for dataframes Pandas is used to process and analyse the data. To analyse the data, here, I found out the Trend of a stock price

Extra functions in the code


  1. The Maximum, Minimum and Mean price for the last 90 days (Price : Close Price)
  2. Conversion of Dates to datetime64(ns)
  3. Calculation of the monthwise VWAP (Volume Weighted Average Price) of the stock
  4. Use of groupby() function
  5. Calculation of Average and Profit/Loss over the last N days
  6. Average and Median of the Total Traded Quantity
  7. Plot of the Close Price
  8. Stem Plot of the Daily_Percentage_Change and Number_of_Trades(Daily Volumes)
  9. Histogram for the Daily_Percentage_Change distribution
  10. Pie Chart for the Trends of the Stock price

PS: I have kept these Extras in the code for my personal reference

Installation:


  1. Clone repository.
  2. Ensure all dependencies are installed.

Usage


  1. Copy the TCS.csv dataset to the project directory
  2. Copy the path and paste it in the Trends python code
  3. Run the Trends python file

License


This repository is licensed under MIT License

Releases

No releases published

Packages

No packages published