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


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





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