# Falling

`falling`

True after a number of falls in a row.

## Inputs

| Name | Type | Default | Range |
| --- | --- | --- | --- |
| source | source | close |  |
| period | int | 3 | 1 to 500 |

## Outputs

| Name | Kind |
| --- | --- |
| falling | state |

Warm-up: period bars (3 at the defaults).

Repaints: No.

## Formula

True when each of the last period bars is below the bar before it: source[i-period] > ... > source[i-1] > source[i]. An equal value or a missing value breaks the run.
