is_dwm
Overview
The is_dwm
variable is designed to check whether the chart is:
- daily (1D);
- weekly (1W);
- monthly (1M).
The variable has the true
value in case the chart timeframe resolution is set to daily/weekly/monthly
. The variable has the false
value in case the timeframe is less than 1 day.
You can use this variable in the conditions, which are based on different timeframes.
Type
Boolean
Syntax Format
sma_length = 25
if timeframe.is_dwm()
sma_length = 45