Built-in Functions
Structures
Built-in Variables and Constants
Conventions
Exchanges
talib.T3
Calculates the Triple Exponential Moving Average (T3).
talib.T3(inReal)
talib.T3(inReal, optInTimePeriod)
talib.T3(inReal, optInTimePeriod, optInVFactor)Examples
Compute the Triple Exponential Moving Average (T3) from the latest K-lines.
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)Returns
| Type | Description |
numeric array | Indicator values, the same length as the input; the leading values without enough data are |
Arguments
| Name | Type | Required | Description |
inReal |
| Yes | K-line array (close prices are used) or numeric array; in Python, pass a numeric array such as |
optInTimePeriod | number | No | Calculation period. Default |
optInVFactor | number | No | Smoothing factor (Volume Factor), between |
See Also
Remarks
TA-Lib equivalent: T3(Records[Close],Time Period = 5,Volume Factor = 0.7) = Array(outReal).