---
title: "session"
---

# session

## Properties

### is_first_bar {#is_first_bar}

**Type:** <code>series&nbsp;bool</code>

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

---

### is_first_bar_regular {#is_first_bar_regular}

**Type:** <code>series&nbsp;bool</code>

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

---

### is_last_bar {#is_last_bar}

**Type:** <code>series&nbsp;bool</code>

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

---

### is_last_bar_regular {#is_last_bar_regular}

**Type:** <code>series&nbsp;bool</code>

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

---

### is_market {#is_market}

**Type:** <code>series&nbsp;bool</code>

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

---

### is_postmarket {#is_postmarket}

**Type:** <code>series&nbsp;bool</code>

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

---

### is_premarket {#is_premarket}

**Type:** <code>series&nbsp;bool</code>

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