talib.T3
计算T3三重指数移动平均线(Triple Exponential Moving Average (T3))。
talib.T3(inReal)
talib.T3(inReal, optInTimePeriod)
talib.T3(inReal, optInTimePeriod, optInVFactor)示例
用最近的K线计算T3三重指数移动平均线。
javascript
function main() {
var records = exchange.GetRecords()
if (!records) return
var ret = talib.T3(records)
Log(ret)
}
python
import talib
def main():
records = exchange.GetRecords()
if not records:
return
ret = talib.T3(records.Close)
Log(ret)返回值
| 类型 | 描述 |
数值数组 | 与输入等长的指标值数组,开头数据不足的部分为 |
参数
| 名称 | 类型 | 必填 | 描述 |
inReal |
| 是 | K线数组(取收盘价)或数值数组;Python中传入 |
optInTimePeriod | number | 否 | 计算周期。默认 |
optInVFactor | number | 否 | 平滑系数(Volume Factor),取值 |
参考
备注
对应TA-Lib:T3(Records[Close],Time Period = 5,Volume Factor = 0.7) = Array(outReal)。