OPEN-SOURCE SCRIPT

OBV Overbuy+sell by RSU

Updated
On-balance volume (OBV) is a technical trading momentum indicator that uses volume flow to predict changes in stock price. Joseph Granville first developed the OBV metric in the 1963 book Granville's New Key to Stock Market Profits.

This indicator is based on the OBV indicator and adds 2 times the standard deviation Bollinger Band to evaluate the overbought and oversold phenomenon of the OBV indicator.

The characteristics of Bollinger Bands: According to the normal distribution phenomenon, only 5% of the cases will exceed 2 times the standard deviation of the Bollinger Bands. So when it exceeds, I will use colors to mark red overbought and green oversold situations.

Usage:
1.Identify trends: Identify current stock trends by OBV's 30 average line color.

2.Breakthrough:A break below overbuy could signal a temporary end to the uptrend.

3.Oversell and overbuy:A break below overbuy could signal a temporary end to the uptrend.

4.Divergence:When the slope of the two highs is opposite to the slope of the two highs of the indicator, a trend reversal signal may occur.
Release Notes
change:
Added smoothing parameter to reduce sawtooth.

Usage:
1.Identify trends: Identify current stock trends by OBV's 30 average line color.
2.Breakthrough:OBV Breakthrough 30 average,signal trend may reversal.
3.Oversell and overbuy:A break below overbuy could signal a temporary end to the uptrend.
4.Divergence:When the slope of the two highs is opposite to the slope of the two highs of the indicator, a trend reversal signal may occur.
Release Notes
changes:Added 1x Bollinger Bands display, updated colors.
obv_bollingerbandOn Balance Volume (OBV)overbuyoversell

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