Skip to main content

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 – the false value.

The intraday values:

  • 1-5-15, etc. minutes;
  • 1-5-23, etc. hours.

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