True when the chart's timeframe is measured in minutes or hours, such as 1, 15 or 240.
timeframe.isminutes is true on every minute-based chart, including hourly ones, since Pine counts hours as minutes. It is false on seconds, daily, weekly and monthly charts. It is a simple bool.
Pair it with timeframe.multiplier to find the exact number of minutes: when isminutes is true, multiplier is the minutes per bar.
Type
simple bool
Remarks
timeframe.isintradayis wider: it also covers seconds charts.- On Sidechair: true when a bar is at least 60 seconds and less than one day long.
Example
//@version=6
indicator("Minute chart check")
mins = timeframe.isminutes ? timeframe.multiplier : na
plot(mins, "Minutes per bar", color.orange, 2)
plot(close, "Close", color.gray)See also
Runs on Sidechair