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

talib.CDLMATHOLD

The talib.CDLMATHOLD() function is used to calculate Mat Hold (K-line chart: Mat Hold).

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

talib.CDLMATHOLD(inPriceOHLC) talib.CDLMATHOLD(inPriceOHLC, optInPenetration)

The inPriceOHLC parameter is used to specify the K-line data. inPriceOHLC true {@struct/Record Record} structure array The optInPenetration parameter is optional and is used to specify the percentage of the width of the rising/falling trend line, the default value is 0.5. optInPenetration false number

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

The CDLMATHOLD() function is described in the talib library documentation as: CDLMATHOLD(Records[Open,High,Low,Close],Penetration = 0.5) = Array(outInteger)

talib.CDLMATCHINGLOW talib.CDLMORNINGDOJISTAR