The resource loading... loading...

talib.ULTOSC

The talib.ULTOSC() function is used to calculate the Ultimate Oscillator.

The return value of the talib.ULTOSC() function is a one-dimensional array. array

talib.ULTOSC(inPriceHLC) talib.ULTOSC(inPriceHLC, optInTimePeriod1) talib.ULTOSC(inPriceHLC, optInTimePeriod1, optInTimePeriod2) talib.ULTOSC(inPriceHLC, optInTimePeriod1, optInTimePeriod2, optInTimePeriod3)

The inPriceHLC parameter is used to specify the K-line data. inPriceHLC true {@struct/Record Record} structure array The optInTimePeriod1 parameter is used to set the first period, the default value is 7. optInTimePeriod1 false number The optInTimePeriod2 parameter is used to set the second period, the default value is 14. optInTimePeriod2 false number The optInTimePeriod3 parameter is used to set the third period, the default value is 28. optInTimePeriod3 false number

function main() {
    var records = exchange.GetRecords()
    var ret = talib.ULTOSC(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.ULTOSC(records.High, records.Low, records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.ULTOSC(records);
    Log(ret);
}

The ULTOSC() function is described in the talib library documentation as: ULTOSC(Records[High,Low,Close],First Period = 7,Second Period = 14,Third Period = 28) = Array(outReal)

talib.TRIX talib.WILLR