Open

View as Markdown

Definition

A collection of historical bar opening prices.

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

Open

Open[int barsAgo]

Examples

1//Current bar opening price
2double barOpenPrice = Open[0];
3
4// Opening price of 10 bars ago
5double barOpenPrice = Open[10];
6
7//Current bar value of a 20 period simple moving average of opening prices
8double value = SMA(Open, 20)[0];