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

talib.MACDFIX

talib.MACDFIX()函数用于计算Moving Average Convergence/Divergence Fix 12/26 (移动平均收敛/发散修复12/26)

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

talib.MACDFIX(inReal) talib.MACDFIX(inReal, optInSignalPeriod)

inReal参数用于指定K线数据。 inReal true {@struct/Record Record}结构数组、数值数组 optInSignalPeriod参数用于设置信号周期,默认值为9。 optInSignalPeriod false number

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

MACDFIX()函数在talib库文档中的描述为:MACDFIX(Records[Close],Signal Period = 9) = [Array(outMACD),Array(outMACDSignal),Array(outMACDHist)]

talib.MACDEXT talib.MFI