PROTECTED SOURCE SCRIPT
DELTA PIVOT POINTS with Divergences 2025

DELTA PIVOT POINTS with Divergences 2025- Indicator Description & User Guide
What it is
A volume-aware ZigZag that measures buy/sell delta on each completed leg, prints the metric at the turning point, and draws divergence lines between consecutive pivots (regular & hidden). It works with ticks or aggregated lower timeframes (LTF) and includes clean, minimal labels plus ready-to-use alerts.
What it measures
For every ZigZag leg (from pivot A → pivot B) the script accumulates:
Up volume: sum of volumes on bars where close > open
Down volume: sum where close < open
Delta (ΔV): up - down
Total (V): up + down (neutral bars excluded)
Display mode (select in inputs):
Average Volume Delta/bar → shows summed ΔV of the leg
Average Volume/bar → shows summed V of the leg
Normalised Volume Delta → shows ΔV / V of the leg (as a %)
Tip: Normalised Δ (ΔV/V) is the most comparable across legs of different lengths/volumes.
Key features
ZigZag by pivots with configurable left/right depth.
Delta labels on completed legs (color hints confirmation or mismatch).
Regular divergences:
Bearish: Higher High in price & lower Δ than previous high.
Bullish: Lower Low in price & higher Δ than previous low.
Hidden divergences:
Bearish hidden: Lower High in price & higher Δ than previous high.
Bullish hidden: Higher Low in price & lower Δ than previous low.
Divergence lines (centered labels on the line midpoint).
Alerts for direction flips, delta mismatch, and all divergence types.
Tick or LTF data for intrabar granularity (auto-safe against NaNs).
Inputs (quick reference)

