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

talib.MEDPRICE

The talib.MEDPRICE() function is used to calculate the Median Price.

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

talib.MEDPRICE(inPriceHL)

The inPriceHL parameter is used to specify the K-line data. inPriceHL true {@struct/Record Record} structure array

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

The MEDPRICE() function is described in the talib library documentation as: MEDPRICE(Records[High,Low]) = Array(outReal)

talib.AVGPRICE talib.TYPPRICE