Min
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
| Name | Type | Default | Description |
|---|---|---|---|
| period | number | 20 | Rolling window size (N-bar low). |
Inputs & Outputs
| Port | Type | Description |
|---|---|---|
| Inputs | ||
| input | number[] | Source numeric array |
| Outputs | ||
| values | number | null | Computed value at each bar; null before the warmup period completes |
| timestamps | number[] | Bar timestamps (UNIX ms), aligned 1-to-1 with values |
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.