To get a basic idea about Trends in stock market, I would recommend the following link Trends
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
- The Maximum, Minimum and Mean price for the last 90 days (Price : Close Price)
- Conversion of Dates to datetime64(ns)
- Calculation of the monthwise VWAP (Volume Weighted Average Price) of the stock
- Use of groupby() function
- Calculation of Average and Profit/Loss over the last N days
- Average and Median of the Total Traded Quantity
- Plot of the Close Price
- Stem Plot of the Daily_Percentage_Change and Number_of_Trades(Daily Volumes)
- Histogram for the Daily_Percentage_Change distribution
- Pie Chart for the Trends of the Stock price
PS: I have kept these Extras in the code for my personal reference
- Clone repository.
- Ensure all dependencies are installed.
- Copy the TCS.csv dataset to the project directory
- Copy the path and paste it in the Trends python code
- Run the Trends python file
This repository is licensed under MIT License