Type/to search
Built-in Functions
Global
Log
Market
Trade
Account
Futures
Exchange
IO
Network
Storage
Threads
TA
Talib
Overlap Studies
Momentum Indicators
Volume Indicators
Volatility Indicators
Cycle Indicators
talib.HT_DCPERIOD
talib.HT_DCPHASE
talib.HT_PHASOR
talib.HT_SINE
talib.HT_TRENDMODE
Price Transform
Statistic Functions
Math Transform
Math Operators
Pattern Recognition
OS
Structures
Built-in Variables and Constants
Conventions
Exchanges

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

TypeDescription

numeric array

Indicator values, the same length as the input; the leading values without enough data are NaN.

Arguments

NameTypeRequiredDescription

inReal

Record array / numeric array

Yes

K-line array (close prices are used) or numeric array; in Python, pass a numeric array such as records.Close.

See Also

Remarks

TA-Lib equivalent: HT_DCPERIOD(Records[Close]) = Array(outReal).