NinjaScript > Language Reference > Indicator Methods >

Volume Rate of Change (VROC)

Print this Topic Previous pageReturn to chapter overviewNext page

Description

Volume Rate of Change is identical to Price Rate Of Change (ROC) indicator except that it uses volume instead of price.

 

 

Syntax

VROC(int period, int smooth)
VROC(IDataSeries input, int period, int smooth)

 

Returns default value
VROC(int period, int smooth)[int barsAgo]
VROC(IDataSeries input, int period, int smooth)[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 (?)

period

Number of bars used in the calculation

smooth

The number of bars for smoothing the signal

 

 

Examples

// Prints the current value of VROC
double value = VROC(13, 3)[0];
Print("The current VROC 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.