14 Value Investors ร 12 Technical Analysts ร 11 Quantitative Signal Masters
Three-stage analysis with real-time market data โ Roundtable debate minutes + Technical charts + Investment recommendations
Quick Start ยท Architecture ยท 37 Masters ยท ไธญๆๆๆกฃ
Imagine Warren Buffett, George Soros, and 35 other legendary investors sitting around a table, debating whether you should buy a stock โ backed by real market data and powered by LLM reasoning.
| Feature | Description |
|---|---|
| ๐๏ธ Three-Stage Architecture | Fundamental debate โ Technical trend analysis โ Quantitative signal voting |
| โ๏ธ Real Adversarial Debate | Bull vs. Bear champions engage in multi-round LLM-driven debate โ not just summaries |
| Flags when fundamentals and technicals disagree: "You are trading against Graham" | |
| ๐ Signal Matrix Voting | 11 quantitative masters independently generate signals โ weighted vote โ net direction |
| ๐ One-Click Visualization | Candlestick chart with MA/Bollinger/RSI/MACD overlays + support/resistance annotations |
| ๐ Multi-Market Support | US stocks, Chinese A-shares, Hong Kong stocks โ via yfinance + akshare |
| ๐ Any LLM Backend | Works with GPT-4o, DeepSeek, Qwen, or any OpenAI-compatible API |
flowchart TB
subgraph INPUT["๐ฅ Input"]
USER["User: Stock Symbol + Market"]
end
subgraph DATA["โ๏ธ Data Engine"]
direction LR
OHLCV["OHLCV\nyfinance + akshare"]
FUND["Fundamentals\nPE/PB/ROE/Revenue"]
TECH["20+ Indicators\nMA/MACD/RSI/KDJ/BB/..."]
end
subgraph STAGE1["๐๏ธ Stage 1: Fundamental Debate (Weight: 60%)"]
S1M["14 Investment Masters\nBuffett ยท Munger ยท Graham ยท Lynch\nMarks ยท Wood ยท Soros ยท Dalio\nDuan ยท Zhang ยท Li ยท Feng ยท Qiu ยท Lin"]
S1P["7-Step Process\nIndependent โ Camps โ 2-Round Debate โ Vote"]
end
subgraph STAGE2["๐ Stage 2: Technical Analysis (Weight: 20%)"]
S2M["12 Technical Masters\nDow ยท Wyckoff ยท Elliott ยท Nison\nWilder ยท Appel ยท Granville ยท DeMark\nLane ยท Williams ยท Elder ยท ARBR"]
S2P["Parallel Analysis\nTrend / Pattern / Volume-Price"]
end
subgraph STAGE3["โก Stage 3: Signal Voting (Weight: 20%)"]
S3M["11 Signal Masters\nMACD ยท Bollinger ยท MA+OBV\nIchimoku ยท RSI/ADX ยท KDJ ยท CCI\nW%R ยท CMF ยท Triple Screen ยท Chaos"]
S3P["Signal Matrix โ Conflict Debate โ Weighted Vote"]
end
subgraph OUTPUT["๐ Output"]
MD["๐ Markdown Report"]
HTML["๐ HTML Report"]
CHART["๐ Technical Chart"]
end
USER --> DATA
DATA --> STAGE1
STAGE1 -->|"consensus + dissent"| STAGE2
STAGE2 -->|"trend confirmation"| STAGE3
STAGE3 --> CROSS["โ ๏ธ Cross-Stage\nConflict Detection"]
CROSS --> AGG["๐ฏ 60/20/20\nWeighted Aggregation"]
AGG --> OUTPUT
style INPUT fill:#1e293b,stroke:#3b82f6,color:#e2e8f0
style DATA fill:#1e293b,stroke:#f97316,color:#e2e8f0
style STAGE1 fill:#1e293b,stroke:#22c55e,color:#e2e8f0
style STAGE2 fill:#1e293b,stroke:#eab308,color:#e2e8f0
style STAGE3 fill:#1e293b,stroke:#ef4444,color:#e2e8f0
style OUTPUT fill:#1e293b,stroke:#8b5cf6,color:#e2e8f0
# 1. Clone
git clone https://github.com/LucasYanzy/investment-masters-roundtable.git
cd investment-masters-roundtable
# 2. Install dependencies
pip install -r requirements.txt
# 3. Configure API key
cp .env.example .env
# Edit .env โ set LLM_API_KEY (supports OpenAI / DeepSeek / Qwen)
# 4. Analyze any stock
python run.py --symbol AAPL --market US # Apple (US)
python run.py --symbol 000001 --market CN # Ping An Bank (China A-share)
python run.py --symbol 0700.HK --market HK # Tencent (Hong Kong)
# 5. Launch Web UI
python run.py --webEach analysis produces:
๐ {symbol}_report.mdโ Full roundtable debate minutes๐ {symbol}_report.htmlโ Dark-themed interactive HTML report๐ {symbol}_chart.pngโ Candlestick + indicators chart
๐๏ธ Stage 1: 14 Investment Masters (Qualitative Debate)
| # | Master | School | Core Framework |
|---|---|---|---|
| 1 | Warren Buffett | Value Investing | Moat, margin of safety, long-term holding |
| 2 | Charlie Munger | Value Investing | Mental models, inversion thinking |
| 3 | Benjamin Graham | Value Investing | Intrinsic value, Mr. Market, safety margin |
| 4 | Peter Lynch | Growth Investing | PEG valuation, invest in what you know |
| 5 | Howard Marks | Contrarian | Second-level thinking, cycle positioning |
| 6 | Cathie Wood | Disruptive Innovation | ARK innovation framework |
| 7 | George Soros | Macro Hedge | Reflexivity theory, trend trading |
| 8 | Ray Dalio | Macro Hedge | Economic machine, debt cycles, All Weather |
| 9 | Duan Yongping ๆฎตๆฐธๅนณ | Pragmatist | Business model first, "ben fen" philosophy |
| 10 | Zhang Lei ๅผ ็ฃ | Growth Investing | Structural value, dynamic moats |
| 11 | Li Lu ๆๅฝ | Value Investing | Circle of competence, Civilization 3.0 |
| 12 | Feng Liu ๅฏๆณ | Contrarian | Weak-form system, odds thinking |
| 13 | Qiu Guolu ้ฑๅฝ้นญ | Value Investing | "Count moons, not stars" |
| 14 | Lin Yuan ๆๅญ | Consumer Investing | Monopoly brands, "mouth stocks" |
๐ Stage 2: 12 Technical Analysis Masters (Trend / Pattern / Volume)
| # | Master | Core Theory | Focus Area |
|---|---|---|---|
| 1 | Charles Dow | Dow Theory | Primary / secondary / minor trends |
| 2 | Richard Wyckoff | Wyckoff Method | Volume-price, accumulation/distribution |
| 3 | Ralph Elliott | Wave Theory | Wave counting, Fibonacci |
| 4 | Steve Nison | Japanese Candlesticks | Candlestick pattern recognition |
| 5 | J. Welles Wilder | RSI/DMI/ADX/ATR | Trend strength, volatility |
| 6 | Gerald Appel | MACD | Moving average convergence divergence |
| 7 | Joseph Granville | Volume 8 Rules | OBV volume-price validation |
| 8 | Thomas DeMark | TD Sequential | Precise buy/sell points |
| 9 | George Lane | Stochastic/KDJ | Overbought/oversold zones |
| 10 | Larry Williams | Williams %R | Extreme price levels |
| 11 | Alexander Elder | Triple Screen | Multi-timeframe analysis |
| 12 | ARBR Team | Sentiment Indicators | Market sentiment gauges |
โก Stage 3: 11 Quantitative Signal Masters (Pure Numerical Signals + Debate)
| # | Master | Indicators | Signal Output |
|---|---|---|---|
| 1 | Gerald Appel | MACD | Golden/death cross + target levels |
| 2 | John Bollinger | Bollinger Bands | Band breakout/reversion |
| 3 | Joseph Granville | MA + OBV | Moving average cross + volume validation |
| 4 | Goichi Hosoda | Ichimoku Cloud | Cloud support/resistance |
| 5 | J. Welles Wilder | RSI/ADX/ATR/PSAR | Overbought/oversold + trend strength |
| 6 | George Lane | KDJ | %K/%D crossover |
| 7 | Donald Lambert | CCI | Channel breakout |
| 8 | Larry Williams | W%R | Overbought/oversold / divergence |
| 9 | Marc Chaikin | CMF | Money flow direction |
| 10 | Alexander Elder | Triple Screen | Multi-timeframe signals |
| 11 | Bill Williams | Chaos Trading | Alligator/Fractal/AO/AC |
investment-masters-roundtable/
โโโ run.py # CLI entry + Web launcher
โโโ config.py # Global config (env-driven)
โ
โโโ data_engine/ # Data layer
โ โโโ fetcher.py # OHLCV (yfinance + akshare)
โ โโโ fundamental_data.py # Fundamentals (valuation/financials)
โ โโโ technical_indicators.py # 20+ technical indicators
โ โโโ cache.py # 2-level cache (LRU + file)
โ โโโ schema.py # Unified data structures
โ
โโโ masters/ # 37 masters analysis layer
โ โโโ base_master.py # Base class + LLM call + MasterOpinion
โ โโโ registry.py # 37-master registry
โ โโโ investment_master.py # Stage 1: 14 investment masters
โ โโโ technical_master.py # Stage 2: 12 technical masters
โ โโโ signal_master.py # Stage 3: 11 signal masters
โ โโโ skill_references/ # Master frameworks (.md)
โ โโโ investment_masters/ # 14 value/growth frameworks
โ โโโ technical_masters/ # 12 technical analysis frameworks
โ โโโ signal_masters/ # 11 quantitative signal frameworks
โ
โโโ debate_orchestrator/ # Debate coordination layer
โ โโโ orchestrator.py # Main orchestrator (3-stage)
โ โโโ stage1_debate.py # Stage 1: 7-step debate
โ โโโ stage2_analysis.py # Stage 2: parallel analysis
โ โโโ stage3_signals.py # Stage 3: signal matrix + debate
โ โโโ cross_stage_conflict.py # Cross-stage conflict detection
โ โโโ aggregator.py # 60/20/20 weighted aggregation
โ
โโโ report_generator/ # Report generation layer
โ โโโ markdown_report.py # Markdown roundtable minutes
โ โโโ html_report.py # Dark-themed HTML report
โ โโโ chart_renderer.py # mplfinance technical charts
โ
โโโ web_app/ # Web interface (Flask)
โ โโโ app.py # Flask application
โ โโโ templates/index.html # Dark-themed SPA
โ
โโโ tests/ # Tests
โ โโโ test_smoke.py # Smoke tests
โ
โโโ docs/ # Documentation
โ โโโ architecture.md # System architecture
โ
โโโ examples/ # Sample outputs
| Layer | Technology |
|---|---|
| Data Fetching | yfinance (US/HK) + akshare (China A-shares) |
| Technical Indicators | pandas-ta + pure pandas/numpy fallback |
| LLM Integration | OpenAI-compatible API (GPT-4o / DeepSeek / Qwen) |
| Concurrency | asyncio (parallel within stage, serial between stages) |
| Visualization | mplfinance + matplotlib |
| Web Interface | Flask + dark-themed SPA |
| Logging | Python logging with --verbose mode |
Copy .env.example โ .env:
# LLM (any OpenAI-compatible API)
LLM_API_BASE=https://api.openai.com/v1
LLM_API_KEY=sk-xxx
LLM_MODEL=gpt-4o
# Data
DEFAULT_PERIOD=2y # Historical data length
FMP_API_KEY= # Optional: financialmodelingprep
# Stage Weights (must sum to 1.0)
STAGE1_WEIGHT=0.6 # Fundamentals
STAGE2_WEIGHT=0.2 # Technical confirmation
STAGE3_WEIGHT=0.2 # Signal timing| Metric | Value |
|---|---|
| LLM Calls | 37 base + up to 6 debate rounds โ ~43 calls |
| Analysis Time | 30โ120 seconds (depends on LLM response speed) |
| Concurrency | All masters parallel within each stage (14 / 12 / 11) |
| Cache TTL | Technical data: 1h, Fundamentals: 24h |
We welcome contributions! Please see CONTRIBUTING.md for guidelines.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'feat: add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
MIT ยฉ 2026 Lucas Yan
โญ If this project helps you, please give it a Star!