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

talib.HT_DCPERIOD

The talib.HT_DCPERIOD() function is used to calculate the Hilbert Transform - Dominant Cycle Period (Hilbert Transform, Dominant Period).

The return value of the talib.HT_DCPERIOD() function is: a one-dimensional array. array

talib.HT_DCPERIOD(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_DCPERIOD(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.HT_DCPERIOD(records.Close)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.HT_DCPERIOD(records);
    Log(ret);
}

The HT_DCPERIOD() function is described in the talib library documentation as: HT_DCPERIOD(Records[Close]) = Array(outReal)

talib.SUM talib.HT_DCPHASE