Install
openclaw skills install @lyflyd/us-stock-analyzerThree-factor stock analysis combining DCF valuation, Livermore trend trading rules, and VIX market sentiment to generate high-confidence buy signals for US equities. Use when analyzing US stocks for investment decisions, determining optimal entry points, or evaluating buy opportunities with multi-factor confirmation.
openclaw skills install @lyflyd/us-stock-analyzerA comprehensive stock analysis system that combines Value Investing (DCF), Trend Trading (Livermore Rules), and Market Sentiment (VIX) to generate buy signals only when all three factors align.
# Install dependencies
pip3 install yfinance pandas numpy matplotlib pyyaml requests
# Set API key (optional, for enhanced financial data)
export FMP_API_KEY="your_key_here"
# Run analysis
python3 scripts/decision_engine.py AAPL
BUY = Value ≥ 60 AND Trend ≥ 60 AND Sentiment ≥ 60 AND Composite ≥ 70
from scripts.decision_engine import StockAnalyzer
analyzer = StockAnalyzer(config_path="config.yaml")
result = analyzer.analyze("TSLA")
print(result['report'])
analyzer.plot_analysis(result['result'], save_path="tsla_analysis.png")
| Data | Source | Required |
|---|---|---|
| Price/Volume | Yahoo Finance (yfinance) | Free |
| Financials | FMP API | Optional (free tier) |
| VIX | CBOE via Yahoo | Free |
| Sector ETFs | Yahoo Finance | Free |
Edit config.yaml to customize:
The system generates a formatted report including:
us-stock-analyzer/
├── SKILL.md # This file
├── config.yaml # Configuration
├── requirements.txt # Python dependencies
├── scripts/
│ ├── data_fetcher.py # Data retrieval
│ ├── dcf_analyzer.py # DCF valuation
│ ├── trend_analyzer.py # Livermore trend analysis
│ ├── sentiment_analyzer.py # VIX sentiment
│ └── decision_engine.py # Three-factor engine
├── references/
│ └── methodology.md # Detailed methodology
└── examples/
└── sample_report.md # Example output
See references/methodology.md for:
This tool is for informational purposes only and does not constitute investment advice. Always conduct your own research and consider consulting a financial advisor before making investment decisions.
MIT-0 (Public Domain)