On-balance volume
Volume added on up closes and taken away on down closes.
Inputs
| Name | Type | Default |
|---|---|---|
| volume | volume | tick |
Outputs
| Name | Type | Required | Description |
|---|---|---|---|
| obv | value | Optional | color theme.accent, style line, width 1 |
- Warm-up
- 0 bars (0 at the defaults)
- Repaints
- No
- Parity
- TA-Lib, within 1e-9
Formula
A running total of volume, added on an up close and taken away on a down close, starting with the first bar's volume
It depends on where the data starts.