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