Volume Up Down

View as Markdown

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(ISeries\<double\> input)

Returns default value

VolumeUpDown()[int barsAgo]

VolumeUpDown(ISeries\<double\> input](int barsAgo)

Return Value

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

Parameters

ParameterDescription
inputIndicator source data (Series<T>)
periodNumber of bars used in the calculation

Example

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

Source Code

You can view this indicator method source code by selecting the menu New > NinjaScript Editor > Indicators within the NinjaTrader Control Center window.