Spaces:
Runtime error
Runtime error
|
Download DASHBOARD_GUIDE.md from riteshcp/Trading-Dashboard: direct link, hf CLI and curl.
- Browser
- Download file 6.06 kB
-
https://huggingface.co/spaces/riteshcp/Trading-Dashboard/resolve/main/DASHBOARD_GUIDE.md
- Command line
-
hf download hf://spaces/riteshcp/Trading-Dashboard/DASHBOARD_GUIDE.md
-
curl -L -o DASHBOARD_GUIDE.md https://huggingface.co/spaces/riteshcp/Trading-Dashboard/resolve/main/DASHBOARD_GUIDE.md
6.06 kB
| # ๐ 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! ๐๐ฐ** | |