NinjaScript > Language Reference > Indicator Methods >

Volume Up Down

Print this Topic Previous pageReturn to chapter overviewNext page

Description

Variation of the VOL (Volume) indicator that colors the volume histogram different color depending if the current bar is up or down bar.

 

 

Syntax

VolumeUpDown()
VolumeUpDown(IDataSeries input)

 

Returns default value
VolumeUpDown()[int barsAgo]
VolumeUpDown(IDataSeries input)[int barsAgo]

 

 

Return Value

double; Accessing this method via an index value [int barsAgo] returns the indicator value of the referenced bar.

 

 

Parameters

input

Indicator source data (?)

 

 

Examples

// Prints the current value VolumeUpDown
int value = VolumeUpDown()[0];
Print("The current Volume value is " + value.ToString());

 

 

Source Code

You can view this indicator method source code by selecting the menu Tools > Edit NinjaScript > Indicator within the NinjaTrader Control Center window.