The resource loading... loading...

talib.TYPPRICE

The talib.TYPPRICE() function is used to calculate Typical Price.

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

talib.TYPPRICE(inPriceHLC)

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

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

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

talib.MEDPRICE talib.WCLPRICE