Sidechair

timeframe.isseconds

Browse the reference

True when the chart's timeframe is measured in seconds, such as 1S or 30S.

Try it in the editor

timeframe.isseconds is true on a seconds chart and false on every other kind. It is a simple bool.

Seconds charts hold many more bars per day than minute charts, so scripts often shorten a lookback or skip heavy work when this flag is true.

Type

simple bool

Remarks

  • timeframe.multiplier is the number of seconds per bar when this is true.
  • On Sidechair: true when a bar is shorter than 60 seconds.

Example

Pine ScriptSeconds flagOpen in editor
//@version=6
indicator("Seconds check")
plot(close, "Close", color.gray)
plot(timeframe.isseconds ? timeframe.multiplier : na, "Seconds per bar", color.orange)

See also

Runs on Sidechair