Data
Data from: Ticks / LTF
LTF Resolution: (the res input)
ZigZag
Show ZigZag (toggle)
Left / Right pivot depth
Up/Down Color
ZigZag line width
ZigZag Delta
Show % Bullish Volume (mid-segment ratio label)
Show (enable leg metrics)
Mode: Average Volume Delta/bar, Average Volume/bar, Normalised Volume Delta
Colors for Up/Down confirmations & mismatches
Label size
Divergences
Divergence line width
Colors for Bearish, Bullish
Show Hidden Divergences (toggle)
Colors for Hidden Bearish, Hidden Bullish
Bar data (debug/education)
Show Details
Split/total/Δ per bar toggles
On-chart elements
ZigZag lines: connect successive pivots.
Mid-segment % label: % bullish volume on the active half segment.
Leg metric label at pivot: shows Δ, V or Δ/V for the just-completed leg.
Divergence lines:
Regular: dotted line + “Bull Div” / “Bear Div” label centered on the line.
Hidden: dashed line + “Hidden Bull” / “Hidden Bear” centered on the line.
Alerts (exact names)
ZZ Direction Flip — ZigZag changes direction.
Delta Mismatch — Leg delta opposes the new leg direction.
Bearish Divergence (Highs) — HH with lower Δ vs previous high.
Bullish Divergence (Lows) — LL with higher Δ vs previous low.
Hidden Bearish Divergence — LH with higher Δ vs previous high.
Hidden Bullish Divergence — HL with lower Δ vs previous low.
Set alerts on “Once Per Bar Close” for cleaner signals.
How to use (step-by-step)
Choose data source
Start with LTF aggregation (default). Use Ticks only if your market/feed supports it reliably.
Set ZigZag sensitivity
Increase left (and right if desired) to reduce noise. Smaller values = more swings/signals.
Pick delta mode
Use Normalised Δ (ΔV/V) for cross-leg comparisons and divergences.
Enable divergences
Keep regular + hidden on, then filter in context (see playbook below).
Add alerts
At minimum: “ZZ Direction Flip” + the divergences you care about.
Trading playbook (practical)
Momentum continuation:
Hidden divergences are continuation signals.
Trend up: Higher Low + lower Δ → potential bullish hidden continuation.
Trend down: Lower High + higher Δ → potential bearish hidden continuation.
Reversal scans:
Regular divergences at equal/HH/LL sweeps or into HTF supply/demand:
HH + lower Δ → sellers absorbing → bearish regular.
LL + higher Δ → buyers absorbing → bullish regular.
Confluence to improve quality:
HTF structure (BOS/MSS), liquidity sweeps, OBs/FVGs, session timing.
Use “Delta Mismatch” to fade weak breakouts (trap potential).
Best practices & tips
Prefer Normalised Δ for robustness.
Use HTF first (e.g., 4H/1H) to mark key zones, then refine entries on LTF (5–15m).
Avoid over-sensitivity: if you see too many swings, increase left.
Treat divergences as context, not automatic entries. Wait for confirmation (candle structure, break of minor swing, or your entry model).
Alerts are conditions, not guarantees — combine with risk rules.
Notes & limitations
The ZigZag repaints until a pivot is confirmed (by design). All delta/labels on a leg are placed after the leg closes, so the printed metrics and divergence markings are non-repainting for completed legs.
Tick/LTF availability depends on your data feed and chart symbol.
Neutral bars (close == open) are excluded from Δ and V sums.
FAQ
Q: Why do I sometimes see no delta label on a pivot?
A: The script guards against na/division by zero. If a leg had zero usable volume, the label is suppressed.
Q: Which mode should I pick?
A: Normalised Δ (ΔV/V) for most use-cases; the other modes are helpful for studying raw pressure or extremes.
Q: Can I use this for entries?
A: Use divergences to frame trades. Enter on your preferred trigger (break/retest, candle pattern, micro-structure shift) with proper risk management.
Disclaimer
This script is for educational purposes only and does not constitute financial advice. Trading involves risk; manage your exposure and test thoroughly before live use.
If you want, I can add optional inputs for minimum bars between pivots (noise filter) and a switch to force divergences to always use Normalised Δ regardless of the main display mode.
Notes on best practice: use it with heikin ashi + normalice % delta. Dont use the hidden divergences, don´t work well.
What it is
A volume-aware ZigZag that measures buy/sell delta on each completed leg, prints the metric at the turning point, and draws divergence lines between consecutive pivots (regular & hidden). It works with ticks or aggregated lower timeframes (LTF) and includes clean, minimal labels plus ready-to-use alerts.
What it measures
For every ZigZag leg (from pivot A → pivot B) the script accumulates:
Up volume: sum of volumes on bars where close > open
Down volume: sum where close < open
Delta (ΔV): up - down
Total (V): up + down (neutral bars excluded)
Display mode (select in inputs):
Average Volume Delta/bar → shows summed ΔV of the leg
Average Volume/bar → shows summed V of the leg
Normalised Volume Delta → shows ΔV / V of the leg (as a %)
Tip: Normalised Δ (ΔV/V) is the most comparable across legs of different lengths/volumes.
Key features
ZigZag by pivots with configurable left/right depth.
Delta labels on completed legs (color hints confirmation or mismatch).
Regular divergences:
Bearish: Higher High in price & lower Δ than previous high.
Bullish: Lower Low in price & higher Δ than previous low.
Hidden divergences:
Bearish hidden: Lower High in price & higher Δ than previous high.
Bullish hidden: Higher Low in price & lower Δ than previous low.
Divergence lines (centered labels on the line midpoint).
Alerts for direction flips, delta mismatch, and all divergence types.
Tick or LTF data for intrabar granularity (auto-safe against NaNs).
Inputs (quick reference)

