khosscrypto

[Hoss] OBV RSI

The OBV ( On Balance Volume ) RSI ( Relative Strength Index ) indicator is an innovative tool that combines the power of OBV and RSI to provide traders with a comprehensive view of the market's momentum and volume dynamics. This combination enables users to make better-informed trading decisions by analyzing the relationship between price, volume , and relative strength .

The script starts by calculating the On Balance Volume , which is a cumulative volume-based indicator that measures buying and selling pressure. The OBV increases when the closing price is higher than the previous closing price and decreases when the closing price is lower than the previous closing price. This helps traders identify potential price trend reversals based on volume accumulation or distribution.

Next, the script computes the Relative Strength Index ( RSI ) based on the OBV values, offering a unique perspective on the market's momentum through the lens of volume . The RSI is a popular momentum indicator that ranges from 0 to 100 and helps traders identify overbought and oversold conditions. In this script, the user can define the RSI length and the higher and lower levels (default values are 70 and 30, respectively).

A distinctive feature of this OBV RSI indicator is the addition of a monitor that counts the number of times the RSI crosses above the higher level and below the lower level within a user-defined lookback period. This monitor is displayed as a table in the bottom right corner of the chart and can be enabled or disabled through an input option.

The cross count monitor provides valuable insights into the historical frequency of RSI crossings, helping traders to identify potential trading opportunities based on historical price behavior around these levels.

macro maximalist
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 a publication is governed by House Rules. You can favorite it to use it on a chart.

Disclaimer

The information and publications are not meant to be, and do not constitute, financial, investment, trading, or other types of advice or recommendations supplied or endorsed by TradingView. Read more in the Terms of Use.

Want to use this script on a chart?