MININDEX
MININDEX
Summary
Returns the absolute index of the lowest value within a rolling window of the given period. Same scan as MIN but outputs the position of the minimum rather than its value.
Formula
outInteger[t] = argmin_{t-period+1 <= i <= t} inReal[i] (absolute index into inReal)
Notes
- When several bars in a window share the lowest value, which bar's index is returned is not guaranteed to be a specific one of the tied bars.
Inputs
inReal— Series to scan for its minimum
Outputs
outInteger— Absolute index in inReal of the lowest value in each window
Parameters
| Parameter | Type | Default | Accepted values | Description |
|---|---|---|---|---|
optInTimePeriod | integer | 30 | 2–100000 | Window length over which the minimum is located |
Properties
Numerical Stability: Start-Independent
| Display Flags |
|---|
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ☐ Candlestick |
Implementation
TA-Lib Definition: minindex.c · minindex.yaml
| Native | File |
|---|---|
| C | ta_MININDEX.c |
| Rust | minindex.rs |
| Java | Core_MININDEX.java |
TA-Lib is also available for Python, R and more using a wrapper.
Aliases
Index of Lowest Value, Lowest Value Index, Rolling Argmin
See Also
MIN · MAXINDEX · MINMAXINDEX · MINMAX