OPEN-SOURCE SCRIPT
已更新 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.
發行說明
Fixed Some Timeframes on Mansfield RS and Pivot trends開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。
開源腳本
秉持TradingView一貫精神,這個腳本的創作者將其設為開源,以便交易者檢視並驗證其功能。向作者致敬!您可以免費使用此腳本,但請注意,重新發佈代碼需遵守我們的社群規範。
免責聲明
這些資訊和出版物並非旨在提供,也不構成TradingView提供或認可的任何形式的財務、投資、交易或其他類型的建議或推薦。請閱讀使用條款以了解更多資訊。