Data
Data from: Ticks / LTF
LTF Resolution: (the res input)
ZigZag
Show ZigZag (toggle)
Left / Right pivot depth
Up/Down Color
ZigZag line width
ZigZag Delta
Show % Bullish Volume (mid-segment ratio label)
Show (enable leg metrics)
Mode: Average Volume Delta/bar, Average Volume/bar, Normalised Volume Delta
Colors for Up/Down confirmations & mismatches
Label size
Divergences
Divergence line width
Colors for Bearish, Bullish
Show Hidden Divergences (toggle)
Colors for Hidden Bearish, Hidden Bullish
Bar data (debug/education)
Show Details
Split/total/Δ per bar toggles
On-chart elements
ZigZag lines: connect successive pivots.
Mid-segment % label: % bullish volume on the active half segment.
Leg metric label at pivot: shows Δ, V or Δ/V for the just-completed leg.
Divergence lines:
Regular: dotted line + “Bull Div” / “Bear Div” label centered on the line.
Hidden: dashed line + “Hidden Bull” / “Hidden Bear” centered on the line.
Alerts (exact names)
ZZ Direction Flip — ZigZag changes direction.
Delta Mismatch — Leg delta opposes the new leg direction.
Bearish Divergence (Highs) — HH with lower Δ vs previous high.
Bullish Divergence (Lows) — LL with higher Δ vs previous low.
Hidden Bearish Divergence — LH with higher Δ vs previous high.
Hidden Bullish Divergence — HL with lower Δ vs previous low.
Set alerts on “Once Per Bar Close” for cleaner signals.
How to use (step-by-step)
Choose data source
Start with LTF aggregation (default). Use Ticks only if your market/feed supports it reliably.
Set ZigZag sensitivity
Increase left (and right if desired) to reduce noise. Smaller values = more swings/signals.
Pick delta mode
Use Normalised Δ (ΔV/V) for cross-leg comparisons and divergences.
Enable divergences
Keep regular + hidden on, then filter in context (see playbook below).
Add alerts
At minimum: “ZZ Direction Flip” + the divergences you care about.
Trading playbook (practical)
Momentum continuation:
Hidden divergences are continuation signals.
Trend up: Higher Low + lower Δ → potential bullish hidden continuation.
Trend down: Lower High + higher Δ → potential bearish hidden continuation.
Reversal scans:
Regular divergences at equal/HH/LL sweeps or into HTF supply/demand:
HH + lower Δ → sellers absorbing → bearish regular.
LL + higher Δ → buyers absorbing → bullish regular.
Confluence to improve quality:
HTF structure (BOS/MSS), liquidity sweeps, OBs/FVGs, session timing.
Use “Delta Mismatch” to fade weak breakouts (trap potential).
Best practices & tips
Prefer Normalised Δ for robustness.
Use HTF first (e.g., 4H/1H) to mark key zones, then refine entries on LTF (5–15m).
Avoid over-sensitivity: if you see too many swings, increase left.
Treat divergences as context, not automatic entries. Wait for confirmation (candle structure, break of minor swing, or your entry model).
Alerts are conditions, not guarantees — combine with risk rules.
Notes & limitations
The ZigZag repaints until a pivot is confirmed (by design). All delta/labels on a leg are placed after the leg closes, so the printed metrics and divergence markings are non-repainting for completed legs.
Tick/LTF availability depends on your data feed and chart symbol.
Neutral bars (close == open) are excluded from Δ and V sums.
FAQ
Q: Why do I sometimes see no delta label on a pivot?
A: The script guards against na/division by zero. If a leg had zero usable volume, the label is suppressed.
Q: Which mode should I pick?
A: Normalised Δ (ΔV/V) for most use-cases; the other modes are helpful for studying raw pressure or extremes.
Q: Can I use this for entries?
A: Use divergences to frame trades. Enter on your preferred trigger (break/retest, candle pattern, micro-structure shift) with proper risk management.
Disclaimer
This script is for educational purposes only and does not constitute financial advice. Trading involves risk; manage your exposure and test thoroughly before live use.
If you want, I can add optional inputs for minimum bars between pivots (noise filter) and a switch to force divergences to always use Normalised Δ regardless of the main display mode.
Notes on best practice: use it with heikin ashi + normalice % delta. Dont use the hidden divergences, don´t work well.
保護スクリプト
このスクリプトのソースコードは非公開で投稿されています。 無料かつ制限なしでご利用いただけます ― 詳細についてはこちらをご覧ください。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。
保護スクリプト
このスクリプトのソースコードは非公開で投稿されています。 無料かつ制限なしでご利用いただけます ― 詳細についてはこちらをご覧ください。
免責事項
これらの情報および投稿は、TradingViewが提供または保証する金融、投資、取引、またはその他の種類のアドバイスや推奨を意図したものではなく、またそのようなものでもありません。詳しくは利用規約をご覧ください。