talib.T3

talib.T3()函数用于计算Triple Exponential Moving Average (T3) (三重指数移动平均)

talib.T3()函数返回一维数组。 array

talib.T3(inReal) talib.T3(inReal, optInTimePeriod) talib.T3(inReal, optInTimePeriod, optInVFactor)

inReal参数用于指定K线数据。 inReal true {@struct/Record Record}结构数组 / 数值数组 optInTimePeriod参数用于设置计算周期,默认值为5。 optInTimePeriod false number optInVFactor参数用于设置成交量因子,默认值为0.7。 optInVFactor false number


function main() {
    var records = exchange.GetRecords()
    var ret = talib.T3(records)
    Log(ret)
}

import talib
def main():
    records = exchange.GetRecords()
    ret = talib.T3(records.Close)
    Log(ret)

void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.T3(records);
    Log(ret);
}

T3()函数在talib库文档中的描述为:T3(Records[Close],Time Period = 5,Volume Factor = 0.7) = Array(outReal)