True when the chart's timeframe is a day or longer: daily, weekly or monthly.
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
- It is the opposite of
timeframe.isintraday. - On Sidechair: true when a bar is one day long or longer.
Example
//@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