Functions
talib.falling()
Asks the same question as `talib.rising` in the other direction: has `source` been falling across `length` bars? The answer is a bool, not a number.
Syntax
talib.falling(series float source, series int length) → series bool
Arguments
source required series float The series to test. length required series int How many bars the test looks across. 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)