# 🚀 Real-Time Trading Dashboard - Setup Guide ## Quick Install & Run ### Step 1: Install Streamlit ```cmd cd F:\ga-analytics-setup\files venv\Scripts\activate.bat pip install streamlit pandas numpy yfinance plotly ta ``` ### Step 2: Run Dashboard ```cmd streamlit run dashboard_app.py ``` Browser will automatically open at: http://localhost:8501 --- ## 🎯 Dashboard Features ### 1. **Live Market Scanner** - Scans Nifty 50 or custom watchlist - Real-time data (5m to 1h intervals) - Auto-refresh every 5 minutes ### 2. **Trading Signals** - 🟢 STRONG BUY / BUY - 🔴 STRONG SELL / SELL - 🟡 NEUTRAL - Based on multiple indicators ### 3. **Technical Analysis** - Supertrend - RSI (14) - MACD - Moving Averages (SMA 20/50) - Volume analysis ### 4. **Interactive Charts** - Candlestick with indicators - RSI panel - MACD histogram - Zoom, pan, hover for details ### 5. **Signal Scoring System** - Each indicator contributes to score - Score ≥ 3: STRONG BUY - Score ≤ -3: STRONG SELL - Clear actionable signals --- ## 📊 How to Use ### First Time Setup: 1. Open terminal/CMD 2. Navigate: `cd F:\ga-analytics-setup\files` 3. Activate venv: `venv\Scripts\activate.bat` 4. Install: `pip install -r requirements_dashboard.txt` 5. Run: `streamlit run dashboard_app.py` ### Daily Usage: ```cmd cd F:\ga-analytics-setup\files venv\Scripts\activate.bat streamlit run dashboard_app.py ``` Dashboard opens in browser automatically! --- ## 🎮 Using the Dashboard ### Sidebar Controls: **1. Auto Refresh** - ✅ Enable for live updates every 5 minutes - ❌ Disable for manual control **2. Stock Universe** - Nifty 50 (all 50 stocks) - Custom Watchlist (your symbols) **3. Timeframe** - 5m - Scalping/Intraday - 15m - Intraday - 30m - Swing - 1h - Positional **4. Scan Now Button** - Click to fetch latest data - Shows progress bar ### Main Dashboard: **Market Overview:** - Total stocks scanned - Buy signals count - Sell signals count - Neutral count **Signals Table:** - All stocks with signals - Sorted by signal strength - Price, RSI, Volume info - Click column headers to sort **Stock Analysis:** - Select any stock from dropdown - View detailed indicators - Interactive chart - Technical indicator summary --- ## 💡 Trading Workflow ### Morning Routine (9:15 AM): 1. Open dashboard 2. Select Nifty 50 3. Choose 5m or 15m timeframe 4. Click "Scan Now" 5. Check STRONG BUY signals 6. Review individual charts 7. Plan your trades ### Intraday Monitoring: 1. Enable "Auto Refresh" 2. Dashboard updates every 5 min 3. Watch for signal changes 4. Track your positions ### End of Day: 1. Switch to 1h timeframe 2. Check swing opportunities 3. Export signals (see below) --- ## 🔧 Customization ### Custom Watchlist: 1. Select "Custom Watchlist" 2. Enter symbols: `RELIANCE,TCS,INFY,HDFC` 3. Click "Scan Now" ### Change Indicators: Edit `dashboard_app.py` line 175-200: ```python # Adjust RSI levels if latest['RSI'] < 30: # Change 30 # Adjust Supertrend parameters df['Supertrend'], _ = self.calculate_supertrend(df, period=7, multiplier=3) ``` --- ## 📸 Dashboard Sections ### Section 1: Header - Title and refresh status - Last updated timestamp ### Section 2: Market Overview (Metrics) ``` Total Stocks | Buy Signals | Sell Signals | Neutral 50 | 12 | 8 | 30 ``` ### Section 3: Trading Signals Table ``` Symbol | Price | Change% | RSI | Volume | Signal | Score INFY | 1613 | +1.2% | 55 | 1.5x | 🟢 BUY | 3 SBIN | 998 | -0.5% | 42 | 0.8x | 🟡 NEUTRAL | 0 ``` ### Section 4: Stock Analysis - Dropdown to select stock - 5 key metrics - Indicator summary - Full interactive chart --- ## ⚡ Performance Tips ### Faster Scanning: - Use 15m instead of 5m (less data) - Scan custom watchlist (10-20 stocks) - Disable auto-refresh when not needed ### Accurate Signals: - Use 5m for scalping - Use 15m for intraday - Use 1h for swing trading - Cross-verify with chart --- ## 🐛 Troubleshooting ### Dashboard not opening? ```cmd # Check if streamlit installed streamlit --version # Reinstall if needed pip install --upgrade streamlit ``` ### "No data fetched" error? - Check internet connection - Some symbols may be delisted - Try different timeframe ### Slow loading? - Reduce number of stocks - Use longer interval (30m/1h) - Check internet speed ### Port already in use? ```cmd streamlit run dashboard_app.py --server.port 8502 ``` --- ## 📱 Access from Phone Dashboard runs on local network! 1. Start dashboard on PC 2. Find PC IP: `ipconfig` (Windows) 3. On phone browser: `http://YOUR_PC_IP:8501` 4. Monitor from anywhere in house! --- ## 🎨 Dashboard Screenshots (What You'll See) **Top Section:** ``` 📊 NSE Real-Time Trading Dashboard ───────────────────────────────── Market Overview [50] [12 🟢] [8 🔴] [30 🟡] Total Buy Signals Sell Signals Neutral ``` **Signals Table:** Interactive table with sorting, searching **Charts:** - Candlestick with Supertrend overlay - SMA 20/50 lines - RSI indicator below (30-70 zones) - MACD with histogram --- ## 🚀 Next Level Features (Coming Soon) Want me to add: - [ ] Sound alerts for signals - [ ] Email/Telegram notifications - [ ] Export signals to Excel - [ ] OpenAlgo integration (auto-trade) - [ ] Portfolio tracking - [ ] Backtesting module **Tell me what you need!** --- ## 💪 Pro Tips 1. **Multi-Monitor Setup:** - Dashboard on one screen - Trading terminal on another 2. **Signal Confirmation:** - Don't blindly follow signals - Check chart patterns - Verify volume - Use stop losses 3. **Best Timeframes:** - Scalping: 5m - Intraday: 15m - Swing: 1h 4. **Custom Alerts:** - Watch for STRONG BUY - Exit on signal flip - Use score changes --- ## 📞 Support Dashboard kaam nahi kar raha? Koi error aa raha? Share screenshot and error message! --- **Happy Trading! 📈💰**