talib.HT_DCPERIOD
Calculates the Hilbert Transform - Dominant Cycle Period.
talib.HT_DCPERIOD(inReal)Examples
Compute the Hilbert Transform - Dominant Cycle Period from the latest K-lines.
javascript
function main() {
var records = exchange.GetRecords()
if (!records) return
var ret = talib.HT_DCPERIOD(records)
Log(ret)
}
python
import talib
def main():
records = exchange.GetRecords()
if not records:
return
ret = talib.HT_DCPERIOD(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 |
See Also
Remarks
TA-Lib equivalent: HT_DCPERIOD(Records[Close]) = Array(outReal).