# On-balance volume

`obv`

Volume added on up closes and taken away on down closes.

## Inputs

| Name | Type | Default | Range |
| --- | --- | --- | --- |
| volume | volume | tick |  |

## Outputs

| Name | Kind |
| --- | --- |
| obv | value |

Warm-up: 0 bars (0 at the defaults).

Repaints: No.

## 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.
