PROTECTED SOURCE SCRIPT

YBL – Tick CVD PRO (CVD + Precio Normalizado + Divergencias)

192
🧠 What is YBL – Tick CVD PRO?

This script builds a tick-style Cumulative Delta (CVD) using regular chart data and places normalized price in the same panel.
On top of that it adds:
• Trend MAs over CVD and Normalized Price
• Automatic bullish/bearish divergences (HH/LL mismatch)
• Key horizontal levels for both CVD & price
• Optional dots & labels and flexible visuals (lines or candles)

The goal is to make it very easy to see when price moves without true flow behind it, and when the move is confirmed by aggressive buyers/sellers.



⚙️ How it works (logic)
1. Cumulative Delta (cumDelta)
• For each bar the script computes a “delta”:
• Default: volume * (close - close[1]) → mixes volume + price change (more sensitive)
• Optional: absolute mode → +vol / -vol by candle direction (classic CVD style)
• Delta is accumulated into cumDelta.
• You can choose to accumulate only inside a session (e.g. 09:30–16:00) and keep it flat outside.
2. Normalized Price Panel
• Price is normalized into the same vertical scale as CVD over a configurable lookback:
• close → [cvMin, cvMax]
• This lets you see price & CVD one on top of the other, making divergences visually obvious.
3. Moving Averages (trend context)
• You can apply WMA / HMA / SMA / EMA / None to:
• CVD (MA CVD)
• Normalized Price (MA PrecioN)
• Color can follow MA type or a basic scheme (price vs CVD).
• If you enable “Thicken if slope +”, rising MAs become visually bolder, so you instantly see trend shifts.
4. Key Levels (lines)
• The script tracks local pivots on both CVD and price and draws horizontal dotted levels:
• High/Low pivots on CVD → aqua/red lines
• High/Low pivots on PriceN → lime/red lines
• These levels help to spot zones where flow previously turned or where price reacted with volume.
5. Divergences (HH/LL)
• Classic Higher High / Lower Low logic between priceNorm and CVD:
• Bearish divergence: price makes HH but CVD fails to make HH or is weaker.
• Bullish divergence: price makes LL but CVD fails to make LL or is stronger.
• When detected, the script plots:
• 🔻 Bear Div above the pivot high
• 🔺 Bull Div below the pivot low
6. Visual modes

• Tipo CVD / Tipo Precio
• Line → classic smooth view with colored fills.
• Candle → mini-candle representation of CVD and normalized price.
• Visual mode: Aesthetic / Efficient
• Aesthetic = more color & fill.
• Efficient = higher transparency / simpler look for busy layouts.

7. Header summary

On the last bar the indicator prints a small text header in the panel:
• Current CVD value + arrow (up/down)
• Current Price (normalized) + arrow

So you see at a glance if price and flow agree or disagree on the last bar.



🔔 Built-in alerts

The script includes ready-to-use alertcondition events:
1. CVD Bull Cross MA
• CVD crosses above its MA.
2. CVD Bear Cross MA
• CVD crosses below its MA.
3. Bearish Divergence
• New HH in normalized price without HH confirmation in CVD.
4. Bullish Divergence
• New LL in normalized price without LL confirmation in CVD.

These can be used to power alerts for flow-confirmed reversals or fake breakouts.



🧩 How to use it in a setup

Some ideas (not financial advice):
• Use Tick CVD PRO as a confirmation / filter for your main entry system:
• Take longs only when price & CVD slopes are aligned up or after a Bullish Divergence.
• Take shorts only when price & CVD slopes are aligned down or after a Bearish Divergence.
• Combine with:
• YBL – SM Vol++ or other order-flow tools for intrabar context
• Your own EMA/Trend bias on the main chart
• Watch how CVD reacts around your key levels (VWAP, session high/low, institutional levels, etc.).



🔧 Recommended settings (starting point)
• Timeframes: works well on intraday futures/indices (1m–15m) and also swing (1H–4H).
• Lookback p/ Normalización: 300 (default) – increase if you want smoother normalization.
• MA CVD / MA Precio: WMA or HMA, length 34.
• Pivot High/Low Len: 5 (default) – increase for fewer but “cleaner” divergences.
• Session:
• For US index futures: 09:30–16:00 exchange time and “Accumulate only in session” if you want a clean RTH CVD.




⚠️ Disclaimer

This script is for educational and informational purposes only.
It is not financial advice and does not guarantee profits.
Always test on replay / paper trading and use your own risk management before trading live.

免责声明

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