PROTECTED SOURCE SCRIPT
TG Volume

Overview
This volume analysis suite goes beyond standard volume bars. It is designed to expose institutional accumulation by dissecting "Real Volume" (buying vs. selling pressure within a single candle), identifying Pocket Pivots, and streaming critical liquidity data directly on your chart via a custom Heads-Up Display (HUD).
How It Works
For The Beginner (Volume Decoded)
Standard volume bars only tell you the total shares traded and are colored based on whether the price closed higher or lower than it opened. This indicator digs deeper:
Split Volume Bars: The bars are visually split into two distinct parts:
Solid/Darker Color: Represents the "winning" side (e.g., buying volume on a green day).
Lighter/Partial Color: Represents the "losing" side (e.g., selling pressure near the top of a wick on a green day).
Why this matters: A green candle with a huge upper wick often looks like strong buying on a normal chart. This tool highlights the selling pressure (wick) in a different color, showing you the real story.
The Dashboard (HUD): A small table in the corner tells you if the stock is trading unusually high volume compared to its average ("Rel Vol"), and if there is enough dollar liquidity for your position size.
For The Technical Trader (The Logic)
This script integrates advanced volume profiling and VSA (Volume Spread Analysis) concepts:
Pocket Pivot Recognition: Automatically highlights specific volume signatures where up-volume is higher than the maximum down-volume of the last X days (default 10). This is a classic signal of institutional footprint often seen before breakouts.
Relative Volume (RVol) Factor: Calculates current volume vs. a moving average (SMA/EMA) to generate an RVol multiplier (e.g., "3.5x average volume").
Highest Volume Detection: Highlights bars that represent the highest "Up Volume" in a set lookback period (e.g., 252 days/1 year), flagging potential climactic buying or "Skyscraper" volume events.
Up/Down Volume Ratio: Calculates the sum of "Real Buying Volume" vs. "Real Selling Volume" over 50 bars to determine who is winning the medium-term war (Bulls vs. Bears).
Key Features & Visuals
1. Advanced Volume Bars
Dual-Tone Coloring: Visualizes the battle between bulls and bears within a single candle.
Green Candle: The body volume is painted dark green (buying), while the upper wick volume is painted light red/pink (selling).
Red Candle: The body volume is painted dark red (selling), while the lower wick volume is painted light green (buying).
Pocket Pivot Highlights: Bars meeting the Pocket Pivot criteria are painted a distinct bright green (Body) and red (Wick) to stand out immediately from standard volume days.
2. The Data Dashboard (HUD)
A concise table displaying actionable data:
Vol / Avg / RelVol: Shows Current Volume, Average Volume, and the Relative Volume Multiplier (e.g., x2.5).
Liquidity Check (Avg $): Displays the Average Daily Dollar Volume (Price * Avg Volume).
Why: Helps you size positions. If a stock trades $2M a day, you know not to trade a $500k position.
Max Position Sizing: Calculates a "Max Trade" value based on a user-defined multiplier of the average daily dollar volume.
U/D Ratio: The Up/Down Volume Ratio over the last 50 periods. A value > 1.0 indicates net accumulation.
3. Smart Alerts
Highest Volume: Visual alerts (special colors) when a bar exceeds the highest up-volume of the last year (252 days).
Threshold Highlights: The dashboard text turns green/red when specific liquidity or relative volume targets are met.
Settings Guide
Volume Colors: Customize the colors for Up, Down, and "Partial" (Wick) volume to fit your chart theme.
Relative Volume:
Length: Lookback period for average volume (default 10).
Target: The RVol multiplier required to highlight the dashboard text.
Pocket Pivot:
Lookback: Number of days to check for down-volume (default 10).
Ratio: Strictness of the pivot calculation.
Avg $ Volume: Set your minimum liquidity target (e.g., $2,000,000) to filter out illiquid penny stocks.
Disclaimer: This tool is for informational purposes only and does not constitute financial advice. Always verify data and manage risk independently.
This volume analysis suite goes beyond standard volume bars. It is designed to expose institutional accumulation by dissecting "Real Volume" (buying vs. selling pressure within a single candle), identifying Pocket Pivots, and streaming critical liquidity data directly on your chart via a custom Heads-Up Display (HUD).
How It Works
For The Beginner (Volume Decoded)
Standard volume bars only tell you the total shares traded and are colored based on whether the price closed higher or lower than it opened. This indicator digs deeper:
Split Volume Bars: The bars are visually split into two distinct parts:
Solid/Darker Color: Represents the "winning" side (e.g., buying volume on a green day).
Lighter/Partial Color: Represents the "losing" side (e.g., selling pressure near the top of a wick on a green day).
Why this matters: A green candle with a huge upper wick often looks like strong buying on a normal chart. This tool highlights the selling pressure (wick) in a different color, showing you the real story.
The Dashboard (HUD): A small table in the corner tells you if the stock is trading unusually high volume compared to its average ("Rel Vol"), and if there is enough dollar liquidity for your position size.
For The Technical Trader (The Logic)
This script integrates advanced volume profiling and VSA (Volume Spread Analysis) concepts:
Pocket Pivot Recognition: Automatically highlights specific volume signatures where up-volume is higher than the maximum down-volume of the last X days (default 10). This is a classic signal of institutional footprint often seen before breakouts.
Relative Volume (RVol) Factor: Calculates current volume vs. a moving average (SMA/EMA) to generate an RVol multiplier (e.g., "3.5x average volume").
Highest Volume Detection: Highlights bars that represent the highest "Up Volume" in a set lookback period (e.g., 252 days/1 year), flagging potential climactic buying or "Skyscraper" volume events.
Up/Down Volume Ratio: Calculates the sum of "Real Buying Volume" vs. "Real Selling Volume" over 50 bars to determine who is winning the medium-term war (Bulls vs. Bears).
Key Features & Visuals
1. Advanced Volume Bars
Dual-Tone Coloring: Visualizes the battle between bulls and bears within a single candle.
Green Candle: The body volume is painted dark green (buying), while the upper wick volume is painted light red/pink (selling).
Red Candle: The body volume is painted dark red (selling), while the lower wick volume is painted light green (buying).
Pocket Pivot Highlights: Bars meeting the Pocket Pivot criteria are painted a distinct bright green (Body) and red (Wick) to stand out immediately from standard volume days.
2. The Data Dashboard (HUD)
A concise table displaying actionable data:
Vol / Avg / RelVol: Shows Current Volume, Average Volume, and the Relative Volume Multiplier (e.g., x2.5).
Liquidity Check (Avg $): Displays the Average Daily Dollar Volume (Price * Avg Volume).
Why: Helps you size positions. If a stock trades $2M a day, you know not to trade a $500k position.
Max Position Sizing: Calculates a "Max Trade" value based on a user-defined multiplier of the average daily dollar volume.
U/D Ratio: The Up/Down Volume Ratio over the last 50 periods. A value > 1.0 indicates net accumulation.
3. Smart Alerts
Highest Volume: Visual alerts (special colors) when a bar exceeds the highest up-volume of the last year (252 days).
Threshold Highlights: The dashboard text turns green/red when specific liquidity or relative volume targets are met.
Settings Guide
Volume Colors: Customize the colors for Up, Down, and "Partial" (Wick) volume to fit your chart theme.
Relative Volume:
Length: Lookback period for average volume (default 10).
Target: The RVol multiplier required to highlight the dashboard text.
Pocket Pivot:
Lookback: Number of days to check for down-volume (default 10).
Ratio: Strictness of the pivot calculation.
Avg $ Volume: Set your minimum liquidity target (e.g., $2,000,000) to filter out illiquid penny stocks.
Disclaimer: This tool is for informational purposes only and does not constitute financial advice. Always verify data and manage risk independently.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 이를 자유롭게 제한 없이 사용할 수 있습니다 – 자세한 내용은 여기에서 확인하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.
보호된 스크립트입니다
이 스크립트는 비공개 소스로 게시됩니다. 하지만 이를 자유롭게 제한 없이 사용할 수 있습니다 – 자세한 내용은 여기에서 확인하세요.
면책사항
해당 정보와 게시물은 금융, 투자, 트레이딩 또는 기타 유형의 조언이나 권장 사항으로 간주되지 않으며, 트레이딩뷰에서 제공하거나 보증하는 것이 아닙니다. 자세한 내용은 이용 약관을 참조하세요.