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)

Syntax

C#
public abstract double LookBack(
	int nBars
)
Visual Basic
Public MustOverride Function LookBack ( 
	nBars As Integer
) As Double
Visual C++
public:
virtual double LookBack(
	int nBars
) abstract
F#
abstract LookBack : 
        nBars : int -> float 

Parameters

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

Return Value

Type: Double
The value contained at the specified index.

Implements

ISeries..::..LookBack(Int32)

Remarks

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