is_monthly
Overview
The is_monthly variable is designed to check whether the chart is monthly. The variable has the true value in case the chart timeframe resolution is set to monthly. Otherwise, it returns false.
You can use this variable in the conditions, which are based on different timeframes.
Type
Boolean
Syntax Format
sma_length = 25
if timeframe.is_monthly()
sma_length = 45