OPEN-SOURCE SCRIPT
已更新 CVD Flow Engine

CVD Flow Engine
CVD Flow Engine is an advanced order-flow analysis framework that combines Cumulative Volume Delta (CVD), structural flow analysis, retention-style candles, trend detection, strength signals, and divergences into a single indicator.
Unlike traditional CVD indicators that focus only on cumulative delta, CVD Flow Engine attempts to classify the quality and persistence of buying and selling pressure by analyzing both trend and structure.
Key Features
• CVD Profiles
Builds a profile from cumulative delta activity, allowing traders to identify areas where buying and selling pressure have accumulated over time.
• Retention-Style CVD Candles
Transforms CVD Balance, CVD Delta, or CVD Acceleration into candle structures where each candle opens from the previous value. This provides a clearer visualization of participation and flow persistence than a traditional line plot.
• Structural Flow Analysis
Instead of relying solely on EMA position, the engine evaluates whether order flow is improving or deteriorating through market structure.
The candle coloring system identifies:
* Strong Bull Flow: CVD above trend and maintaining bullish momentum.
* Bullish Recovery: CVD remains below trend but begins producing Higher Highs and Higher Lows, indicating improving participation.
* Strong Bear Flow: CVD below trend and maintaining bearish momentum.
* Bearish Weakness: CVD remains above trend but begins producing Lower Highs and Lower Lows, suggesting deterioration in buying pressure.
This allows traders to identify improving flow conditions before traditional trend filters react.
• Dynamic Trend Engine
A CVD EMA is used to classify the prevailing order-flow regime. EMA slope analysis helps distinguish bullish, bearish, and transitional environments.
• Strong Bull / Strong Bear Signals
The indicator identifies periods where trend, momentum, and flow retention align. Compact markers highlight these states without cluttering the chart.
• Divergence Detection
Bullish and bearish divergences compare price structure against order-flow structure.
Bullish Divergence:
* Price makes a Lower Low.
* CVD makes a Higher Low.
Bearish Divergence:
* Price makes a Higher High.
* CVD makes a Lower High.
These conditions may indicate weakening participation behind the current move.
How To Use
Bullish Environment:
* Retention candles are predominantly green.
* Higher High and Higher Low structures continue to form.
* Strong Bull signals appear.
* Bullish divergences can identify pullback opportunities.
Bearish Environment:
* Retention candles transition into bearish structure.
* Lower High and Lower Low sequences develop.
* Strong Bear signals appear.
* Bearish divergences can identify weakening rallies.
Transition Environment:
* EMA slope flattens.
* Structure begins shifting before trend confirmation.
* Recovery or deterioration states emerge.
* Divergences become more frequent.
The objective of CVD Flow Engine is not to predict future price movement but to provide a structured view of whether order flow is strengthening, weakening, recovering, or deteriorating beneath the surface of price action.
By combining cumulative delta, structural analysis, trend classification, and divergence detection, the indicator helps traders evaluate whether participation is supporting the current market move or signaling a potential transition.
CVD Flow Engine is an advanced order-flow analysis framework that combines Cumulative Volume Delta (CVD), structural flow analysis, retention-style candles, trend detection, strength signals, and divergences into a single indicator.
Unlike traditional CVD indicators that focus only on cumulative delta, CVD Flow Engine attempts to classify the quality and persistence of buying and selling pressure by analyzing both trend and structure.
Key Features
• CVD Profiles
Builds a profile from cumulative delta activity, allowing traders to identify areas where buying and selling pressure have accumulated over time.
• Retention-Style CVD Candles
Transforms CVD Balance, CVD Delta, or CVD Acceleration into candle structures where each candle opens from the previous value. This provides a clearer visualization of participation and flow persistence than a traditional line plot.
• Structural Flow Analysis
Instead of relying solely on EMA position, the engine evaluates whether order flow is improving or deteriorating through market structure.
The candle coloring system identifies:
* Strong Bull Flow: CVD above trend and maintaining bullish momentum.
* Bullish Recovery: CVD remains below trend but begins producing Higher Highs and Higher Lows, indicating improving participation.
* Strong Bear Flow: CVD below trend and maintaining bearish momentum.
* Bearish Weakness: CVD remains above trend but begins producing Lower Highs and Lower Lows, suggesting deterioration in buying pressure.
This allows traders to identify improving flow conditions before traditional trend filters react.
• Dynamic Trend Engine
A CVD EMA is used to classify the prevailing order-flow regime. EMA slope analysis helps distinguish bullish, bearish, and transitional environments.
• Strong Bull / Strong Bear Signals
The indicator identifies periods where trend, momentum, and flow retention align. Compact markers highlight these states without cluttering the chart.
• Divergence Detection
Bullish and bearish divergences compare price structure against order-flow structure.
Bullish Divergence:
* Price makes a Lower Low.
* CVD makes a Higher Low.
Bearish Divergence:
* Price makes a Higher High.
* CVD makes a Lower High.
These conditions may indicate weakening participation behind the current move.
How To Use
Bullish Environment:
* Retention candles are predominantly green.
* Higher High and Higher Low structures continue to form.
* Strong Bull signals appear.
* Bullish divergences can identify pullback opportunities.
Bearish Environment:
* Retention candles transition into bearish structure.
* Lower High and Lower Low sequences develop.
* Strong Bear signals appear.
* Bearish divergences can identify weakening rallies.
Transition Environment:
* EMA slope flattens.
* Structure begins shifting before trend confirmation.
* Recovery or deterioration states emerge.
* Divergences become more frequent.
The objective of CVD Flow Engine is not to predict future price movement but to provide a structured view of whether order flow is strengthening, weakening, recovering, or deteriorating beneath the surface of price action.
By combining cumulative delta, structural analysis, trend classification, and divergence detection, the indicator helps traders evaluate whether participation is supporting the current market move or signaling a potential transition.
版本注释
u开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。