NinjaScript > Language Reference > Indicator Methods >

Volume Rate of Change (VROC)

Print this Topic Previous pageReturn to chapter overviewNext page


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




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.





Indicator source data (?)


Number of bars used in the calculation


The number of bars for smoothing the signal




// 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.