This program is solely for demonstrating the application of Large Language Models (LLM) in technical indicator analysis and does not constitute any investment advice. Please note that LLMs still have high error rates in financial analysis. All analysis results are for reference only, and investment decisions should be made with careful consideration.
- Multi-market Support: Analyze both US and Taiwan stocks
- Technical Indicators:
- Trend Indicators: SMA, EMA, Bollinger Bands, VWAP
- Momentum Indicators: RSI, MACD, ROC, CCI
- AI Analysis: Get LLM-powered stock recommendations with detailed justifications
- Multi-language UI: English, Traditional Chinese, Simplified Chinese, Japanese
- Interactive Charts: Plotly-powered interactive visualizations
- Clone the repository:
git clone https://github.com/your-repo/ai-stock-analysis.git
cd ai-stock-analysis
- Install Poetry if you don't have it:
pip install poetry
- Install dependencies:
poetry install
- Run the application:
poetry run streamlit run main.py
- Clone the repository:
git clone https://github.com/your-repo/ai-stock-analysis.git
cd ai-stock-analysis
- Install dependencies:
pip install -r requirements.txt
- Run the application:
streamlit run main.py
- Create a
.env
file by copying the example:
cp .env-example .env
- Get your OpenRouter API key:
- Go to OpenRouter website
- Sign up and log in to your account
- Navigate to "API Keys" section
- Create a new API key
- Copy the key and paste it in your
.env
file:OPENROUTER_API_KEY=your_api_key_here
- Select your preferred language from the sidebar
- Choose market type (US or Taiwan stocks)
- Enter stock tickers (comma separated)
- Set date range for analysis
- Add technical indicators from the sidebar
- Click "Generate AI Analysis" for each stock
- View overall summary in the "Overall Summary" tab
Indicator | Description | Common Parameters |
---|---|---|
SMA | Simple Moving Average | Period (default: 20) |
EMA | Exponential Moving Average | Period (default: 20) |
Bollinger Bands | Volatility indicator | Period (default: 20) |
VWAP | Volume Weighted Average Price | None |
RSI | Relative Strength Index | Period (default: 14) |
MACD | Moving Average Convergence Divergence | Fast (12), Slow (26), Signal (9) |
ROC | Rate of Change | Period (default: 12) |
CCI | Commodity Channel Index | Period (default: 20) |
MIT License