PROTECTED SOURCE SCRIPT
已更新

SHDW Volume Profile | Pro

45
What It Does

SHDW Volume Profile renders a real-time volume profile directly on your price chart, providing a granular view of where volume was transacted across discrete price levels. Unlike simple volume bars, this indicator distributes volume into configurable bins and highlights the most critical institutional reference levels: the Point of Control (PoC), Value Area High (VAH), and Value Area Low (VAL).

The indicator also builds cumulative volume curves that visually separate buying pressure (below PoC) from selling pressure (above PoC), giving traders immediate insight into the directional bias of the volume distribution.

---

How It Works

Volume Binning
The visible price range over the lookback period is divided into N bins (default: 100, configurable from 20 to 200). Each historical bar's volume is assigned to the appropriate bin based on the selected price source:
- Close: Volume is attributed to the bin containing the close price. Simple but less representative.
- HLC3: Volume is attributed to the bin containing (High + Low + Close) / 3. A balanced compromise.
- Proportional Range: Volume is evenly distributed across all bins from the bar's low to high. This is the most accurate method and closely mimics institutional TPO (Time Price Opportunity) profiling.

Point of Control (PoC)
The bin with the highest accumulated volume defines the PoC — the single price level where the most trading activity occurred. Institutional desks treat PoC as a magnet for price, a strong support/resistance reference, and a mean-reversion target.

Value Area (VAH / VAL)
Starting from the PoC bin, the algorithm symmetrically expands outward (one bin at a time, choosing the side with more volume) until the cumulative volume reaches the user-defined Value Area percentage (default: 70%). The upper boundary is VAH; the lower boundary is VAL. The 70% threshold is the institutional standard, representing the price range where the bulk of fair-value transactions occurred.

Cumulative Volume Curves
Volume above the PoC is accumulated into a "Sell" curve; volume below the PoC is accumulated into a "Buy" curve. These curves are drawn as polylines to the right of the chart, providing a visual representation of buying vs. selling pressure distribution.

Heatmap Overlay
Each bin is drawn as a semi-transparent box on the chart. Color intensity is proportional to the bin's volume relative to PoC volume. Bins above the PoC use the sell color; bins below use the buy color. This creates a heatmap effect that makes high-volume nodes immediately visible.

Session Anchoring
The lookback period can be anchored to:
- A fixed number of bars (default: 300)
- The start of the current daily session
- The start of the current weekly session

This allows the profile to reset automatically at session boundaries — a common institutional workflow.

---

How to Use It

Identifying Support and Resistance
- PoC acts as a strong magnet. Price tends to return to PoC after deviating from it.
- VAH functions as resistance when price approaches from below, and as support once broken.
- VAL functions as support when price approaches from above, and as resistance once broken.

Reading the Heatmap
- Dense (bright) zones indicate high-volume nodes (HVN) — these are price levels with strong acceptance and tend to attract price.
- Sparse (dim) zones indicate low-volume nodes (LVN) — these are price levels with poor acceptance and price tends to move quickly through them.

Interpreting the Curves
- If the Sell curve is significantly larger than the Buy curve, most volume was transacted above the PoC, suggesting distribution.
- If the Buy curve is significantly larger, most volume was below the PoC, suggesting accumulation.
- The percentage boxes to the right show the exact split.

Session Anchoring Best Practices
- Use "Daily Session" on intraday timeframes (1m to 1h) to see the developing session profile.
- Use "Weekly Session" on 1h to 4h timeframes for a broader institutional view.
- Use fixed "Bars" lookback for custom analysis windows on any timeframe.

Recommended Settings
- Bins: 100 (default) for most assets. Increase to 150-200 for very volatile instruments.
- Value Area: 70% (institutional standard).
- Volume Source: "Proportional Range" for the most accurate distribution.

Settings Reference

| Setting | Default | Description |
|---|---|---|
| Lookback (bars) | 300 | Number of bars to analyze (when Anchor = Bars) |
| Anchor Mode | Bars | Bars / Daily Session / Weekly Session |
| Number of Bins | 100 | Profile resolution (20-200) |
| Price Source | HLC3 | Close / HLC3 / Proportional Range |
| Value Area % | 70 | Volume percentage for VA boundaries |
| Show PoC | On | Toggle Point of Control line and labels |
| Show VAH/VAL | On | Toggle Value Area boundaries |
| Show Heatmap | On | Toggle volume heatmap overlay |
| Cumulative Curves | On | Toggle buy/sell volume curves |
| % Above/Below PoC | On | Toggle percentage distribution boxes |

---

Limitations

- The indicator only renders on the last bar (barstate.islast) and redraws the entire profile in real time. It does not paint historical profiles.
- Volume data depends on the data feed of your broker/exchange. Crypto perpetual contracts may have different volume characteristics than spot markets.
- This is not a trading strategy and does not generate buy/sell signals. It is a visualization tool to support discretionary analysis.
版本注释
Bug Fix: Buy percentage box visibility

- Fixed: Buy % text below PoC was invisible on dark chart themes (text color was black on dark background, now white)
- Fixed: Buy % filled bar was nearly invisible (reduced transparency from 75% to 60% for better contrast)
- Fixed: Buy outer frame border was invisible on dark themes (changed from white to neutral gray)

These changes ensure the Buy/Sell percentage split is clearly readable on both dark and light chart themes.

免责声明

这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。