The resource loading... loading...

talib.MINMAX

The talib.MINMAX() function is used to calculate the lowest and highest (minimum and maximum) values for the specified period.

The return value of the talib.MINMAX() function is a two-dimensional array. The first element of this two-dimensional array is the array of minimum values, and the second element is the array of maximum values. array

talib.MINMAX(inReal) talib.MINMAX(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.MINMAX(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.MINMAX(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.MINMAX(records);
    Log(ret);
}

The MINMAX() function is described in the talib library documentation as: MINMAX(Records[Close],Time Period = 30) = [Array(outMin),Array(outMax)]

talib.MININDEX talib.MINMAXINDEX