Skip to content

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.

License

Notifications You must be signed in to change notification settings

skylib11/Share_Market_Analysis

Repository files navigation

Share-Market-Analysis

Share Market Data Processing & Signal Identifier

Overview

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.

NOTE

This project is still in development. There might be some issues. I hope to give you a proper version of it soon.

Features

  • 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.

Files in the Repository

1. share_data_preprocessing.py

  • 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.

2. share_market_trend_indicator.py

  • 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.

3. company_list.csv

  • 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
    

Requirements

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

How to Use

  1. Prepare the share market symbol list:

    • Edit company_list.csv and include the Yahoo Finance symbols of the companies you want to analyze.
  2. Run Data Preprocessing:

    python3 share_data_preprocessing.py
    • This will fetch share market data and save processed CSV files in a processed_data folder.
  3. Run Trend Analysis:

    python3 share_market_trend_indicator.py
    • This will analyze the processed data and generate buy/sell signals in a signals folder.

Output

  • 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/.

Notes

  • 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.

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages