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

talib.TRIX

talib.TRIX()函数用于计算1-day Rate-Of-Change (ROC) of a Triple Smooth EMA (三重指数平滑平均线)

talib.TRIX()函数的返回值为:一维数组。 array

talib.TRIX(inReal) talib.TRIX(inReal, optInTimePeriod)

inReal参数用于指定K线数据。 inReal true {@struct/Record Record}结构数组、数值数组 optInTimePeriod参数用于设置周期,默认值为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);
}

TRIX()函数在talib库文档中的描述为:TRIX(Records[Close],Time Period = 30) = Array(outReal)

talib.STOCHRSI talib.ULTOSC