Skip to main content

is_intrahour

Overview

The is_intrahour variable checks whether the chart is intrahour. The variable has the true value if the current timeframe resolution is intrahour (less than 1 hour). Otherwise – the false value.

The intrahour values:

  • 1-5-15-30, etc. minutes.

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

Type

Boolean

Syntax Format

sma_length = 30

if timeframe.is_intrahour()
sma_length = 20