falling

Falling trend detection (consecutively decreasing values)

falling(source, length)

Parameters

Falling - falling(source, length)

Tests for consecutive decreasing values.

  • source (field): Data series
  • length (int): Number of consecutive decreases required

Formula


Returns TRUE when:
  source[0] < source[1] < source[2] < ... < source[length]

Strict inequality (equal values fail)

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

Boolean: TRUE when consecutively falling

See Also