Looks back within the series for the specified value. A value of 0 represents the most recent value.

Namespace: RightEdge.Common
Assembly: Common (in Common.dll) Version: 2010.1.0.0 (2010.1.0.0)


double LookBack(
	int nBars
Visual Basic
Function LookBack ( 
	nBars As Integer
) As Double
Visual C++
double LookBack(
	int nBars
abstract LookBack : 
        nBars : int -> float 


Type: System..::..Int32
Number of bars to lookback in the series.

Return Value

Type: Double
The value contained at the specified index.


A series is a collection of values. The values within series can be referenced using the Lookback method. Use 0 to get the most recent value in the series. To reference values further back in time, pass a value greater than 0. For example, if the series is created against daily bars, to reference yesterday's value use Lookback(1). To reference the day before yesterday, use Lookback(2) and so on. Use the Count method to determine how many values are contained within the series.

See Also