Close
Returns the closing price for a specific bar.
Syntax
Close(shift: number): numberParameters
shift: A number representing the shift from the current bar
Return Value
Returns a number representing the closing price of the specified bar.
Description
The Close method returns the closing price of a bar at the specified shift from the current bar. The shift parameter determines which bar's closing price to return:
0: Current bar
1: Previous bar
2: Two bars ago
And so on
Example
Last updated