Trading-Dashboard / DASHBOARD_GUIDE.md
riteshcp's picture
Upload DASHBOARD_GUIDE.md
f2cf141 verified
|
Raw History Blame Contribute Delete
6.06 kB

A newer version of the Gradio SDK is available: 6.32.0

Upgrade

๐Ÿš€ Real-Time Trading Dashboard - Setup Guide

Quick Install & Run

Step 1: Install Streamlit

cd F:\ga-analytics-setup\files
venv\Scripts\activate.bat

pip install streamlit pandas numpy yfinance plotly ta

Step 2: Run Dashboard

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:

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:

# 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?

# 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?

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! ๐Ÿ“ˆ๐Ÿ’ฐ