Comment on page
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.
VolumeUpDown(IDataSeries inSeries)[int barsAgo]
When using this method with an index (e.g. VolumeUpDown()[int barsAgo] ), the value of the indicator will be issued for the referenced bar.
inSeries Input data series for the indicator
//Output of the current volume
Print("The current volume is " + VolumeUpDown());