OPEN-SOURCE SCRIPT
CVD Momentum Divergence

1. Introduction
Discover hidden buying/selling pressure before price explodes! The CVD Momentum Divergence indicator compares detrended and normalized price momentum (orange line) against Cumulative Volume Delta momentum (blue line) to reveal when volume flow diverges from price action. These two lines oscillate around zero on the same scale, making hidden strength/weakness crystal clear during market sessions.
2. Key Features
- Dual Detrended Lines: Price momentum (orange) vs CVD momentum (blue) - both normalized [-2/+2 scale]
- CVD-Price Divergence Histogram: Green bars above zero when blue (CVD stronger); Red bars below when orange (CVD weaker)
- Trend-Free Analysis: SMA detrending removes directional bias for pure cycle comparison
- Universal CVD Calculation: Works on any volume symbol
- Fully Customizable: Separate price/CVD lengths + smoothing control
3. How to use
Look for divergences between main chart price movement and the separation (distance) between blue/orange lines - the histogram quantifies this perfectly.
- Large GREEN histogram (above zero) = CVD strength >> price movement = buying delta dominates
- Large RED histogram (below zero) = Price strength >> CVD = selling delta dominates
- Both lines above zero = overall buying momentum. Both below zero = selling momentum
- Price falling BUT blue line stays high → hidden buying → upside likely
- Price rising BUT blue lags → selling pressure building → downside risk
NOTE: This indicator shows momentum divergence only! Always confirm with price action (support/resistance, candle patterns, key levels).
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน
สคริปต์โอเพนซอร์ซ
ด้วยเจตนารมณ์หลักของ TradingView ผู้สร้างสคริปต์นี้ได้ทำให้เป็นโอเพนซอร์ส เพื่อให้เทรดเดอร์สามารถตรวจสอบและยืนยันฟังก์ชันการทำงานของมันได้ ขอชื่นชมผู้เขียน! แม้ว่าคุณจะใช้งานได้ฟรี แต่โปรดจำไว้ว่าการเผยแพร่โค้ดซ้ำจะต้องเป็นไปตาม กฎระเบียบการใช้งาน ของเรา
คำจำกัดสิทธิ์ความรับผิดชอบ
ข้อมูลและบทความไม่ได้มีวัตถุประสงค์เพื่อก่อให้เกิดกิจกรรมทางการเงิน, การลงทุน, การซื้อขาย, ข้อเสนอแนะ หรือคำแนะนำประเภทอื่น ๆ ที่ให้หรือรับรองโดย TradingView อ่านเพิ่มเติมใน ข้อกำหนดการใช้งาน