Language version: 2 · Reference version: 2.7 · Date: 2026-10-25 · Compiler build: df7b3b14 · Namespace: interval · Entries: 11
interval.interval (variable)
Definition
The interval the chart is drawn on, as a string.
Every name in this namespace is simple, so the answer is the same on the first bar and on the last.
Type
simple string
Example
interval.isdaily (variable)
Definition
True when the interval is daily.
Type
simple bool
Example
interval.iseod (variable)
Definition
True when the interval is an end-of-day interval: a day, a week or a month.
It is true whenever interval.isdaily, interval.isweekly or interval.ismonthly is true, so it is wider than interval.isdaily, which is true for day intervals only.
Type
simple bool
Example
interval.ishourly (variable)
Definition
True when the interval is hourly.
Type
simple bool
Example
interval.isintraday (variable)
Definition
True when the chart’s interval is intraday.
Eight of these booleans exist, one per kind of interval, and all eight are simple rather than series.
Type
simple bool
Example
interval.isminutes (variable)
Definition
True when the interval is measured in minutes.
It is narrower than interval.isintraday: both can hold at once, so test the one that matches the question you are asking.
Type
simple bool
Example
interval.ismonthly (variable)
Definition
True when the interval is monthly.
Together with interval.isweekly and interval.isdaily it covers the intervals a script cannot treat as intraday.
Type
simple bool
Example
interval.isseconds (variable)
Definition
True when the chart’s interval is measured in seconds.
Type
simple bool
Example
interval.isweekly (variable)
Definition
True when the interval is weekly.
Type
simple bool
Example
interval.multiplier (variable)
Definition
The multiplier of the chart’s interval, as a whole number.
Read it alongside interval.interval when you need the size of the interval rather than a yes-or-no answer about its kind.
Type
simple int
Example
interval.timeframe_minutes (variable)
Definition
The chart’s interval counted in minutes.
It is the one interval value you can compare arithmetically, which makes it the usual way to write “only on intervals shorter than an hour”.
Type
simple int
Example