Sidechair

timeframe.isdwm

Browse the reference

True when the chart's timeframe is a day or longer: daily, weekly or monthly.

Try it in the editor

timeframe.isdwm is true on daily, weekly and monthly charts, and false on seconds, ticks and minutes charts. It is a simple bool.

It is a shortcut for timeframe.isdaily or timeframe.isweekly or timeframe.ismonthly. Use it to switch off session and time-of-day logic, which has no meaning once a bar covers a whole day.

Type

simple bool

Remarks

Example

Pine ScriptLength by chart sizeOpen in editor
//@version=6
indicator("Daily and above", overlay = true)
len = timeframe.isdwm ? 10 : 50
plot(close, "Close", color.gray)
plot(ta.ema(close, len), "EMA", color.blue, 2)

See also

Runs on Sidechair