OPEN-SOURCE SCRIPT

Average of CBO and CBO divergence histogram

Short Description:

This indicator combines a Custom Bias Oscillator (CBO) with its Divergence Histogram and computes their average for use to assess the market's bias based on candlestick analysis, from the aforementioned CBO indicator.

Full Description:

Overview:
This indicator integrates two powerful analytical tools into a single script: a Custom Bias Oscillator (CBO) and its Divergence Histogram. This indicator provides traders with a comprehensive view of market bias and divergence between price movements and volume, enhanced by an optional signal line derived from the combined average of these metrics.

Key Features:

Custom Bias Oscillator (CBO):

The CBO is calculated based on the body and wick biases of candlesticks, normalized by the Average True Range (ATR) to account for market volatility.
The CBO is scaled by the divergence between the Rate of Change (ROC) of volume and the ROC of the adjusted bias, ensuring it reflects potential reversals or continuations in the market.

Divergence Histogram:

The Divergence Histogram is derived from the difference between the CBO and its signal line.
This difference is normalized and plotted to provide visual cues for potential divergences, which may indicate trend exhaustion or the beginning of a new trend.

Combined Average with Signal Line:

The indicator calculates the average of the CBO and the normalized divergence, creating a combined signal that offers a more rounded perspective on market conditions.
A signal line, generated by smoothing the combined average, is plotted to help traders identify potential buy or sell signals based on crossovers.

Customization:

The indicator includes customizable parameters for the periods of the oscillator, signal line, ATR, ROC, and the combined signal line, allowing traders to tailor the indicator to different market conditions and timeframes.

How to Use:

Buy Signal: Consider a long position when the combined average crosses above the signal line, indicating potential bullish momentum.
Sell Signal: Consider a short position when the combined average crosses below the signal line, indicating potential bearish momentum.
Divergence Analysis: Use the Divergence Histogram to identify areas where price movements may be diverging from volume, signaling potential reversals or corrections.

Disclaimer:

This indicator is designed for educational and informational purposes only. It is not financial advice. Always perform your own analysis before making any investment decisions. Past performance is not indicative of future results.
Centered OscillatorsOscillatorsVolume

Open-source script

In true TradingView spirit, the author of this script has published it open-source, so traders can understand and verify it. Cheers to the author! You may use it for free, but reuse of this code in publication is governed by House rules. You can favorite it to use it on a chart.

Want to use this script on a chart?

Disclaimer