talib.HT_PHASOR
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
| Type | Description |
array | Two-dimensional array: [in-phase component array, quadrature component array] (a tuple in the same order in Python). |
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_PHASOR(Records[Close]) = [Array(outInPhase),Array(outQuadrature)].