How abdulrahman2005-prog/stock-market-intelligence works
This repository is a Streamlit stock-analysis dashboard with a separate AAPL five-trading-day prediction flow. The historical dashboard reads precombined closing prices, filters by stock and date, computes performance and risk measures, and renders visualizations. The prediction view retrieves live AAPL data, prepares the latest features, loads a serialized model, and displays a direction and probabilities. README describes broader analysis and model-training work, but the notebooks were not sampled, so their internal stages and relationships are not mapped. Edges reflect only shown app behavior or README claims.
Main entry points: app.py Date and stock filter · combined_close_prices.csv Historical prices · aapl_5day_model.pkl Serialized AAPL model
Components 12
Historical Analysis
- Historical prices
combined_close_prices.csv - Date and stock filter
app.py - Risk and performance metrics
app.py - Interactive visualizations
app.py
AAPL Forecast
- Live market data
app.py - Latest feature preparation
app.py - Serialized AAPL model
aapl_5day_model.pkl - Direction prediction
app.py - Forecast display
app.py
Other components
- Dashboard user
- Streamlit app
- Yahoo Finance
Connections 12
- Dashboard user → Streamlit app: uses
README.md - Streamlit app → Historical prices: loads
- Streamlit app → Date and stock filter: collects selections
app.py - Date and stock filter → Risk and performance metrics: calculates
app.py - Date and stock filter → Interactive visualizations: renders
app.py - Streamlit app → Live market data: requests data
app.py - Live market data → Yahoo Finance: fetches quotes
- Live market data → Latest feature preparation: prepares latest row
app.py - Latest feature preparation → Direction prediction: provides features
app.py - Direction prediction → Serialized AAPL model: loads and predicts
- Direction prediction → Forecast display: displays forecast
app.py - Dashboard user → Forecast display: requests forecast