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 - Phasor Components and returns the in-phase component and quadrature component.

talib.HT_PHASOR(inReal)

Examples

Compute the Hilbert Transform - Phasor Components from the latest K-lines.

javascript
function main() { var records = exchange.GetRecords() if (!records) return var ret = talib.HT_PHASOR(records) // Output: [in-phase component array, quadrature component array] Log(ret) }
python
import talib def main(): records = exchange.GetRecords() if not records: return ret = talib.HT_PHASOR(records.Close) # Output: (in-phase component array, quadrature component array) Log(ret)

Returns

TypeDescription

array

Two-dimensional array: [in-phase component array, quadrature component array] (a tuple in the same order in Python).

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_PHASOR(Records[Close]) = [Array(outInPhase),Array(outQuadrature)].