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 - Trend vs Cycle Mode.

talib.HT_TRENDMODE(inReal)

Examples

Compute the Hilbert Transform - Trend vs Cycle Mode from the latest K-lines.

javascript
function main() { var records = exchange.GetRecords() if (!records) return var ret = talib.HT_TRENDMODE(records) Log(ret) }
python
import talib def main(): records = exchange.GetRecords() if not records: return ret = talib.HT_TRENDMODE(records.Close) Log(ret)

Returns

TypeDescription

numeric array

Trend mode values: 1 for trend mode, 0 for cycle mode.

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_TRENDMODE(Records[Close]) = Array(outInteger).