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