Open

Description

Open is a DataSeries of the type DataSeries, in which the historical opening prices are saved.

Parameter

BarsAgo Index Value (see Bars)

Usage

Open
Open[int barsAgo]

More Information

The returned value is dependent upon the property of CalculateOnClosedBar.

Example

// Opening price for the current period
Print(Time[0] + " " + Open[0]);
// Opening price for the bars of 5 periods ago
Print(Time[5] + " " + Open[5]);
// Current value for the SMA 14 that is based on the opening prices (rounded)
Print("SMA(14) calculated using the opening prices: " + Instrument.Round2TickSize(SMA(Open, 14)[0]));

Last updated