资源加载中... loading...

talib.TRIX

The talib.TRIX() function is used to calculate the 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA.

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

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

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

talib.STOCHRSI talib.ULTOSC