The talib.HT_PHASOR()
function is used to calculate the Hilbert Transform - Phasor Components (Hilbert Transform, Phase Components).
The return value of the talib.HT_PHASOR()
function is a two-dimensional array.
array
talib.HT_PHASOR(inReal)
The inReal
parameter is used to specify the K-line data.
inReal
true
{@struct/Record Record} structure arrays, numeric arrays
function main() {
var records = exchange.GetRecords()
var ret = talib.HT_PHASOR(records)
Log(ret)
}
import talib
def main():
records = exchange.GetRecords()
ret = talib.HT_PHASOR(records.Close)
Log(ret)
void main() {
auto records = exchange.GetRecords();
auto ret = talib.HT_PHASOR(records);
Log(ret);
}
The HT_PHASOR()
function is described in the talib library documentation as: HT_PHASOR(Records[Close]) = [Array(outInPhase),Array(outQuadrature)]