# VolumeUpDown

#### Description <a href="#description_143" id="description_143"></a>

This indicator is a variation of the volume indicator, with the slight difference that the volume bars are shown in different colors depending on whether the price movement forms an up or down bar. An up (rising) bar shows the volume in green, while a down (falling) bar shows the volume in red. A Doji, where open = close, shows the volume in blue.

#### Usage <a href="#usage_129" id="usage_129"></a>

```csharp
VolumeUpDown()
VolumeUpDown(IDataSeries inSeries)
VolumeUpDown()[int barsAgo]
VolumeUpDown(IDataSeries inSeries)[int barsAgo]
```

#### Return value <a href="#return-value_127" id="return-value_127"></a>

**double**

When using this method with an index (e.g. **VolumeUpDown**()\[**int** barsAgo] ), the value of the indicator will be issued for the referenced bar.

#### Parameter <a href="#parameter_12" id="parameter_12"></a>

inSeries Input data series for the indicator

#### Visualization <a href="#visualization_132" id="visualization_132"></a>

![VolumeUpDown](https://agenatrader.github.io/AgenaIndicator-documentation/media/VolumeUpDown.jpg)

#### Example <a href="#example_123" id="example_123"></a>

```csharp
//Output of the current volume
Print("The current volume is " + VolumeUpDown()[0]);
```
