Weighted

View as Markdown

Definition

A collection of historical bar weighted prices. Weighted price = (High + Low + Close + Close) / 4.

Property Value

An ISeries<double> type object. Accessing this property via an index value [int barsAgo] returns a double value representing the price of the referenced bar.

Syntax

Weighted

Weighted[int barsAgo]

Examples

1// Current bar weighted price
2double barWeigthedPrice = Weighted[0];
3
4// Weighted price of 10 bars ago
5double barWeigthedPrice = Weighted[10];
6
7// Current bar value of a 20 period exponential moving average of weighted prices
8double value = EMA(Weighted, 20)[0];