talib.MININDEX
Calculates the Index of Lowest Value over a Specified Period.
talib.MININDEX(inReal)
talib.MININDEX(inReal, optInTimePeriod)Examples
Compute the Index of Lowest Value over a Specified Period from the latest K-lines.
javascript
function main() {
var records = exchange.GetRecords()
if (!records) return
var ret = talib.MININDEX(records)
Log(ret)
}
python
import talib
def main():
records = exchange.GetRecords()
if not records:
return
ret = talib.MININDEX(records.Close)
Log(ret)Returns
| Type | Description |
numeric array | Indexes of the lowest value within each period. |
Arguments
| Name | Type | Required | Description |
inReal |
| Yes | K-line array (close prices are used) or numeric array; in Python, pass a numeric array such as |
optInTimePeriod | number | No | Calculation period. Default |
See Also
Remarks
TA-Lib equivalent: MININDEX(Records[Close],Time Period = 30) = Array(outInteger).