资源加载中... loading...

talib.HT_DCPHASE

talib.HT_DCPHASE()函数用于计算Hilbert Transform - Dominant Cycle Phase (希尔伯特变换,主阶段)

talib.HT_DCPHASE()函数的返回值为:一维数组。 array

talib.HT_DCPHASE(inReal)

inReal参数用于指定K线数据。 inReal true {@struct/Record Record}结构数组、数值数组

function main() {
    var records = exchange.GetRecords()
    var ret = talib.HT_DCPHASE(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.HT_DCPHASE(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.HT_DCPHASE(records);
    Log(ret);
}

HT_DCPHASE()函数在talib库文档中的描述为:HT_DCPHASE(Records[Close]) = Array(outReal)

talib.HT_DCPERIOD talib.HT_PHASOR