Links

GetSeriesLowestValue

Description

The GetSeriesLowestValue() method attempts to find the lowest bar within a predefined number of periods.

Parameter

period Number of bars that will be searched for the lowest bar
series Every data series, such as close, high, low, etc.

Return Value

int barsAgo How many bars ago the low occurred

Usage

GetSeriesLowestValue(IDataSeries series, int period)

Example

// How many bars ago was the lowest low of the session?
Print(GetSeriesLowestValue(Low, Bars.BarsCountForSession - 1));
// Which price did the lowest open of the current session have?
Print("The lowest open price of the current session was: " + Open[GetSeriesLowestValue(Low, Bars.BarsCountForSession - 1)]);