Skip to main content

is_weekly

Overview

The is_weekly variable is designed to check whether the chart is weekly. The variable has the true value in case the chart timeframe resolution is set to weekly. Otherwise – the false value.

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

Type

Boolean

Syntax Format

sma_length = 14 

if timeframe.is_weekly()
sma_length = 25