Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Investment Scorer

Investment Scorer is an intelligent stock analysis platform designed to give traders a clear edge. It instantly calculates a comprehensive Investment Score (1-100) for any stock or ETF by synthesizing Technical Analysis, Fundamental Data, and Market Sentiment into a single actionable metric.

Whether you are a day trader or long-term investor, Investment Scorer helps you cut through the noise with clear Buy/Sell recommendations, real-time data, and AI-driven insights.

Features

  • Investment Score (1-100): Comprehensive scoring based on 15+ technical indicators
  • Technical Analysis: RSI, MACD, Bollinger Bands, Stochastic, Williams %R, CCI, ADX, MFI, OBV, VWAP
  • Fundamental Analysis: P/E, PEG, Profit Margins, Revenue Growth, ROE, Debt/Equity
  • Market Sentiment: VIX, Treasury Yields, S&P 500 trends
  • Stock Screener: Find strong buys, sells, and short opportunities
  • Price Targets: Entry, exit, and stop-loss levels
  • Earnings Data: Historical earnings surprises and analyst targets

Quick Start (Local)

# Install dependencies
pip install -r requirements.txt

# Run the server
python app.py

# Open browser to http://localhost:8080

Daytona Cloud Deployment

This project is configured for Daytona cloud development environments.

Prerequisites

  • Daytona CLI installed
  • Daytona account configured

Deploy with Daytona

# Create a new workspace
daytona create https://github.com/YOUR_USERNAME/investment-scorer

# Or from local directory
daytona create .

# The workspace will automatically:
# 1. Set up Python 3.11 environment
# 2. Install all dependencies
# 3. Start the Flask server on port 8080
# 4. Forward ports for browser access

Daytona Configuration

The project includes:

  • .devcontainer/devcontainer.json - Dev container configuration
  • .daytona/config.yaml - Daytona workspace settings
  • docker-compose.yml - Multi-service orchestration
  • Dockerfile - Production-ready container

API Endpoints

Analyze Stock

POST /api/analyze
Content-Type: application/json
{"ticker": "AAPL"}

Screen Stocks

GET /api/screen?filter=strong_buys&limit=20
# Filters: all, strong_buys, buys, sells, strong_sells, shorts

Market Sentiment

GET /api/market-sentiment

Scoring Algorithm

The investment score combines:

  • 65% Technical Score (weighted average of indicators)
  • 35% Fundamental Score (earnings, margins, growth)

Score Interpretation

Score Recommendation Action
75-100 STRONG BUY Long with high confidence
60-74 BUY Long with medium confidence
45-59 HOLD Wait for clearer signals
30-44 SELL Short with medium confidence
1-29 STRONG SELL Short with high confidence

Technical Indicators Used

Indicator Weight Description
Candlestick Patterns 16% Pattern detection and trend analysis
Earnings 10% Historical earnings surprises
Moving Averages 9% SMA 20/50/200, Golden/Death Cross
VIX 8% Market fear gauge
RSI 7% Relative Strength Index (14-period)
MACD 7% Moving Average Convergence Divergence
News Sentiment 7% NLP-based news sentiment
ADX 5% Average Directional Index (trend strength)
Bollinger Bands 5% Price position within bands
Stochastic 5% Stochastic Oscillator
MFI 4% Money Flow Index
OBV 4% On-Balance Volume
Williams %R 3% Overbought/oversold
CCI 3% Commodity Channel Index
VWAP 3% Volume Weighted Average Price
Consumer Sentiment 4% Retail sentiment analysis

New: Market Snapshot Dashboard

The landing page now features a comprehensive Market Snapshot:

  • Market Sentiment Bar: VIX, Fear/Greed Index, S&P 500 trend, Treasury yields
  • Top BUY Signals: Stocks with highest investment scores
  • Short Candidates: Stocks with lowest scores for short opportunities
  • Daily Movers: Biggest gainers and losers
  • Market News: Aggregated news with sentiment analysis
  • Click any stock to view detailed charts and analysis

New API Endpoints

# Market Snapshot (all data in one call)
GET /api/snapshot

# Stock chart and details
GET /api/stock/AAPL/chart

# Stock detail page
GET /stock/AAPL

📱 Install as Native App (PWA)

Investment Scorer is a Progressive Web App (PWA). You can install it directly to your home screen on iOS, Android, macOS, and Windows for a full-screen, native, and offline-capable experience.

iOS (iPhone & iPad)

  1. Open the website in Safari
  2. Tap the Share button (square with arrow up)
  3. Scroll down and tap "Add to Home Screen"
  4. Tap "Add" in the top right

Android (Chrome)

  1. Open the website in Chrome
  2. Tap the Menu button (three dots)
  3. Tap "Install app" or "Add to Home Screen"
  4. Confirm by tapping "Install"

Mac & Windows (Chrome/Edge)

  1. Open the website in your browser
  2. Look for the Install icon (monitor with arrow) in the address bar (right side)
  3. Click "Install"
  4. The app will launch in its own window via Chrome/Edge

PWA Features

  • Offline Support: Static assets are cached for offline access
  • Native App Experience: Runs in standalone mode without browser UI
  • Touch Optimized: Dark theme UI designed for mobile
  • Real-Time Data: API calls always fetch fresh market data

Disclaimer

This tool is for educational purposes only. The investment score and recommendations are based on technical and fundamental analysis and should not be considered financial advice. Always do your own research and consult with a qualified financial advisor before making investment decisions.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages