OPEN-SOURCE SCRIPT
Diupdate

Erhirhi BB% Indicator

287
cuplikanErhirhi BB% Indicator

Overview

Erhirhi BB% Indicator is a multi-factor momentum, volatility, and participation oscillator designed to identify statistically stretched market conditions, trend maturity, accumulation/distribution behavior, and momentum exhaustion.

The indicator combines: Bollinger Band %B, percentile ranking, KDJ momentum structure,
normalized volume participation, and adaptive volatility filtering into a single regime-based analytical framework.

Rather than functioning as a traditional overbought/oversold oscillator, the script attempts to measure: trend quality, participation strength, volatility expansion, and reversal probability across multiple market conditions.

The foundation of the script is Bollinger Band Percent (%B), which measures the position of price relative to its Bollinger Band structure.

Values:
below 0 indicate price trading outside the lower band,
above 1 indicate price trading outside the upper band.

This allows the indicator to evaluate:

volatility expansion,
compression,
momentum acceleration,
and statistically stretched movement.

Unlike traditional oscillators, BB %B adapts dynamically to volatility conditions.

Standard Deviation Zones: The script visualizes multiple statistical expansion regions:

1 Standard Deviation Zone - Represents relatively balanced market behavior and normal volatility participation. This is where 68.2 of normal trading occurs

2 Standard Deviation Zone - Represents stronger directional movement and increasing trend conviction. This is where the normal expansion zones are located.

3 Standard Deviation Zone - Represents statistically stretched conditions where continuation quality may begin deteriorating. Price structure in these zone represent a high likelihood of trend exhaustion.

These zones help identify: trend acceleration, instability, exhaustion, and potential transition phases. Extended occupation of upper zones may indicate euphoric expansion or distribution, while persistent lower-zone behavior may indicate panic, compression, or accumulation.

KDJ Momentum Engine: The script incorporates a smoothed KDJ momentum structure to evaluate: directional pressure, momentum persistence, and reversal probability. KDJ behavior is blended with BB %B and percentile calculations to produce adaptive momentum filtering rather than isolated oscillator signals. This allows the indicator to better distinguish:

genuine expansion, weak continuation, and unstable trend behavior.

Percentile Rank Analysis: The indicator uses Percent Rank and Percentile Nearest Rank calculations to contextualize current market behavior relative to historical conditions.

This helps identify: momentum extremes, volatility compression, and statistically unusual participation. Percentile behavior is particularly useful during: trend maturity, exhaustion phases, and reversal development.

FG Score (BB%-KDJ Normalised Score): The FG Score is the primary composite momentum model within the script. It combines:

BB %B positioning, KDJ momentum, percentile range behavior, and normalized volatility relationships into a single adaptive score intended to measure: trend pressure, participation quality, and market stability. The FG Score acts as the core regime filter throughout the indicator. FG Score Below -0.60 represents deeply compressed or statistically washed-out market conditions. These readings often occur during: panic selling, liquidation behavior,
emotional downside acceleration, or exhaustion-driven volatility expansion and frequently reflects elevated reversal probability, instability, and high emotional participation. When combined with improving momentum structure, recovering percentile behavior, or constructive volume participation, these regions may become high-quality accumulation or recovery environments.
FG Score Above 1.24 represents statistically overheated momentum conditions. These readings typically occur during aggressive bullish expansion, euphoric continuation, volatility acceleration or crowded directional participation. While strong momentum may still persist, conditions above 1.24 often signal increasing fragility, weakening continuation quality,
distribution behavior or elevated exhaustion risk.

These regions should not automatically be interpreted as reversal signals, but rather as high risk areas where trend sustainability may begin deteriorating.

Volume Normalization: The volume engine is one of the most important confirmation layers in the script. Instead of displaying raw exchange volume, the indicator normalizes volume relative to recent participation and weights it using candle body strength versus total range. This creates a contextual measure of participation quality rather than simple activity. The objective is to distinguish between:

constructive participation, passive continuation, aggressive expansion, weakening momentum,
and exhaustion-driven movement. The histogram colors reflect the relationship between:
momentum structure, percentile positioning, BB %B expansion, and participation quality.

White bar = excessively high volume input

Green Bars = constructive bullish participation. Bulls are stronger than bears. These typically appear when momentum strengthens, KDJ structure improves, and percentile rank confirms bullish continuation. This behavior often signals trend acceptance, accumulation, or healthy directional continuation.

Red bars indicate deteriorating momentum structure or increasing bearish participation. Clusters of red bars may signal distribution, weakening continuation, or growing downside pressure.

Pure red bars represent aggressive bearish participation and downside volatility expansion.
These conditions frequently occur during liquidation phases, strong directional breakdowns,
or emotionally driven selling.

Black/red bars highlight elevated selling pressure during statistically stretched bullish conditions. These bars often appear near upper expansion zones, during weakening continuation, or before larger reversal structures develop. This behavior may reflect
institutional distribution, profit-taking, or deteriorating trend quality.

Black/yellow bars represent unstable participation conditions. These typically occur when
momentum diverges from price, continuation quality weakens, or volatility expands without strong directional confirmation. These conditions frequently precede exhaustion, failed continuation, or momentum instability. These are the typical areas to buy when the yellow bars disappear and green bars begin to appear above red; indicating that the bulls are beginning to take charge of the trend.

The script visually highlights several market states:

Red Background Zones = Potential distribution, overextension, trend exhaustion, or unstable bullish continuation.

Blue Background Zones = Momentum transition and directional uncertainty.

Green Background Zones = Potential accumulation, recovery structure, and volatility compression.

These zones are intended to provide market context rather than standalone trade signals.

Intended Usage

This indicator is designed as a market structure framework, volatility regime filter, momentum exhaustion detector, and participation quality model.

It works best when combined with price structure, higher timeframe analysis, and disciplined risk management. The script is not intended to predict exact tops or bottoms, but rather to identify: statistically stretched conditions, trend maturity, volatility instability, and changing participation behavior.

Notes
Best suited for trending or volatility-driven markets.
Higher timeframes generally produce cleaner structure.
No indicator should be used in isolation.
Feedback and improvements are always welcome.
Catatan Rilis
Changes have been made to the color coding of the volume bars to be distinguish bullish buying vs bearish activity.

Pernyataan Penyangkalan

Informasi dan publikasi ini tidak dimaksudkan, dan bukan merupakan, saran atau rekomendasi keuangan, investasi, trading, atau jenis lainnya yang diberikan atau didukung oleh TradingView. Baca selengkapnya di Ketentuan Penggunaan.