How shadowghost-hacker/tradingstratergyscreanner works
StrategyScreener is a web platform for scanning Indian equities, testing trading strategies, and exploring signals on charts. Users choose a stock universe, timeframe, and strategies; the API coordinates market-data retrieval and confluence evaluation, then returns scan results. The backtest workflow separately simulates trades and reports portfolio metrics. The UI also supports strategy editing and AI generation, chart annotations, account verification, and cloud persistence. The graph follows documented capabilities; several API and storage connections are inferred from README descriptions where endpoint implementations were not sampled.
Main entry points: app.py FastAPI application · scanner_engine.py Confluence scanner · data_provider.py Market data and universes · backtest_engine.py Backtest simulator
Components 17
Web experience
- Web interface
static/index.html - UI controller
static/js/app.js - Chart studio
static/js/chart.js - FastAPI application
app.py
Market analysis
- Confluence scanner
scanner_engine.py - Backtest simulator
backtest_engine.py - Market data and universes
data_provider.py
Strategies
- Strategy definitions
strategies - AI strategy generator
ai_generator.py
Accounts and storage
- Authentication
auth.py - OTP email service
email_service.py - Persistent records
db.py
External integrations
- Yahoo Finance
- Google Gemini
- TradingView charts
- SMTP provider
Other components
- Trader
Connections 22
- Trader → Web interface: uses
- Web interface → UI controller: loads
- UI controller → FastAPI application: calls API
- Chart studio → FastAPI application: requests candles
- Chart studio → TradingView charts: embeds charts
- FastAPI application → Confluence scanner: runs scans
- Confluence scanner → Market data and universes: fetches OHLCV
- Confluence scanner → Strategy definitions: loads strategies
- FastAPI application → Backtest simulator: starts simulations
- Backtest simulator → Market data and universes: fetches history
- Backtest simulator → Confluence scanner: evaluates signals
- Market data and universes → Yahoo Finance: fetches prices
- FastAPI application → Market data and universes: serves universes
- FastAPI application → Authentication: handles accounts
- Authentication → Persistent records: reads and writes
- Authentication → OTP email service: dispatches OTP
- OTP email service → SMTP provider: sends mail
- FastAPI application → Persistent records: stores cloud records
- FastAPI application → AI strategy generator: generates strategy code
- AI strategy generator → Strategy definitions: creates strategies
- AI strategy generator → Google Gemini: requests generation
- FastAPI application → Strategy definitions: saves uploaded code