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
optInTimePeriod— Window length over which the minimum is located
Implementation
TA-Lib Definition: minindex.c · minindex.yaml
| Native | File |
|---|---|
| C | ta_MININDEX.c |
| Rust | minindex.rs |
| Java | Core.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