Cumulative Volume Delta Pivot [forexobroker]

1 997
Cumulative Volume Delta Pivot [forexobroker] builds a running cumulative volume delta (CVD) from tick-rule signed volume, then takes confirmed pivots on BOTH price and the CVD line. When a CVD pivot prints in the same direction as a price pivot within a small window, order flow is confirming the swing (pivot confluence, not divergence). The CVD slope sets the bias and a reclaim-EMA cross times entries.

🔶 ALGORITHM

1. Sign each bar: with "Sign by Close Position" on, sgn = 2*(close-low)/range - 1; off uses the pure tick rule (close vs prior close).
2. CVD accumulates sgn * volume bar by bar.
3. CVD slope = CVD minus an EMA of CVD (CVD Slope EMA); slope > 0 = flow up (+1), slope < 0 = flow down (-1).
4. Confirmed pivots are taken on price (high/low) and on the CVD line with Pivot Length bars each side.
5. Confluence: a CVD pivot low aligning with a recent price-low pivot within the Pivot Align Window = bullish confluence; CVD pivot high with a price-high pivot = bearish confluence.
6. A reclaim EMA times the entry: a confirmed close-cross in the flow-regime direction triggers, optionally requiring fresh pivot confluence (Confluence-Only Mode). Cooldown, bar-close confirmation and a position-lock finalise it.

🔶 SIGNAL LOGIC

- Buy: in-session AND flow regime up AND close crosses over the reclaim EMA AND (Confluence-Only off OR bullish pivot confluence) AND position not already long AND cooldown elapsed AND barstate.isconfirmed.
- Sell: in-session AND flow regime down AND close crosses under the reclaim EMA AND (Confluence-Only off OR bearish pivot confluence) AND position not already short AND cooldown elapsed AND barstate.isconfirmed.
Only fires while the CVD-slope flow regime is non-flat.

🔶 INPUTS

- CVD group: Pivot Length, bars each side to confirm price and CVD pivots (default 5).
- CVD group: Pivot Align Window for pivot confluence (default 6).
- CVD group: CVD Slope EMA defining the order-flow bias (default 21).
- CVD group: Sign by Close Position toggle (close-in-range vs pure tick rule, default on).
- CVD group: ATR Length for the reference table (default 14).
- Signal Logic group: Entry Reclaim EMA whose close-cross times entries (default 9).
- Signal Logic group: Confluence-Only Mode and Cooldown Bars between signals (default 5).
- Filters group: optional session restriction with a configurable window (default off).
- Visual group: dashboard, 3-layer glow, reclaim-EMA plot and buy/sell colors (dashboard default on).

🔶 ALERTS

CVP Buy, CVP Sell, CVP Any Signal, CVP Bull Confluence, CVP Bear Confluence, CVP CVD Pivot Low, CVP CVD Pivot High, CVP EMA Up, CVP EMA Down, CVP Slope Zero, CVP Regime Flip, CVP Any Confluence, CVP Webhook JSON.

🔶 LIMITATIONS

- Pivots confirm only after Pivot Length bars on the right side, so confluence is detected with that inherent lag (not repainting, but delayed).
- Volume-based, so it requires a real volume feed; on forex it falls back to broker tick-volume, which is a proxy only.
- Tick-rule signing is an estimate of order flow, not true bid/ask delta.
- CVD is a running cumulative sum, so absolute values depend on chart history length and warm-up.
- Defaults are tuned for liquid instruments; thin symbols may need a longer slope EMA.

Aviso legal

As informações e publicações não se destinam a ser, e não constituem, conselhos ou recomendações financeiras, de investimento, comerciais ou de outro tipo fornecidos ou endossados pela TradingView. Leia mais nos Termos de Uso.