Lipi Reference Lipi

Functions

talib.falling()

Test if the source series is now falling for length bars long.

Syntax

                talib.falling(series float source, series int length) → series bool
              

Arguments

source required series float Series of values to process.
length required series int Number of bars (length).

Return Type

series bool

Example


          indicator("Falling Example", overlay=true)
// Define input source and period
src = close
length = 5
// Compute falling condition
is_falling = talib.falling(src, length)
// Plot background color if falling
bgcolor(is_falling ? color.red : na)