is_intraday
Overview
The is_intraday variable checks whether the chart is intraday. The variable has the true value if the current timeframe resolution is intraday (less than 1 day). Otherwise, it returns false.
You can use this variable in the conditions, which are based on different timeframes.
Type
Boolean
Syntax Format
sma_length = 45
if timeframe.is_intraday()
sma_length = 14