This project is designed for analyzing the Indian Share Market by processing share market data and identifying key trading signals. The scripts use share market data retrieved via Yahoo Finance and identify signals based on RSI (Relative Strength Index) and SMA (Simple Moving Average) indicators.
This project is still in development. There might be some issues. I hope to give you a proper version of it soon.
- Yahoo Finance Symbols: Requires a list of NSE/BSE company symbols in
company_list.csv
. - Downloads historical data: Downloads historical price data from yahoo finance.
- Data Preprocessing: Cleans and formats raw share market data for analysis.
- Signal Detection: Displays and saves buy/sell signals for analysis.
- Reads stock symbols from
company_list.csv
. - Fetches historical data using Yahoo Finance.
- Preprocesses data (handles missing values, formats dates, calculates SMA & RSI).
- Saves processed data as CSV files.
- Reads processed stock data.
- Analyzes trends based on RSI_14 and SMA indicators.
- Detects Buy/Sell signals and logs them.
- Saves trade signals to CSV for further review.
- Contains a list of Yahoo Finance share market company symbols for NSE/BSE.
- Example format:
Symbol,Company RELIANCE.NS, Reliance Industries TCS.NS, Tata Consultancy Services HDFCBANK.NS, HDFC Bank
Ensure you have the following installed:
- Python 3.10 ( The script might work with other or previous versions. It is upto you to try.)
Third-Party Modules (May Need Installation) tqdm → For the progress bar tkinter (Only if not pre-installed) → For GUI-based folder selection
-
Prepare the share market symbol list:
- Edit
company_list.csv
and include the Yahoo Finance symbols of the companies you want to analyze.
- Edit
-
Run Data Preprocessing:
python3 share_data_preprocessing.py
- This will fetch share market data and save processed CSV files in a
processed_data
folder.
- This will fetch share market data and save processed CSV files in a
-
Run Trend Analysis:
python3 share_market_trend_indicator.py
- This will analyze the processed data and generate buy/sell signals in a
signals
folder.
- This will analyze the processed data and generate buy/sell signals in a
- Raw Data: Stored in
raw_data/
- Processed Data: Stored in
processed_data/
- Trade Signals: Saved in
signals/
with timestamps. - Logs: Buy/sell signal detection logs are stored in
logs/
.
- The project focuses on the Indian Share Market (NSE/BSE stocks).
- Make sure share market company symbols in`company_list.csv are correct for Yahoo Finance.