AI-powered Fear & Greed Index Analysis System for Stock Investment
InvestorsMind is an AI system that calculates and analyzes the Fear & Greed Index for stocks. It combines quantitative analysis with investment sentiment analysis to provide comprehensive market psychology indicators.
- Quantitative Analysis: Market momentum, stock price strength, bond-stock returns, option ratios, CNN Fear & Greed Index
- Investment Sentiment Analysis: Sentiment analysis through news articles and Reddit posts
- Composite Score: Weighted average of quantitative and sentiment analysis
- Korean language interface
- Real-time index calculation
- Detailed analysis explanations
- Weight adjustment functionality
- Detailed analysis reports in JSON format
- Historical data tracking
- Data storage for AI analysis
# Create virtual environment
python -m venv .venv
source .venv/bin/activate # macOS/Linux
# .venv\Scripts\activate # Windows
# Install dependencies
pip install -r requirements.txtCreate a .env file and add:
CLOVA_API_KEY=your_clova_api_key
GOOGLE_SEARCH_KEY=your_google_search_key
GOOGLE_SEARCH_ENGINE=your_search_engine_id
# Run AI agent
python ai_agent.py
# Run individual analysis
python numerical_data_analysis.py
python text_sentiment_analysis.pycalculate AAPL # Calculate Fear & Greed Index for AAPL
analyze AAPL What does the momentum score mean? # Analyze specific questions
current_weights # Check current weights
alter_weights Please increase CNN weight # Adjust weights
quit # Exit📈 AAPL Fear & Greed Index: 75/100
📊 Quantitative Analysis Score: 72/100
📰 Investment Sentiment Score: 78/100
🎯 Interpretation: Extreme Greed - Market may be overvalued
InvestorsMind/
├── ai_agent.py # AI Agent (main interface)
├── numerical_data_analysis.py # Quantitative analysis module
├── text_sentiment_analysis.py # Investment sentiment analysis module
├── evaluations/ # Analysis report repository
├── assets/ # Collected data repository
└── README.md # Project documentation
- Python 3.12
- yfinance: Stock data collection
- Selenium: Web scraping
- CLOVA Studio: LLM analysis
- Pandas/NumPy: Data processing
- BeautifulSoup: HTML parsing
- Market Momentum (20%): Price momentum relative to moving averages
- Stock Price Strength (20%): Position relative to 52-week high/low
- Bond-Stock Returns (20%): Corporate bond vs stock return comparison
- Option Ratio (20%): Put/Call volume ratio
- CNN Fear & Greed (20%): CNN market psychology index
- News Articles: Analysis of related news from the past 5 days
- Reddit Posts: Investor community sentiment analysis
- LLM Analysis: AI-powered sentiment score calculation
- Real-time Calculation: Instant Fear & Greed Index calculation
- Detailed Explanations: Analysis of meaning and impact of each component
- Weight Adjustment: Analysis weight adjustment based on user feedback
- Historical Data: Reference and comparison with previous analysis results
MIT License
Issue reports and pull requests are welcome.
InvestorsMind - AI-powered market psychology analysis for better investment decisions