OPEN-SOURCE SCRIPT
Mohit Strength Box - Full Confirmation Table

# Mohit Strength Box - Full Confirmation Table
## Overview
This indicator consolidates six core technical dimensions — trend, momentum, volume, volatility, and relative performance — into a single on-chart status box. Instead of switching between separate RSI, MACD, Supertrend, and ADX panels, this tool reads all of them at a glance and gives an aggregated "Overall Score" so you can quickly judge whether a stock has genuine multi-factor confirmation before entering a trade, or whether signals are conflicting.
It is built for swing and positional traders working on Indian equities (NSE/BSE) but works on any symbol, any timeframe, and any asset class supported by TradingView.
---
## What the Box Shows
**1. Relative Strength (RS) vs Benchmark**
Calculated using a Mansfield-style formula: the ratio of the stock's price to a benchmark's price (default NSE:NIFTY), smoothed and expressed as a percentage deviation from its own moving average. When this value is above zero, the stock is outperforming the benchmark; below zero, it is underperforming. This is the same concept institutional analysts use to separate market leaders from laggards, independent of whether the broader index itself is up or down.
**2. RVOL (Relative Volume / Volume Expansion)**
Current volume divided by its rolling average (default 20 periods). A reading above the configurable threshold (default 1.5x) flags genuine volume expansion — useful for spotting institutional accumulation, breakout confirmation, or unusual activity before a move.
**3. ATR Expansion**
Compares the current Average True Range to the ATR from a set number of bars back (default 5). Expanding ATR signals rising volatility and often precedes larger directional moves; this row shows both the direction (expanding/contracting) and the percentage change.
**4. VCP (Volatility Contraction Pattern)**
Flags when both ATR and Bollinger Band Width are contracting relative to their own moving averages simultaneously. This mirrors the "tightening" phase traders look for ahead of a breakout — the market coiling before a directional expansion. This is a simplified proxy for the VCP concept and does not replace manual pivot/structure analysis.
**5. Supertrend**
Standard Supertrend calculation (default factor 3, ATR length 10). Bullish when price is trading above the trailing stop line, bearish when below. The line itself is also plotted on the chart for visual trailing-stop reference.
**6. MACD**
Standard MACD (12/26/9 default). Bullish when the MACD line is above its signal line, bearish when below.
**7. RSI (50 Midline)**
Rather than using the traditional 30/70 overbought/oversold levels, this indicator treats the 50 line as the trend filter: RSI above 50 is read as bullish momentum, below 50 as bearish momentum — a common institutional approach for trend-following systems.
**8. EMA Trend Alignment**
Checks whether price is above both a fast EMA (default 20) and a slow EMA (default 50), and that the fast EMA is above the slow EMA. This requires full alignment rather than a simple single-EMA crossover, reducing false signals from choppy price action.
**9. ADX / DI Direction**
Uses +DI vs -DI to determine directional bias, and ADX value vs a threshold (default 20) to flag whether the current trend has strength or is weak/range-bound.
**10. Overall Confirmation Score**
Aggregates six directional signals — RS, Supertrend, MACD, RSI, EMA Trend, and DI direction — into a single count (e.g., "5/6 Bullish"). This gives an at-a-glance confluence read: the more signals aligned, the stronger the technical case in that direction. This score deliberately excludes RVOL and VCP, since those measure volume/volatility conditions rather than directional bias.
---
## How to Use It
- **Trend confirmation before entry**: Look for a high bullish score (5/6 or 6/6) alongside RVOL expansion and/or an active VCP flag — this combination suggests a stock with strong underlying trend and a volume/volatility setup for continuation or breakout.
- **Avoiding weak setups**: A mixed score (e.g., 3/6) suggests conflicting signals across timeframes/indicators — often better to wait for clearer alignment.
- **Relative strength as a filter**: Use RS to separate genuine leaders from stocks simply moving with the index. A stock with RS below zero is underperforming the benchmark even if its own price is rising.
- **VCP + confluence combo**: The built-in alert for "VCP + Majority Bullish Confluence" is designed to flag exactly this — a stock coiling in volatility while the majority of trend/momentum indicators are already aligned bullish.
---
## Alerts Included
- RS positive + RVOL expansion
- VCP detected
- VCP + RVOL expansion + RS positive (breakout setup)
- Supertrend + MACD + RSI all bullish (trend trio)
- VCP + majority bullish confluence
- All 6 signals bullish (unanimous)
- All 6 signals bearish (unanimous)
---
## Customizable Inputs
Every component is independently configurable: benchmark symbol, RS smoothing length, RVOL average length and threshold, ATR length and lookback, VCP contraction ratio and Bollinger settings, Supertrend factor/ATR length, MACD lengths, RSI length, EMA fast/slow lengths, ADX/DI length and strength threshold, plus table position and text size.
---
## Important Notes
- This indicator is a **decision-support tool**, not a standalone trading system. It does not predict future price movement and should be combined with price action, risk management, and your own market structure analysis.
- The VCP row is a simplified volatility-based proxy, not a full pivot/structure-based VCP detector (which typically requires identifying successive higher lows/contracting swing ranges manually).
- Relative Strength, EMA alignment, and DI direction are lagging by nature (as with any moving-average or trend-based calculation) — they confirm trend, they do not predict reversals.
- Past performance of any signal combination shown here does not guarantee future results. Always backtest on your specific universe of stocks and timeframe before relying on this for live decisions.
## Overview
This indicator consolidates six core technical dimensions — trend, momentum, volume, volatility, and relative performance — into a single on-chart status box. Instead of switching between separate RSI, MACD, Supertrend, and ADX panels, this tool reads all of them at a glance and gives an aggregated "Overall Score" so you can quickly judge whether a stock has genuine multi-factor confirmation before entering a trade, or whether signals are conflicting.
It is built for swing and positional traders working on Indian equities (NSE/BSE) but works on any symbol, any timeframe, and any asset class supported by TradingView.
---
## What the Box Shows
**1. Relative Strength (RS) vs Benchmark**
Calculated using a Mansfield-style formula: the ratio of the stock's price to a benchmark's price (default NSE:NIFTY), smoothed and expressed as a percentage deviation from its own moving average. When this value is above zero, the stock is outperforming the benchmark; below zero, it is underperforming. This is the same concept institutional analysts use to separate market leaders from laggards, independent of whether the broader index itself is up or down.
**2. RVOL (Relative Volume / Volume Expansion)**
Current volume divided by its rolling average (default 20 periods). A reading above the configurable threshold (default 1.5x) flags genuine volume expansion — useful for spotting institutional accumulation, breakout confirmation, or unusual activity before a move.
**3. ATR Expansion**
Compares the current Average True Range to the ATR from a set number of bars back (default 5). Expanding ATR signals rising volatility and often precedes larger directional moves; this row shows both the direction (expanding/contracting) and the percentage change.
**4. VCP (Volatility Contraction Pattern)**
Flags when both ATR and Bollinger Band Width are contracting relative to their own moving averages simultaneously. This mirrors the "tightening" phase traders look for ahead of a breakout — the market coiling before a directional expansion. This is a simplified proxy for the VCP concept and does not replace manual pivot/structure analysis.
**5. Supertrend**
Standard Supertrend calculation (default factor 3, ATR length 10). Bullish when price is trading above the trailing stop line, bearish when below. The line itself is also plotted on the chart for visual trailing-stop reference.
**6. MACD**
Standard MACD (12/26/9 default). Bullish when the MACD line is above its signal line, bearish when below.
**7. RSI (50 Midline)**
Rather than using the traditional 30/70 overbought/oversold levels, this indicator treats the 50 line as the trend filter: RSI above 50 is read as bullish momentum, below 50 as bearish momentum — a common institutional approach for trend-following systems.
**8. EMA Trend Alignment**
Checks whether price is above both a fast EMA (default 20) and a slow EMA (default 50), and that the fast EMA is above the slow EMA. This requires full alignment rather than a simple single-EMA crossover, reducing false signals from choppy price action.
**9. ADX / DI Direction**
Uses +DI vs -DI to determine directional bias, and ADX value vs a threshold (default 20) to flag whether the current trend has strength or is weak/range-bound.
**10. Overall Confirmation Score**
Aggregates six directional signals — RS, Supertrend, MACD, RSI, EMA Trend, and DI direction — into a single count (e.g., "5/6 Bullish"). This gives an at-a-glance confluence read: the more signals aligned, the stronger the technical case in that direction. This score deliberately excludes RVOL and VCP, since those measure volume/volatility conditions rather than directional bias.
---
## How to Use It
- **Trend confirmation before entry**: Look for a high bullish score (5/6 or 6/6) alongside RVOL expansion and/or an active VCP flag — this combination suggests a stock with strong underlying trend and a volume/volatility setup for continuation or breakout.
- **Avoiding weak setups**: A mixed score (e.g., 3/6) suggests conflicting signals across timeframes/indicators — often better to wait for clearer alignment.
- **Relative strength as a filter**: Use RS to separate genuine leaders from stocks simply moving with the index. A stock with RS below zero is underperforming the benchmark even if its own price is rising.
- **VCP + confluence combo**: The built-in alert for "VCP + Majority Bullish Confluence" is designed to flag exactly this — a stock coiling in volatility while the majority of trend/momentum indicators are already aligned bullish.
---
## Alerts Included
- RS positive + RVOL expansion
- VCP detected
- VCP + RVOL expansion + RS positive (breakout setup)
- Supertrend + MACD + RSI all bullish (trend trio)
- VCP + majority bullish confluence
- All 6 signals bullish (unanimous)
- All 6 signals bearish (unanimous)
---
## Customizable Inputs
Every component is independently configurable: benchmark symbol, RS smoothing length, RVOL average length and threshold, ATR length and lookback, VCP contraction ratio and Bollinger settings, Supertrend factor/ATR length, MACD lengths, RSI length, EMA fast/slow lengths, ADX/DI length and strength threshold, plus table position and text size.
---
## Important Notes
- This indicator is a **decision-support tool**, not a standalone trading system. It does not predict future price movement and should be combined with price action, risk management, and your own market structure analysis.
- The VCP row is a simplified volatility-based proxy, not a full pivot/structure-based VCP detector (which typically requires identifying successive higher lows/contracting swing ranges manually).
- Relative Strength, EMA alignment, and DI direction are lagging by nature (as with any moving-average or trend-based calculation) — they confirm trend, they do not predict reversals.
- Past performance of any signal combination shown here does not guarantee future results. Always backtest on your specific universe of stocks and timeframe before relying on this for live decisions.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.
Script open-source
Nello spirito di TradingView, l'autore di questo script lo ha reso open source, in modo che i trader possano esaminarne e verificarne la funzionalità. Complimenti all'autore! Sebbene sia possibile utilizzarlo gratuitamente, ricordiamo che la ripubblicazione del codice è soggetta al nostro Regolamento.
Declinazione di responsabilità
Le informazioni e le pubblicazioni non sono intese come, e non costituiscono, consulenza o raccomandazioni finanziarie, di investimento, di trading o di altro tipo fornite o approvate da TradingView. Per ulteriori informazioni, consultare i Termini di utilizzo.