Volume Rate of Change (VROC)

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Common > System Indicator Methods >

Volume Rate of Change (VROC)

Previous page Return to chapter overview Next 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(ISeries<double> input, int period, int smooth)

 

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

 

 

Example

ns


// 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 New > NinjaScript Editor > Indicators within the NinjaTrader Control Center window.