BankNifty Dashboard + VWAP + EMA20 + Strong Signals (Optimized)
1️⃣ Overview
This script is a trading dashboard for BankNifty stocks. It combines multiple technical indicators to provide strong buy/sell signals, tracks key levels, and shows a master market signal. It is optimized for speed and performance.
2️⃣ Key Features
- Tracks 12 major BankNifty stocks in a dashboard table.
- Technical indicators: RSI, MA/EMA20, VWAP.
- Volume spike detection for unusual trading activity.
- Previous Day High/Low (PDH/PDL) breakout detection.
- Strong Buy/Sell alerts when price crosses EMA20 + VWAP.
- Master signal aggregates signals across all stocks.
3️⃣ Dashboard Layout
The table has 8 columns:
| Column | Description |
|---|---|
| SYMBOL | Stock ticker (e.g., SBIN, HDFCBANK) |
| LTP | Last Traded Price |
| %Chg | Percentage change from previous close |
| RSI | Relative Strength Index (momentum) |
| Trend | Trend based on MA (UP/DOWN) |
| VolSpike | Volume spike detected? (YES/NO) |
| PDH/PDL | Status relative to previous day high/low |
| Signal | Buy/Sell signal for that stock |
4️⃣ Tracked BankNifty Stocks
The dashboard tracks these 12 stocks:
- SBIN, HDFCBANK, ICICIBANK, AXISBANK, KOTAKBANK
- PNB, BANKBARODA, INDUSINDBK, FEDERALBNK, IDFCFIRSTB
- CANBK, AUBANK
5️⃣ Signal Calculations
- Buy: Close > EMA20 & Close > VWAP
- Sell: Close < EMA20 & Close < VWAP
- Volume Spike: Current volume > average × multiplier
- Trend: Bullish if close > MA20, Bearish if close < MA20
- PDH/PDL Breakout: ↑PDH Break / ↓PDL Break / Inside
6️⃣ Master Signal
- Aggregates all stock signals:
- ≥7 Buy signals → Master Signal = BUY
- ≥7 Sell signals → Master Signal = SELL
- Else → Neutral (B/S count shown)
- Displayed on both dashboard table and chart.
7️⃣ Chart Indicators
- EMA20 – orange line, trend reference.
- VWAP – blue line, intraday trend reference.
- Strong Buy/Sell signals – plotted on chart with labels:
- Green "BUY" below bar
- Red "SELL" above bar
- Previous Day High/Low – fuchsia (PDH) / aqua (PDL)
8️⃣ Alerts
- Strong Buy Alert – price crosses above EMA20 & VWAP
- Strong Sell Alert – price crosses below EMA20 & VWAP
9️⃣ Summary
- Comprehensive BankNifty dashboard for intraday traders.
- Combines trend, momentum, volume, breakout detection.
- Strong signals and master market signal make quick decisions easy.
- Optimized for minimal resource usage and fast updates.

0 Comments