is_daily
Overview
The is_daily variable is designed to check whether the chart is daily. The variable has the true value in case the chart timeframe is set to daily. Otherwise – the false value.
You can use this variable in the conditions, which are based on different timeframes.
The daily values:
- 1-5-15, etc. minutes;
- 1-5-15, etc. hours.
Type
Boolean
Syntax Format
sma_length = 14
if timeframe.is_daily()
sma_length = 45