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

talib.ATAN

The talib.ATAN() function is used to calculate the Vector Trigonometric ATan (inverse tangent function).

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

talib.ATAN(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 = [-3.14/2, 0, 3.14/2]
    var ret = talib.ATAN(data)
    Log(ret)
}
import talib
import numpy as np
def main():
    data = [-3.14/2, 0, 3.14/2]
    ret = talib.ATAN(np.array(data))
    Log(ret)
void main() {
    std::vector<double> data = {-3.14/2, 0, 3.14/2};
    auto ret = talib.ATAN(data);
    Log(ret);
}

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

talib.ASIN talib.CEIL