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

talib.MFI

talib.MFI()函数用于计算Money Flow Index (货币流量指数)

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

talib.MFI(inPriceHLCV) talib.MFI(inPriceHLCV, optInTimePeriod)

inPriceHLCV参数用于指定K线数据。 inPriceHLCV true {@struct/Record Record}结构数组 optInTimePeriod参数用于设置周期,默认值为14。 optInTimePeriod false number

function main() {
    var records = exchange.GetRecords()
    var ret = talib.MFI(records)
    Log(ret)
}
import talib
def main():
    records = exchange.GetRecords()
    ret = talib.MFI(records.High, records.Low, records.Close, records.Volume)
    Log(ret)
void main() {
    auto records = exchange.GetRecords();
    auto ret = talib.MFI(records);
    Log(ret);
}

MFI()函数在talib库文档中的描述为:MFI(Records[High,Low,Close,Volume],Time Period = 14) = Array(outReal)

talib.MACDFIX talib.MINUS_DI