OPEN-SOURCE SCRIPT
Buy Opportunity Score Table (21 Points)

## 📊 Script Title:
**Buy Opportunity Score Table (21 Points)**
---
## 📝 Script Description:
This TradingView script is a **custom multi-indicator scoring system** designed to identify **buying opportunities** in stocks, indices, or ETFs by evaluating momentum, volume strength, and overall market sentiment. It gives a score out of **21 points** using 6 key indicators, and highlights **potential buy signals** when the score crosses **8 points or more**.
---
## ✅ Key Features:
### 📌 1. **Indicators Used (21 Points Max)**
Each of the following indicators contributes up to 4 points (except Nifty trend, which adds 1 point):
| Indicator | Max Points | Logic |
| ----------- | ---------- | ---------------------------------- |
| Volume | 4 | Volume > 20-day average and rising |
| OBV | 4 | OBV rising for 3+ days |
| MFI | 4 | MFI > 60 and increasing |
| RSI | 4 | RSI > 50 and increasing |
| ROC | 4 | Rate of change positive and rising |
| Nifty Trend | 1 | Nifty > yesterday and above 20 EMA |
---
### 📌 2. **Scoring Output**
* The **total score** is plotted on the chart and capped at 21.
* Score of **8 or higher** is treated as a **buy trigger**.
* Permanent horizontal lines are plotted at **8**, **13**, and **17** to show key levels:
* **8** → Entry zone
* **13** → Accumulation/Build zone
* **17** → Strong bullish momentum
---
### 📌 3. **Table Panel (Top Right Corner)**
A table shows:
* Current and previous day’s score for each indicator
* Total score and change from previous day
---
### 📌 4. **Visual Aids**
* Background turns **green** when score is **≥ 8**
* Permanent **horizontal lines** at score levels **8, 13, and 17** for easy reference
---
### 📌 5. **Alerts**
* An `alertcondition` is triggered **when score crosses 8 from below**
* You can use this for mobile/email alerts or automated strategies
---
## ⚙️ Inputs:
You can customize:
* Length of **ROC**, **MFI**, **RSI**, and **Volume SMA**
Default values are:
* ROC: 10
* MFI: 14
* RSI: 14
* Volume MA: 20
---
## 🎯 Use Case:
This tool is ideal for:
* **Swing traders** looking for early signals of accumulation
* **Investors** filtering stocks with rising internal strength
* **Algo traders** building signal-based strategies based on multi-factor models
**Buy Opportunity Score Table (21 Points)**
---
## 📝 Script Description:
This TradingView script is a **custom multi-indicator scoring system** designed to identify **buying opportunities** in stocks, indices, or ETFs by evaluating momentum, volume strength, and overall market sentiment. It gives a score out of **21 points** using 6 key indicators, and highlights **potential buy signals** when the score crosses **8 points or more**.
---
## ✅ Key Features:
### 📌 1. **Indicators Used (21 Points Max)**
Each of the following indicators contributes up to 4 points (except Nifty trend, which adds 1 point):
| Indicator | Max Points | Logic |
| ----------- | ---------- | ---------------------------------- |
| Volume | 4 | Volume > 20-day average and rising |
| OBV | 4 | OBV rising for 3+ days |
| MFI | 4 | MFI > 60 and increasing |
| RSI | 4 | RSI > 50 and increasing |
| ROC | 4 | Rate of change positive and rising |
| Nifty Trend | 1 | Nifty > yesterday and above 20 EMA |
---
### 📌 2. **Scoring Output**
* The **total score** is plotted on the chart and capped at 21.
* Score of **8 or higher** is treated as a **buy trigger**.
* Permanent horizontal lines are plotted at **8**, **13**, and **17** to show key levels:
* **8** → Entry zone
* **13** → Accumulation/Build zone
* **17** → Strong bullish momentum
---
### 📌 3. **Table Panel (Top Right Corner)**
A table shows:
* Current and previous day’s score for each indicator
* Total score and change from previous day
---
### 📌 4. **Visual Aids**
* Background turns **green** when score is **≥ 8**
* Permanent **horizontal lines** at score levels **8, 13, and 17** for easy reference
---
### 📌 5. **Alerts**
* An `alertcondition` is triggered **when score crosses 8 from below**
* You can use this for mobile/email alerts or automated strategies
---
## ⚙️ Inputs:
You can customize:
* Length of **ROC**, **MFI**, **RSI**, and **Volume SMA**
Default values are:
* ROC: 10
* MFI: 14
* RSI: 14
* Volume MA: 20
---
## 🎯 Use Case:
This tool is ideal for:
* **Swing traders** looking for early signals of accumulation
* **Investors** filtering stocks with rising internal strength
* **Algo traders** building signal-based strategies based on multi-factor models
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.
Script open-source
In pieno spirito TradingView, il creatore di questo script lo ha reso open-source, in modo che i trader possano esaminarlo e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricorda che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni ed i contenuti pubblicati non costituiscono in alcun modo una sollecitazione ad investire o ad operare nei mercati finanziari. Non sono inoltre fornite o supportate da TradingView. Maggiori dettagli nelle Condizioni d'uso.