The resource loading... loading...

talib.ACOS

The talib.ACOS() function is used to calculate Vector Trigonometric ACos (inverse cosine function).

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

talib.ACOS(inReal)

The inReal parameter is used to specify the K-line data. inReal true {@struct/Record Record} structure arrays, numeric arrays

function main() {
    var data = [-1, 0, 1]
    var ret = talib.ACOS(data)
    Log(ret)
}
import talib
import numpy as np
def main():
    data = [-1.0, 0, 1.0]
    ret = talib.ACOS(np.array(data))
    Log(ret)
void main() {
    std::vector<double> data = {-1, 0, 1};
    auto ret = talib.ACOS(data);
    Log(ret);
}

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

talib.OBV talib.ASIN