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 – the false
value.
You can use this variable in the conditions, which are based on different timeframes.
The monthly values:
- 1 hour, etc.;
- 1 day, etc.;
- 1 week, etc.
Type
Boolean
Syntax Format
sma_length = 25
if timeframe.is_monthly()
sma_length = 45