The talib.HT_DCPHASE()
function is used to calculate the Hilbert Transform - Dominant Cycle Phase (Hilbert Transform, Dominant Cycle Phase).
The return value of the talib.HT_DCPHASE()
function is: a one-dimensional array.
array
talib.HT_DCPHASE(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_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);
}
The HT_DCPHASE()
function is described in the talib library documentation as: HT_DCPHASE(Records[Close]) = Array(outReal)