True when the chart's timeframe is measured in months, such as one month or three months.
timeframe.ismonthly is true on a monthly chart and on charts that group several months. It is false on every shorter timeframe. It is a simple bool.
It is the last step of the ladder isseconds, isminutes, isdaily, isweekly, ismonthly. Use timeframe.isdwm when you want to treat all of daily, weekly and monthly alike.
Type
simple bool
Remarks
- Test this flag rather than comparing
timeframe.periodwith a typed string. - On Sidechair: true when a bar is twenty-eight days long or longer.
Example
//@version=6
indicator("Monthly check")
plot(close, "Close", color.gray)
plot(timeframe.ismonthly ? 1 : 0, "Is monthly", color.orange)See also
Runs on Sidechair