Skip to content

IIndicatorsAccessor.PriceVolumeTrend

method · IIndicatorsAccessor · cAlgo.API.Internals

DesktopCLICloud

The Price Volume Trend indicator shows the relationship between price and volume.

Definition

PriceVolumeTrend PriceVolumeTrend(DataSeries source)
api.Indicators.PriceVolumeTrend(source: DataSeries) -> PriceVolumeTrend

Parameters

Name C# type Python type Description
source DataSeries DataSeries The price source data used for the calculation.

Returns PriceVolumeTrend — Price Volume Trend indicator instance

Examples

var priceVolumeTrend = Indicators.PriceVolumeTrend(Bars.ClosePrices);
Print("Price Volume Trend: {0}", priceVolumeTrend.Result.LastValue);
priceVolumeTrend = api.Indicators.PriceVolumeTrend(api.Bars.ClosePrices)
api.Print(f"Price Volume Trend: {priceVolumeTrend.Result.LastValue}")