session
Session information (crypto markets trade 24/7: the session is the UTC day).
#Variables
#session.isfirstbarvariable
true on the first bar of the session (the UTC day).
session.isfirstbar: boolType series bool.
Example
const v = session.isfirstbarSince ChartScript 1
#session.isfirstbar_regularvariable
true on the first bar of the regular session (the UTC day).
session.isfirstbar_regular: boolType series bool.
Example
const v = session.isfirstbar_regularSince ChartScript 1
#session.islastbarvariable
true on the last bar of the session (the UTC day).
session.islastbar: boolType series bool.
Example
const v = session.islastbarSince ChartScript 1
#session.islastbar_regularvariable
true on the last bar of the regular session (the UTC day).
session.islastbar_regular: boolType series bool.
Example
const v = session.islastbar_regularSince ChartScript 1
#session.ismarketvariable
true when the bar is inside the regular session (always true for 24/7 markets).
session.ismarket: boolType series bool.
Example
const v = session.ismarketSince ChartScript 1
#session.ispostmarketvariable
true in the post-market (never for 24/7 markets).
session.ispostmarket: boolType series bool.
Example
const v = session.ispostmarketSince ChartScript 1
#session.ispremarketvariable
true in the pre-market (never for 24/7 markets).
session.ispremarket: boolType series bool.
Example
const v = session.ispremarketSince ChartScript 1
#Constants
| Name | Type | Description |
|---|---|---|
session.extended | string | The extended session (same as regular for 24/7 markets). |
session.regular | string | The regular session. |