Skip to content

AI Stock Analysis Dashboard - A Streamlit web app for technical stock analysis with AI-powered recommendations. Supports US/TW markets, multiple technical indicators, and multilingual interface (EN/ZH/JP).

Notifications You must be signed in to change notification settings

ethan-tsai-tsai/AI-Stock-Analysis-Dashboard

Repository files navigation

Disclaimer

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.

Features

  • 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

Installation

Using Poetry (recommended)

  1. Clone the repository:
git clone https://github.com/your-repo/ai-stock-analysis.git
cd ai-stock-analysis
  1. Install Poetry if you don't have it:
pip install poetry
  1. Install dependencies:
poetry install
  1. Run the application:
poetry run streamlit run main.py

Using pip

  1. Clone the repository:
git clone https://github.com/your-repo/ai-stock-analysis.git
cd ai-stock-analysis
  1. Install dependencies:
pip install -r requirements.txt
  1. Run the application:
streamlit run main.py

Configuration

  1. Create a .env file by copying the example:
cp .env-example .env
  1. 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
      

Usage

  1. Select your preferred language from the sidebar
  2. Choose market type (US or Taiwan stocks)
  3. Enter stock tickers (comma separated)
  4. Set date range for analysis
  5. Add technical indicators from the sidebar
  6. Click "Generate AI Analysis" for each stock
  7. View overall summary in the "Overall Summary" tab

Supported Indicators

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)

License

MIT License

中文版README

About

AI Stock Analysis Dashboard - A Streamlit web app for technical stock analysis with AI-powered recommendations. Supports US/TW markets, multiple technical indicators, and multilingual interface (EN/ZH/JP).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages