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.
- 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.
- Python 3.7 or higher
- Virtual environment (recommended)
- Required Python packages (listed in
requirements.txt
)
-
Clone the Repository
git clone https://github.com/yourusername/StockAnalysis.git cd StockAnalysis
-
Set Up Virtual Environment
python -m venv .venv source .venv/bin/activate # On Windows use `.venv\Scripts\activate`
-
Install Dependencies
pip install -r requirements.txt
- Environment Variables: Set the following environment variables as needed:
ENV_PRODUCTION
: Set to1
for production mode,0
for development.ENV_SHUTDOWN
: Set to1
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.
-
Run Intraday Analysis
python intraday/intraday_monitor.py
-
Run Positional Analysis
python intraday/intraday_monitor.py
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.
Contributions are welcome! Please fork the repository and submit a pull request for any enhancements or bug fixes.
This project is licensed under the MIT License. See the LICENSE file for details.
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.