Min

Windowed · default period 20Statistics

The Min node returns the lowest value among all non-null values in the rolling window — equivalent to a rolling lowest price or rolling trough. Used in Donchian channel lower bands, rolling support identification, and any condition that needs to know the lowest value reached within a lookback period.

Algorithm

  • output = min(non-null values in window)
  • Returns null if no non-null values exist in window

Parameters

NameTypeDefaultDescription
periodnumber20Rolling window size (N-bar low).

Inputs & Outputs

PortTypeDescription
Inputs
inputnumber[]Source numeric array
Outputs
valuesnumber | nullComputed value at each bar; null before the warmup period completes
timestampsnumber[]Bar timestamps (UNIX ms), aligned 1-to-1 with values
Live mode: In live streaming mode the node updates only the last bar in-place rather than recalculating the full array, keeping CPU usage minimal during real-time data feeds.

Use Cases

Donchian Channel Lower Band

Connect a price low series with period=20 to get the 20-bar low — the Donchian channel lower band. Breakout below triggers a short entry in turtle trading systems.

Support Level

The rolling minimum of closing prices approximates a dynamic support level — price approaching Min after a rally warns of potential selling pressure.

Oscillator Floor

Apply Min to an RSI or stochastic series to track the rolling floor of the oscillator — comparing current value to Min shows how far above the recent trough the indicator sits.