Skip to content

session

Properties

is_first_bar

Type: series bool

Returns true if the current bar is the first bar of the day's session, false otherwise.


is_first_bar_regular

Type: series bool

Returns true on the first regular session bar of the day, false otherwise.


is_last_bar

Type: series bool

Returns true if the current bar is the last bar of the day's session, false otherwise.


is_last_bar_regular

Type: series bool

Returns true on the last regular session bar of the day, false otherwise.


ismarket

Type: series bool

Returns true if the current bar is a part of the regular trading hours (i.e. market hours), false otherwise.


ispostmarket

Type: series bool

Returns true if the current bar is a part of the post-market, false otherwise.


ispremarket

Type: series bool

Returns true if the current bar is a part of the pre-market, false otherwise.

Released under the MIT License.