Close value for the barsAgo. 0 = current bar. Same as value(barsAgo) and Last(barsAgo)
Declaration Syntax
Parameters
- barsAgo (Int32)
- Number of bars ago to return the close value
Return Value
Returns the Close 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
CopyVB.NET
plot = price.close(0) ' return the current close value