OPEN-SOURCE SCRIPT
Updated Positional Trading Indicator

What it shows:
1. Vol Val (Volume Value)
A liquidity filter. Computes the volume-weighted average price (VWAP) of the last 7 bars multiplied by total volume over the same period, expressed in Indian Rupee Crores. Colour-coded for quick reads:
🔴 Red — below ₹5 Cr (illiquid, avoid)
🟡 Yellow — ₹5–20 Cr (moderate liquidity)
🟢 Green — above ₹20 Cr (sufficient liquidity for positional sizing)
2. Trend (Pivot Structure)
Classifies the current trend using confirmed Pivot Highs and Lows (default 5/5 left-right, adjustable). Compares the last two confirmed pivot highs and lows to determine market structure:
🟢 Positive — Higher High + Higher Low (uptrend structure)
🟡 Neutral — Mixed structure (consolidation or transition)
🔴 Negative — Lower High + Lower Low (downtrend structure)
3. Mansfield Relative Strength
Plots the stock's performance relative to a benchmark index (default: NSE:CNX500) as a ratio, smoothed by a 52-week SMA — adapted from the classic Mansfield RS methodology used in Stage Analysis. Indicates whether the stock is outperforming or underperforming the broader market:
🟢 RS Positive — Stock ratio is above its 52W MA (outperforming)
🔴 RS Negative — Stock ratio is at or below its 52W MA (underperforming)
4. Demand Zones
Automatically identifies and draws the most recent active demand zone on the chart. A zone is defined by a minimum of 3 touch points (wick entries or closes inside the zone), with at least 2 bars between consecutive touches. Zone width is ATR-based (default 0.5× ATR), anchored at the low of the zone. Overlapping zones are merged into a single clean box. Zones are invalidated and removed once price closes below them.
5. Pivot Level Lines
Draws dashed horizontal lines from the most recent confirmed Pivot High (light blue) and Pivot Low (red), extending to the right — giving you instant visual reference for key structural levels.
Inputs & Customisation:
All parameters are adjustable — Vol Val lookback, liquidity thresholds, pivot left/right lengths, ATR multiplier, demand zone lookback, minimum touches, gap between touches, RS benchmark symbol, and RS MA length.
1. Vol Val (Volume Value)
A liquidity filter. Computes the volume-weighted average price (VWAP) of the last 7 bars multiplied by total volume over the same period, expressed in Indian Rupee Crores. Colour-coded for quick reads:
🔴 Red — below ₹5 Cr (illiquid, avoid)
🟡 Yellow — ₹5–20 Cr (moderate liquidity)
🟢 Green — above ₹20 Cr (sufficient liquidity for positional sizing)
2. Trend (Pivot Structure)
Classifies the current trend using confirmed Pivot Highs and Lows (default 5/5 left-right, adjustable). Compares the last two confirmed pivot highs and lows to determine market structure:
🟢 Positive — Higher High + Higher Low (uptrend structure)
🟡 Neutral — Mixed structure (consolidation or transition)
🔴 Negative — Lower High + Lower Low (downtrend structure)
3. Mansfield Relative Strength
Plots the stock's performance relative to a benchmark index (default: NSE:CNX500) as a ratio, smoothed by a 52-week SMA — adapted from the classic Mansfield RS methodology used in Stage Analysis. Indicates whether the stock is outperforming or underperforming the broader market:
🟢 RS Positive — Stock ratio is above its 52W MA (outperforming)
🔴 RS Negative — Stock ratio is at or below its 52W MA (underperforming)
4. Demand Zones
Automatically identifies and draws the most recent active demand zone on the chart. A zone is defined by a minimum of 3 touch points (wick entries or closes inside the zone), with at least 2 bars between consecutive touches. Zone width is ATR-based (default 0.5× ATR), anchored at the low of the zone. Overlapping zones are merged into a single clean box. Zones are invalidated and removed once price closes below them.
5. Pivot Level Lines
Draws dashed horizontal lines from the most recent confirmed Pivot High (light blue) and Pivot Low (red), extending to the right — giving you instant visual reference for key structural levels.
Inputs & Customisation:
All parameters are adjustable — Vol Val lookback, liquidity thresholds, pivot left/right lengths, ATR multiplier, demand zone lookback, minimum touches, gap between touches, RS benchmark symbol, and RS MA length.
Release Notes
Fixed Some Timeframes on Mansfield RS and Pivot trendsOpen-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.
Open-source script
In true TradingView spirit, the creator of this script has made it open-source, so that traders can review and verify its functionality. Kudos to the author! While you can use it for free, remember that republishing the code is subject to our House Rules.
Disclaimer
The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.