The talib.MACDFIX()
function is used to calculate Moving Average Convergence/Divergence Fix 12/26.
The return value of the talib.MACDFIX()
function is a two-dimensional array.
array
talib.MACDFIX(inReal) talib.MACDFIX(inReal, optInSignalPeriod)
The inReal
parameter is used to specify the K-line data.
inReal
true
{@struct/Record Record} structure arrays, numeric arrays
The optInSignalPeriod
parameter is used to set the signal period, the default value is 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);
}
The MACDFIX()
function is described in the talib library documentation as: MACDFIX(Records[Close],Signal Period = 9) = [Array(outMACD),Array(outMACDSignal),Array(outMACDHist)]