OBV (On Balance Volume)
Indicator Description
OBV (On Balance Volume) is a volume-based technical indicator that measures the cumulative effect of money flow by accumulating volume on up and down days.
Function Information
- Function Name: OBV
- Input Parameters: #Kline, Volume
- Parameter Settings: None
- Output: OBV value
Calculation Principle
OBV is calculated using the following formula:
If today's closing price > yesterday's closing price:
OBV = yesterday's OBV + today's volume
If today's closing price < yesterday's closing price:
OBV = yesterday's OBV - today's volume
If today's closing price = yesterday's closing price:
OBV = yesterday's OBV
Usage Scenarios
- Money flow analysis
- Trend confirmation
- Divergence analysis
- Support and resistance level judgment
Usage Recommendations
- Rising OBV indicates increasing money inflow
- Falling OBV indicates increasing money outflow
- Watch for divergence between price and OBV
- Use in conjunction with other indicators