Skip to content

Ranjith1997-coder/StockAnalysis

Repository files navigation

StockAnalysis

Project Overview

StockAnalysis is a comprehensive tool designed for analyzing stock market data, focusing on both intraday and positional trading strategies. The project leverages various data analysis techniques to identify trends, generate insights, and provide actionable recommendations for traders and investors.

Features

  • Intraday and Positional Analysis: Supports both intraday and end-of-day (EOD) analysis to cater to different trading strategies.
  • Trend Detection: Utilizes technical indicators and patterns to detect bullish, bearish, and neutral trends.
  • Top Gainers and Losers: Identifies the top 5 gainers and losers based on percentage change in stock prices.
  • Automated Notifications: Sends alerts and reports via Telegram for significant market movements and analysis results.
  • Data Fetching: Integrates with Yahoo Finance and NSE to fetch real-time and historical stock data.
  • Modular Design: Organized into distinct modules for easy maintenance and extension.

Getting Started

Prerequisites

  • Python 3.7 or higher
  • Virtual environment (recommended)
  • Required Python packages (listed in requirements.txt)

Installation

  1. Clone the Repository

    git clone https://github.com/yourusername/StockAnalysis.git
    cd StockAnalysis
  2. Set Up Virtual Environment

    python -m venv .venv
    source .venv/bin/activate  # On Windows use `.venv\Scripts\activate`
  3. Install Dependencies

    pip install -r requirements.txt

Configuration

  • Environment Variables: Set the following environment variables as needed:
    • ENV_PRODUCTION: Set to 1 for production mode, 0 for development.
    • ENV_SHUTDOWN: Set to 1 to enable system shutdown after analysis, 0 otherwise.
    • TELEGRAM_TOKEN: Your Telegram bot token for sending notifications.
    • TELEGRAM_CHAT_ID: The chat ID where notifications will be sent.

Usage

  • Run Intraday Analysis

    python intraday/intraday_monitor.py
  • Run Positional Analysis

    python intraday/intraday_monitor.py

Example

The project includes example scripts and configurations to help you get started quickly. Modify the parameters in intraday_monitor.py to suit your analysis needs.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request for any enhancements or bug fixes.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Contact

For questions or support, please contact yourname@domain.com.


### Explanation:
- **Project Overview**: Provides a brief introduction to the project and its purpose.
- **Features**: Lists the key features of the project.
- **Getting Started**: Includes prerequisites, installation steps, and configuration details.
- **Usage**: Describes how to run the analysis scripts.
- **Example**: Mentions the availability of example scripts.
- **Contributing**: Encourages contributions from the community.
- **License**: States the licensing information.
- **Contact**: Provides contact information for support or inquiries.

Feel free to customize the content to better fit your project's specifics and your personal or organizational preferences.

About

options

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published