True when the chart's timeframe is measured in ticks, with one bar per fixed number of trades.
timeframe.isticks is true on a tick chart, where each bar holds a fixed count of trades instead of a span of time. It is false on all time-based charts. It is a simple bool.
Tick bars have no fixed length in seconds, so time-based helpers such as timeframe.in_seconds() are not meaningful there. Test this flag first when a script has to run on tick charts.
Type
simple bool
Remarks
timeframe.isintradayis also true on a tick chart.- On Sidechair: always false, since the chart is time-based.
Example
//@version=6
indicator("Chart kind", overlay = true)
plot(close, "Close", color.gray)
if barstate.islast
kind = timeframe.isticks ? "Tick chart" : "Time chart"
label.new(bar_index, high, kind, style = label.style_label_down)See also
Runs on Sidechair