Skip to content

IIndicatorsAccessor.VolumeROC

method · IIndicatorsAccessor · cAlgo.API.Internals

DesktopCLICloud

Volume Rate of Change Indicator measures the rate of change of the tick volume.

Overloads

VolumeROC(int periods)

Volume Rate of Change Indicator measures the rate of change of the tick volume.

VolumeROC VolumeROC(int periods)
api.Indicators.VolumeROC(periods: int) -> VolumeROC

Parameters

Name C# type Python type Description
periods int int The period used for the calculation

Returns VolumeROC — The Volume ROC indicator instance.

Examples

var volumeRoc = Indicators.VolumeROC(14);
Print("Volume ROC(14): {0}%", volumeRoc.Result.LastValue);
volumeRoc = api.Indicators.VolumeROC(14)
api.Print(f"Volume ROC(14): {volumeRoc.Result.LastValue}%")

VolumeROC(Bars bars, int periods)

Volume Rate of Change Indicator measures the rate of change of the tick volume.

VolumeROC VolumeROC(Bars bars, int periods)
api.Indicators.VolumeROC(bars: Bars, periods: int) -> VolumeROC

Parameters

Name C# type Python type Description
bars Bars Bars The Bars that will be used by indicator, you can pass another timeframe/symbol bars
periods int int The period used for the calculation

Returns VolumeROC — The Volume ROC indicator instance.

Examples

var dailyBars = MarketData.GetBars(TimeFrame.Daily);
var dailyVolumeRoc = Indicators.VolumeROC(dailyBars, 14);
Print("Daily Volume ROC(14): {0}%", dailyVolumeRoc.Result.LastValue);
dailyBars = api.MarketData.GetBars(TimeFrame.Daily)
dailyVolumeRoc = api.Indicators.VolumeROC(dailyBars, 14)
api.Print(f"Daily Volume ROC(14): {dailyVolumeRoc.Result.LastValue}%")