OPEN-SOURCE SCRIPT

CVD Daily High/Low Breakout Strategy

325
This script implements a breakout-based approach using Cumulative Volume Delta (CVD) alongside price action, designed for educational and analytical purposes on TradingView charts. It plots CVD as a candle chart and draws horizontal lines for session highs and lows in CVD and price, which are used to identify potential breakout points. Entries are triggered when both CVD and price break these levels, confirmed by swing patterns, EMA alignment, and multi-timeframe Supertrend direction. Exits are managed with a user-defined risk-reward ratio and stop-loss based on recent swings.
Key Components:

CVD Calculation: Utilizes TradingView's ta.requestVolumeDelta to approximate volume delta from lower timeframes, plotted as candles for visual analysis.
Session Management: Starts a new session at a user-specified UTC time (default 22:00), tracking highs/lows in CVD and price until an EMA cross ends the session.
Breakout Logic: Requires dual confirmation (CVD and price breakout) with a delta proportion check to filter outliers.
Filters: Incorporates swing high/low detection with candlestick patterns (e.g., hammers, engulfing) for stop placement, and Supertrend on two higher timeframes (default H1 and H4) for trend alignment.
Table Display: Shows Supertrend trends from the selected timeframes in a top-right table for quick reference.

Inputs:

Anchor Period: Timeframe for CVD reset (default "1D").
EMA Length: Period for the EMA used in session ending (default 200).
Start Time (UTC): Hour and minute to begin daily sessions (default 22:00).
Pivot Length: Bars for swing detection (default 5).
Risk Reward Ratio: Multiplier for take-profit relative to stop-loss (default 1.0).
Supertrend Settings: Source (close), ATR period (10), multiplier (3.0), and two timeframes (60m, 240m).
Line Colors/Width: Customizable for high/low CVD lines.

This script is intended solely for informational and educational use to explore volume delta and breakout concepts. It does not constitute financial, investment, trading, or any other type of advice or recommendation. Past performance, including any backtest results, is not indicative of future results, and trading involves substantial risks, including the potential for significant losses. Users should conduct their own research, consult qualified financial professionals, and consider their individual financial situation before making any trading decisions. TradingView does not endorse this script or its content, and neither the author nor TradingView is liable for any losses incurred from its use. All trading activities are at your own risk.

Penafian

Maklumat dan penerbitan adalah tidak dimaksudkan untuk menjadi, dan tidak membentuk, nasihat untuk kewangan, pelaburan, perdagangan dan jenis-jenis lain atau cadangan yang dibekalkan atau disahkan oleh TradingView. Baca dengan lebih lanjut di Terma Penggunaan.