RealCode API
Last Property (barsAgo)
RealCode APIWBI.CommonBlocksRealCodeIndicatorLast[([(Int32])])
The Last value for the offset index. 0 = currentbar. Same as Close, Value.
Declaration Syntax
Visual Basic
Public Overridable ReadOnly Property Last ( _
	barsAgo As Integer _
) As Single
Parameters
barsAgo (Int32)
Number of bars ago to return the Last value
Return Value
Returns the Last bar value for the offset index. 0 = current bar
Remarks
Not used during manual loop calculations
Examples
Example: plot the close for the current bar in a RealCode Indicator. On a daily bar interval it would be the close today.
CopyVB.NET
plot = price.last() ' return the current close value
Example: plot the close 5 bars ago. On a daily bar interval, it would be the close 5 days ago.
CopyVB.NET
plot = price.last(5) ' return the close 5 bars ago
See Also

Assembly: WBI.CommonBlocks (Module: WBI.CommonBlocks) Version: 1.0.25.0 (1.0.0.0)