Skip to main content

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, it returns false.

You can use this variable in the conditions, which are based on different timeframes.

Type

Boolean

Syntax Format

sma_length = 14 

if timeframe.is_daily()
sma_length = 45