Typical

View as Markdown

Definition

A collection of historical bar typical prices. Typical price = (High + Low + Close) / 3.

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

Typical

Typical[int barsAgo]

Examples

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