Index of lowest value over a specified period (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[i] = index of min(inReal[i-optInTimePeriod+1 .. i])
Notes
- When several bars in a window share the lowest value, the index of the most recent of them is returned.
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
| ☐ Overlap Input |
| ✅ Independent Y-Axis i |
| ☐ Candlestick |
| ☐ Can Output NaN or ±Inf |
| ☐ Identity at Period 1 |
| ☐ Display Shift |
| ☐ Uses Transcendental |
| ☐ Input Must Be Positive |
Implementation
TA-Lib Definition: minindex.c · minindex.yaml
| Native | File |
|---|---|
| C | ta_MININDEX.c |
| Rust | minindex.rs |
| Java | Core_MININDEX.java |
| C# | Core_MININDEX.cs |
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