It is a cumulative indicator meaning that on days where price went up, that day's is added to the cumulative OBV total. If price went down, then that day's is subtracted from the OBV total.
The OBV value is then plotted as a line for easy interpretation. OBV is primarily used to confirm or identify overall price Trends or to anticipate price movements after Divergences.
In addition to OBV, EMA and SMA are included. the is used for Support and Resistances for the OBV. and the is used by its Slope (can be S/R as well).
(The Divergence Must be Confirmed First on the Price Action / Local Low or Local High Confirmation)
Green = Regular Bullish Divergence
Red = Regular Bearish Divergence
Aqua = Hidden Bullish Divergence
Purple = Hidden Bullish Divergence
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.