Looks back within the series for the specified value. A value of 0 represents the most recent value.
Namespace:
RightEdge.CommonAssembly: Common (in Common.dll) Version: 2010.1.0.0 (2010.1.0.0)
Syntax
| C# |
|---|
public override double LookBack( int nBars ) |
| Visual Basic (Declaration) |
|---|
Public Overrides Function LookBack ( _ nBars As Integer _ ) As Double |
| Visual C++ |
|---|
public: virtual double LookBack( int nBars ) override |
Parameters
- nBars
- Type: System..::.Int32
Number of bars to lookback in the series.
Return Value
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.