falling

Falling trend detection (consecutively decreasing values)

falling(source, length)

Parameters

Name Type Description
source field Data series
length int Number of consecutive decreases required

Formula

falling = source[0] < source[1] < ... < source[length]

Examples

// 3 consecutive lower closes
falling(close, 3);
// volume decreasing for 2 bars
falling(volume, 2);
// RSI falling for 5 bars (weakening momentum)
falling(rsi(close, 14), 5);
// fast EMA falling and price below slow EMA
falling(ema(close, 8), 3) and close < ema(close, 21);

Returns

bool

Range

length must be 2-400

See Also

rising