VolumeUpDown

Description

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

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

Return value

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

inSeries Input data series for the indicator

Visualization

Example

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

Last updated