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
A newer version of the Gradio SDK is available: 6.32.0
๐ 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:
- Open terminal/CMD
- Navigate:
cd F:\ga-analytics-setup\files - Activate venv:
venv\Scripts\activate.bat - Install:
pip install -r requirements_dashboard.txt - 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):
- Open dashboard
- Select Nifty 50
- Choose 5m or 15m timeframe
- Click "Scan Now"
- Check STRONG BUY signals
- Review individual charts
- Plan your trades
Intraday Monitoring:
- Enable "Auto Refresh"
- Dashboard updates every 5 min
- Watch for signal changes
- Track your positions
End of Day:
- Switch to 1h timeframe
- Check swing opportunities
- Export signals (see below)
๐ง Customization
Custom Watchlist:
- Select "Custom Watchlist"
- Enter symbols:
RELIANCE,TCS,INFY,HDFC - 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!
- Start dashboard on PC
- Find PC IP:
ipconfig(Windows) - On phone browser:
http://YOUR_PC_IP:8501 - 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
Multi-Monitor Setup:
- Dashboard on one screen
- Trading terminal on another
Signal Confirmation:
- Don't blindly follow signals
- Check chart patterns
- Verify volume
- Use stop losses
Best Timeframes:
- Scalping: 5m
- Intraday: 15m
- Swing: 1h
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! ๐๐ฐ