OPEN-SOURCE SCRIPT
已更新 SBP Crypto Volume Structure Indicator

SBP Crypto Volume Structure Indicator is a crypto-specific price and volume structure framework designed to organize continuous 24/7 market movement into a developing value region and a confirmed directional signal state.
The indicator is based on the idea that cryptocurrency markets frequently move through alternating phases of value formation, expansion and acceptance. Instead of treating every price movement as an independent trend signal, the framework first estimates where trading activity has been concentrated within a rolling market window. It then evaluates whether price is remaining within that developed area or establishing itself outside it.
The central component is the Value Channel.
For the active rolling window, the script divides the observed price range into multiple price rows. The volume of each completed candle is distributed across the rows covered by that candle. The rows containing the greatest concentration of accumulated volume are then expanded around the dominant area until the required core participation percentage is reached.
This calculation creates an internal upper and lower structural region representing the part of the recent market range where a significant portion of trading activity has taken place.
The Value Channel is derived from this structural region rather than from a fixed percentage of price or a conventional moving-price envelope. Its centre is based on the developing structural range, while its width is related to the distance between the upper and lower structural boundaries. A volatility floor is also applied so the channel does not become unrealistically narrow during temporarily quiet market conditions.
Because cryptocurrency markets trade continuously, abrupt changes can occur when a large candle enters the rolling window or an older high-volume move leaves it. To reduce unnecessary visual jumps, the internal structure does not relocate instantly to every newly calculated level. Instead, the framework allows the structural region and Value Channel to migrate progressively toward the latest calculated values.
The second part of the framework evaluates price acceptance.
A Buy condition is not created simply because price touches or briefly crosses the upper side of the Value Channel. The script examines whether the candle is sufficiently established above the developed value region and whether the candle body shows adequate directional quality.
Similarly, a Sale condition requires meaningful establishment below the lower Value Channel rather than a temporary wick below the region.
The directional qualification process combines several related measurements: short-term versus slower price direction, directional movement balance, recent momentum, distance from the developing centre and the position of price relative to the Value Channel. These measurements are combined internally to determine whether the apparent breakout or continuation is sufficiently supported by current market behaviour.
The signal engine recognizes several related structural situations. These include decisive movement outside the Value Channel, successful interaction with a previously crossed channel boundary and continuation after price has already established itself outside the value region.
These are not separate indicators placed together on the chart. They are stages of one process: volume distribution establishes the structural context, the Value Channel defines the active value region, directional measurements evaluate acceptance, and the final state engine decides whether a Buy or Sale condition is qualified.
The indicator also applies a strict alternating signal sequence. After a Buy has been accepted, another Buy cannot print until a valid Sale condition occurs. After a Sale, another Sale cannot print until a valid Buy occurs. This helps prevent repeated same-direction labels during one continuous movement.
Signals are evaluated on confirmed bars only. The script does not intentionally use future data or negative plot offsets.
The indicator should be used as a structural market-analysis tool rather than as a prediction of future price. Crypto assets can experience rapid volatility, gaps between liquidity conditions, liquidation-driven moves and temporary false breakouts. Users should therefore evaluate the signals together with their own risk management, timeframe selection and broader market context.
The indicator is based on the idea that cryptocurrency markets frequently move through alternating phases of value formation, expansion and acceptance. Instead of treating every price movement as an independent trend signal, the framework first estimates where trading activity has been concentrated within a rolling market window. It then evaluates whether price is remaining within that developed area or establishing itself outside it.
The central component is the Value Channel.
For the active rolling window, the script divides the observed price range into multiple price rows. The volume of each completed candle is distributed across the rows covered by that candle. The rows containing the greatest concentration of accumulated volume are then expanded around the dominant area until the required core participation percentage is reached.
This calculation creates an internal upper and lower structural region representing the part of the recent market range where a significant portion of trading activity has taken place.
The Value Channel is derived from this structural region rather than from a fixed percentage of price or a conventional moving-price envelope. Its centre is based on the developing structural range, while its width is related to the distance between the upper and lower structural boundaries. A volatility floor is also applied so the channel does not become unrealistically narrow during temporarily quiet market conditions.
Because cryptocurrency markets trade continuously, abrupt changes can occur when a large candle enters the rolling window or an older high-volume move leaves it. To reduce unnecessary visual jumps, the internal structure does not relocate instantly to every newly calculated level. Instead, the framework allows the structural region and Value Channel to migrate progressively toward the latest calculated values.
The second part of the framework evaluates price acceptance.
A Buy condition is not created simply because price touches or briefly crosses the upper side of the Value Channel. The script examines whether the candle is sufficiently established above the developed value region and whether the candle body shows adequate directional quality.
Similarly, a Sale condition requires meaningful establishment below the lower Value Channel rather than a temporary wick below the region.
The directional qualification process combines several related measurements: short-term versus slower price direction, directional movement balance, recent momentum, distance from the developing centre and the position of price relative to the Value Channel. These measurements are combined internally to determine whether the apparent breakout or continuation is sufficiently supported by current market behaviour.
The signal engine recognizes several related structural situations. These include decisive movement outside the Value Channel, successful interaction with a previously crossed channel boundary and continuation after price has already established itself outside the value region.
These are not separate indicators placed together on the chart. They are stages of one process: volume distribution establishes the structural context, the Value Channel defines the active value region, directional measurements evaluate acceptance, and the final state engine decides whether a Buy or Sale condition is qualified.
The indicator also applies a strict alternating signal sequence. After a Buy has been accepted, another Buy cannot print until a valid Sale condition occurs. After a Sale, another Sale cannot print until a valid Buy occurs. This helps prevent repeated same-direction labels during one continuous movement.
Signals are evaluated on confirmed bars only. The script does not intentionally use future data or negative plot offsets.
The indicator should be used as a structural market-analysis tool rather than as a prediction of future price. Crypto assets can experience rapid volatility, gaps between liquidity conditions, liquidation-driven moves and temporary false breakouts. Users should therefore evaluate the signals together with their own risk management, timeframe selection and broader market context.
版本注释
SBP Crypto Volume Structure Indicator is an overlay framework designed to interpret cryptocurrency price movement through rolling volume participation, price dispersion, directional acceptance and session-held structural levels. The script is organized around one central concept: a price move becomes more meaningful when it is evaluated relative to where recent trading activity is concentrated and whether participation supports movement away from, back toward, or through that structure.The framework begins with a rolling volume-weighted price centre. This represents the price region around which recent traded volume has been concentrated. Price dispersion around the centre is measured over the selected structure period and normalized with current volatility. The Crypto Profile adjusts this calibration for assets with different volatility characteristics. Automatic mode identifies supported chart symbols, while manual profiles allow the user to select a specific crypto behaviour model.
Participation bias evaluates where completed candles close within their ranges and weights that information by traded volume. Repeated closing pressure toward the upper part of candles produces positive participation bias, while pressure toward the lower part produces negative bias. This is combined with movement of the volume-weighted centre and price displacement from that centre to create a unified directional-evidence state. The same state is used throughout the framework so the displayed components are connected rather than independent studies.
The Dynamic Volume Control Level, or DVCL, is derived from the volume centre and shifted according to participation bias. It therefore acts as a structural control reference rather than a conventional moving average. A volatility-adjusted channel surrounds the DVCL. At the beginning of each chart/exchange daily session, the DVCL and channel levels are fixed and remain horizontal for that session. The channel automatically changes between user-selected bullish and bearish colours according to price position and directional evidence.
Extended Structure Boundaries are calculated farther from the participation centre using dispersion, volatility and crypto-profile calibration. These boundaries are also held horizontally during the active session. They identify extended structural areas where price may encounter rejection. A bullish candidate can therefore be rejected when price reaches the upper structural extreme but closes back below it; the opposite principle applies at the lower boundary.
The optional Value Channel represents the nearer rolling participation region around the volume centre. It is OFF by default to keep the chart clean. When enabled, it shows whether price remains within the principal participation area or has established itself outside it. Its colour follows the same directional framework. It is contextual and is not an independent signal generator.
Directional Strength Ribbon provides a more immediate visual representation of accepted pressure. Its basis uses smoothed price, but ribbon direction also requires agreement from participation, structural displacement and the volume centre. A bullish ribbon requires positive evidence and appropriate price acceptance; a bearish ribbon applies the inverse conditions. The ribbon is intentionally wide and clearly visible so directional phases can be recognized without relying only on signal labels.
Buy and Sale signals arise from three related structural behaviours. The first is acceptance, where price closes beyond the Value Channel and session DVCL zone with sufficient directional evidence and candle efficiency. The second is reclaim behaviour, where price interacts with the DVCL zone and then closes convincingly through it with supportive wick behaviour. The third is a liquidity turn, where price sweeps a recent local extreme, breaks short-term structure in the opposite direction and receives participation confirmation.
Candidates are further checked against session structure, candle location, candle efficiency and participation expansion. If bullish and bearish conditions occur together, directional evidence resolves the conflict. A single state machine then enforces strict alternation: after a Buy, another Buy cannot print until a Sale is accepted; after a Sale, another Sale cannot print until a Buy is accepted. The script does not use an arbitrary fixed candle-gap or cooldown to suppress signals.
Signal calculations use confirmed bars and are plotted without forward offset. Separate TradingView alert conditions are provided for Buy, Sale and Buy or Sale.
For normal use, Automatic Crypto Profile is the practical starting point. Keep the Directional Strength Ribbon, DVCL, DVCL Channel and Extended Structure Boundaries visible to understand the context surrounding signals. Enable the Value Channel only when additional structural detail is required.
A Buy label indicates that bullish acceptance has passed the framework's structural and participation tests; it does not guarantee continued appreciation. A Sale label has the corresponding bearish meaning. Users should observe whether the ribbon supports the signal, whether price remains accepted beyond the DVCL zone, and whether an Extended Structure Boundary is nearby.
The indicator is a market-structure and decision-support framework, not a prediction guarantee. Cryptocurrency liquidity and volatility can change rapidly. Signals should therefore be considered together with timeframe, market conditions and the user's own risk-management process.
版本注释
SBP Crypto Volume Structure Indicator is a Pine Script v6 overlay developed to evaluate cryptocurrency price movement through an integrated relationship between volume participation, rolling price structure, directional pressure, volatility and confirmed price behaviour.The framework is designed as one calculation chain. Its components are not presented as independent signals placed together on the chart. Volume structure establishes the market’s active price region, the No Trade Zone Cloud identifies structural congestion, the Bull and Bear Clouds represent sustained directional conditions, and the Buy/Sale process evaluates whether price has produced sufficient evidence to move away from the prevailing structure.
Crypto Profile
Cryptocurrency instruments behave differently in terms of volatility, participation and price expansion. Bitcoin, Ethereum, major altcoins, smaller high-volatility tokens and gold-backed crypto instruments should not all be evaluated with identical structural distances.
The Crypto Profile adjusts selected internal distances and participation requirements according to the chosen asset category. Automatic mode identifies supported assets from the ticker name. A manual profile can be selected when the automatic classification is unsuitable.
Rolling volume structure
The indicator calculates a rolling volume-weighted price centre over the selected Structure Bars. Price dispersion around this centre is measured and compared with recent volatility so that the structure does not become unrealistically narrow during quiet periods.
Each candle’s closing position within its range is combined with reported volume to estimate directional participation. This participation reading is then combined with:
the slope of the rolling volume centre;
the distance of price from that centre; and
the current volatility environment.
The resulting directional state is used throughout the cloud and signal calculations. It is not displayed as a separate oscillator.
No Trade Zone Cloud
The No Trade Zone Cloud represents the principal structural region surrounding the rolling volume centre. Its width adapts to price dispersion, volatility and the selected Crypto Profile.
Price movement inside or repeatedly around this zone may indicate balance, congestion or incomplete directional acceptance. Movement beyond the zone becomes more meaningful when supported by participation, candle quality and directional structure.
The cloud changes colour according to the prevailing side of the internal structure. It is ON by default but may be hidden from Inputs. Hiding it does not disable its internal contribution to Buy/Sale calculations.
Bull Cloud and Bear Cloud
The Bull Cloud and Bear Cloud provide a wider representation of sustained directional strength.
A smoothed price basis is evaluated together with its slope, volatility-adjusted distance, participation bias and price location relative to the rolling structure. The Bull Cloud appears when positive evidence persists. The Bear Cloud appears when corresponding negative evidence persists.
Short-lived directional changes are filtered before the state is confirmed. The width expands with volatility and price displacement, allowing the cloud to remain visually useful across different crypto instruments.
Buy and Sale signals
Buy and Sale signals can originate from related forms of price behaviour, including:
acceptance beyond the active value structure;
recovery through the internal control region;
liquidity rejection followed by a local price break;
confirmed Bull or Bear Cloud transitions;
confirmed trend-state changes; and
aligned structure, momentum and participation.
A voting process evaluates candle direction, momentum development, cloud state, trend state, wick behaviour and directional participation. When bullish and bearish requests occur together, the side with stronger evidence is selected. When neither side has a clear advantage, no signal is produced.
A Buy is printed only on a bullish candle, and a Sale is printed only on a bearish candle. Signals follow strict alternation: another Buy cannot appear until a valid Sale occurs, and another Sale cannot appear until a valid Buy occurs.
All signals are generated on confirmed candles without forward offset or future-bar information.
Inputs and alerts
Inputs are organized into Crypto Profile, Visibility and Colours. Visibility controls Buy/Sale labels, Bull/Bear Clouds and the No Trade Zone Cloud.
Separate alert conditions are provided for Buy and Sale. A combined Buy-or-Sale alert is also available. When creating an alert, select the indicator and choose the required alert condition.
For publication, use a clean standard-candle chart without unrelated scripts or unexplained drawings. The clouds, No Trade Zone and Buy/Sale labels should remain clearly identifiable.
This indicator is an analytical aid and does not guarantee market direction. Signals should be evaluated with liquidity, timeframe, volatility, position sizing and the trader’s own risk-management process.
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
S B Prasad Trading Ecosystem Email sbptradingecosystem@gmail.com, Mobile no 9903367725
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。
开源脚本
秉承TradingView的精神,该脚本的作者将其开源,以便交易者可以查看和验证其功能。向作者致敬!您可以免费使用该脚本,但请记住,重新发布代码须遵守我们的网站规则。
S B Prasad Trading Ecosystem Email sbptradingecosystem@gmail.com, Mobile no 9903367725
免责声明
这些信息和出版物并非旨在提供,也不构成TradingView提供或认可的任何形式的财务、投资、交易或其他类型的建议或推荐。请阅读使用条款了解更多信息。