Skip to content

Bars.WeightedPrices

property · Bars · cAlgo.API

DesktopCLICloud

Gets the Weighted prices data (High + Low + 2 * Close) / 4.

Definition

DataSeries WeightedPrices {get;}
api.Bars.WeightedPrices: DataSeries

Returns DataSeries

Examples

Print("Weighted price (H+L+2*C)/4 of the last closed bar: {0}", Bars.WeightedPrices.Last(1));
api.Print(f"Weighted price (H+L+2*C)/4 of the last closed bar: {api.Bars.WeightedPrices.Last(1)}")