Skip to content

PriceVolumeTrend.Result

property · PriceVolumeTrend · cAlgo.API.Indicators

DesktopCLICloud

Gets or sets the time series of the Price Volume Trend indicator.

Definition

IndicatorDataSeries Result {get; set;}
priceVolumeTrend.Result: IndicatorDataSeries

Returns IndicatorDataSeries

Examples

private PriceVolumeTrend _priceVolumeTrend;

protected override void OnStart()
{
    _priceVolumeTrend = Indicators.PriceVolumeTrend(Bars.ClosePrices);
}

protected override void OnBar()
{
    var currentValue = _priceVolumeTrend.Result.Last(1);
    Print("Price Volume Trend: {0}", currentValue);
}
def on_start(self):
    self.priceVolumeTrend = api.Indicators.PriceVolumeTrend(api.Bars.ClosePrices)

def on_bar(self):
    currentValue = self.priceVolumeTrend.Result.Last(1)
    api.Print(f"Price Volume Trend: {currentValue}")