The talib.MININDEX()
function is used to calculate the lowest value index (minimum value index) for the specified period.
The return value of the talib.MININDEX()
function is: a one-dimensional array.
array
talib.MININDEX(inReal) talib.MININDEX(inReal, optInTimePeriod)
The inReal
parameter is used to specify the K-line data.
inReal
true
{@struct/Record Record} structure arrays, numeric arrays
The optInTimePeriod
parameter is used to set the period, the default value is 30.
optInTimePeriod
false
number
function main() {
var records = exchange.GetRecords()
var ret = talib.MININDEX(records)
Log(ret)
}
import talib
def main():
records = exchange.GetRecords()
ret = talib.MININDEX(records.Close)
Log(ret)
void main() {
auto records = exchange.GetRecords();
auto ret = talib.MININDEX(records);
Log(ret);
}
The MININDEX()
function is described in the talib library documentation as: MININDEX(Records[Close],Time Period = 30) = Array(outInteger)