How cyanideanion/market-sentiment-dashboard works
This repository builds a retrospective market-sentiment dashboard and conditional-return research appendix. The main workflow downloads market prices, validates and aligns them, computes four indicator scores and an aggregate label, then exports chart and summary JSON for a browser dashboard. The README also documents trend comparisons, co-movement and dislocation views, recovery-time analysis, and forward-return distributions. The browser loads explanatory content and renders charts on demand. The source excerpts show the build and browser wiring; chart-specific implementation details are only partially sampled.
Main entry points: build_dashboard.py Dashboard builder · app.js Interactive dashboard · data_loader.py Price downloads · analysis.py Indicator scores
Components 16
Market data
- Price validation
build_dashboard.py - Price downloads
data_loader.py
Sentiment analysis
- Dashboard builder
build_dashboard.py - Indicator scores
analysis.py - Aggregate sentiment
analysis.py
Research outputs
- Market trend charts
charts.py - Correlation analysis
charts.py - Recovery analysis
charts.py - Forward returns
charts.py
Dashboard
- Dashboard JSON
site/data - Research content
site/content.json - Interactive dashboard
site/app.js - Dashboard page
site/index.html
Other components
- Yahoo Finance
- Dashboard visitor
- Plotly CDN
Connections 15
- Dashboard builder → Price downloads: requests prices
build_dashboard.py - Price downloads → Yahoo Finance: downloads data
data_loader.py - Dashboard builder → Price validation: validates prices
build_dashboard.py - Dashboard builder → Indicator scores: calculates scores
build_dashboard.py - Indicator scores → Aggregate sentiment: combines scores
analysis.py - Dashboard builder → Market trend charts: builds charts
build_dashboard.py - Dashboard builder → Correlation analysis: builds analysis
build_dashboard.py - Dashboard builder → Recovery analysis: builds analysis
build_dashboard.py - Dashboard builder → Forward returns: builds analysis
build_dashboard.py - Dashboard builder → Dashboard JSON: writes JSON
build_dashboard.py - Dashboard visitor → Interactive dashboard: opens dashboard
README.md - Interactive dashboard → Dashboard JSON: fetches JSON
site/app.js - Interactive dashboard → Research content: loads text
site/app.js - Interactive dashboard → Plotly CDN: loads library
site/app.js - Dashboard page → Interactive dashboard: hosts app