How rehankwatla/market-lab works
Market Lab is a locally run NSE dashboard: a user opens the browser UI, which presents live Smart Money and Sector Map views, charts and research notes, plus a Swing Lab. The main paths combine public market data with analysis: the Smart Money and Sector engines supply live views; sector data supports sector comparisons and news; historical bars feed intraday and swing strategy analysis; research combines company filings, market data and industry context. The README documents these capabilities and data sources. Some internal wiring is supported only by the source index, so uncertain links are omitted or marked dashed.
Main entry points: app.py Dashboard server · swing_live.py Swing signals · research.py Company research · engine.py Intraday backtest
Components 29
Dashboard
- Web dashboard
web/index.html - Dashboard server
app.py
Smart Money
- Live market feed
sm/feed.py - Market helpers
sm/market.py - Structure analysis
sm/structure.py - Smart Money signals
sm/smc.py
Sector Map
- Sector live data
sx/live.py - Stock universe
sx/universe.py - Sector market data
sx/market.py - Sector news
sx/news.py - Sector structure
sx/structure.py - Sector SMC
sx/smc.py
Strategy Lab
- Historical bars
lab/bars.py - Indicator features
lab/features.py - Intraday strategies
lab/strategies.py - Intraday backtest
lab/engine.py - Results analysis
lab/analyze.py - Lab report
lab/report.py - Swing strategies
lab/swing.py - Swing signals
lab/swing_live.py - Swing analysis
lab/swing_an.py - Swing portfolio
lab/swing_pf.py
Research
- Company research
lab/research.py - Industry context
lab/industries.py
Other components
- Dashboard user
- NSE public data
- Yahoo Finance
- Google News RSS
- Wikipedia
Connections 33
- Dashboard user → Web dashboard: opens
README.md - Web dashboard → Dashboard server: requests views
- Dashboard server → Live market feed: serves live data
app.py - Dashboard server → Sector live data: serves sector views
app.py - Dashboard server → Swing signals: serves swing data
app.py - Dashboard server → Company research: serves notes
app.py - Live market feed → Market helpers: uses helpers
sm/feed.py - Live market feed → Smart Money signals: uses signals
sm/feed.py - Smart Money signals → Structure analysis: uses structure
sm/smc.py - Sector live data → Stock universe: uses universe
sx/live.py - Sector live data → Sector market data: uses market data
sx/live.py - Sector live data → Sector news: includes headlines
- Sector SMC → Sector structure: uses structure
sx/smc.py - Historical bars → Yahoo Finance: fetches bars
lab/bars.py - Historical bars → NSE public data: fetches universe
lab/bars.py - Intraday backtest → Historical bars: loads bars
lab/engine.py - Intraday backtest → Indicator features: builds features
lab/engine.py - Intraday backtest → Intraday strategies: runs signals
lab/engine.py - Results analysis → Intraday backtest: analyzes trades
lab/analyze.py - Lab report → Results analysis: summarizes results
lab/report.py - Lab report → Intraday backtest: reads results
lab/report.py - Swing strategies → Historical bars: uses bars
lab/swing.py - Swing signals → Historical bars: loads bars
lab/swing_live.py - Swing signals → Swing strategies: scans setups
lab/swing_live.py - Swing signals → Swing analysis: uses analysis
lab/swing_live.py - Swing signals → Swing portfolio: uses portfolio
lab/swing_live.py - Company research → Industry context: uses context
lab/research.py - Company research → NSE public data: fetches filings
lab/research.py - Company research → Yahoo Finance: fetches prices
lab/research.py - Company research → Wikipedia: fetches summaries
README.md - Sector news → Google News RSS: fetches headlines
README.md - Stock universe → NSE public data: fetches classification
sx/universe.py - Stock universe → Yahoo Finance: fetches history