The resource loading... loading...

talib.MAMA

The talib.MAMA() function is used to calculate the MESA Adaptive Moving Average.

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

talib.MAMA(inReal) talib.MAMA(inReal, optInFastLimit) talib.MAMA(inReal, optInFastLimit, optInSlowLimit)

The inReal parameter is used to specify the K-line data. inReal true {@struct/Record Record} structure arrays, numeric arrays The optInFastLimit parameter is used to set the Fast Limit, the default value is 0.5. optInFastLimit false number The optInSlowLimit parameter is used to set the Slow Limit, the default value is 0.05. optInSlowLimit false number

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

The MAMA() function is described in the talib library documentation as: MAMA(Records[Close],Fast Limit = 0.5,Slow Limit = 0.05) = [Array(outMAMA),Array(outFAMA)]

talib.MA talib.MIDPOINT