How rkpbr/redflag works
redflag is a Gujarati Streamlit stock-analysis dashboard. A user submits a share name; the app fetches market and company data, evaluates business quality and valuation, adds automated warning checks, then presents a decision and a possible investment plan. It also supports review history through a local CSV journal and an optional Google Sheet. The single-file implementation is only partially excerpted, so links to UI orchestration and some integrations are marked unverified rather than inferred as confirmed calls.
Main entry points: redflag_app.py Market data fetch
Components 12
Dashboard
- Streamlit interface
redflag_app.py
Stock analysis
- Market data fetch
redflag_app.py - Quality checks
redflag_app.py - PE valuation
redflag_app.py - Automated warnings
redflag_app.py - Decision and plan
redflag_app.py
Review records
- Local CSV journal
redflag_app.py
Other components
- Investor
- Google News
- NSE ASM/GSM lists
- Yahoo Finance
- Google Sheet
Connections 14
- Investor → Streamlit interface: enters share
redflag_app.py - Streamlit interface → Market data fetch: submits for analysis
redflag_app.py - Market data fetch → Yahoo Finance: fetches data
- Market data fetch → Quality checks: supplies data
redflag_app.py - Market data fetch → PE valuation: supplies data
redflag_app.py - Market data fetch → Automated warnings: supplies data
redflag_app.py - Quality checks → Decision and plan: informs decision
redflag_app.py - PE valuation → Decision and plan: informs decision
redflag_app.py - Automated warnings → Google News: scans headlines
- Automated warnings → NSE ASM/GSM lists: checks lists
- Automated warnings → Yahoo Finance: checks insiders
- Decision and plan → Streamlit interface: presents result
redflag_app.py - Decision and plan → Local CSV journal: records review
redflag_app.py - Decision and plan → Google Sheet: saves result