Docs

ta.falling

Test whether a series has fallen on each of the last n bars.

itm
ta.falling(source, length)

True when the series decreased on each of the last length bars.

Parameters

A series parameter takes a value on every bar. A constant parameter must be known before the first bar, such as a number or an input.

NameKindTypeDefaultRangeDescription
sourceSeriesnumber--The series to read.
lengthConstantnumber-1 to 10000Window in observed bars.

Output

NameType
valuebool

Warm-up and missing values

Warm-up
length + 1 bars. Names in the warm-up are this operator’s parameters.
Missing values
false until length + 1 non-na observations have been seen.

Example

itm
ta.falling(close, 3)
itm
plotshape(ta.falling(close, 3), style=arrowdown, location=abovebar)