Close
Previous Topic  Next Topic 

Definition

A collection of historical bar closing prices.


Property Value

A data series type object that implements the IDataSeries interface.


Syntax


Close
Close[int barsAgo]


Examples

// Current bar closing price
double barClosePrice = Close[0];

// Closing price of 10 bars ago
double barClosePrice = Close[10];

// Current bar value of a 20 period simple moving average of closing prices
double value = SMA(Close, 20)[0];