Built-in Functions
Structures
Built-in Variables and Constants
Conventions
Exchanges
talib.ATAN
Calculates the arc tangent of each element (Vector Trigonometric ATan).
talib.ATAN(inReal)Examples
Compute the arc tangent of a few numbers.
javascript
function main() {
var data = [-3.14/2, 0, 3.14/2]
var ret = talib.ATAN(data)
// Output: about [-1.0037, 0, 1.0037]
Log(ret)
}
python
import talib
import numpy as np
def main():
data = [-3.14/2, 0, 3.14/2]
ret = talib.ATAN(np.array(data))
# Output: about [-1.0037, 0, 1.0037]
Log(ret)Returns
| Type | Description |
numeric array | Results, the same length as the input. |
Arguments
| Name | Type | Required | Description |
inReal |
| Yes | K-line array (close prices are used) or numeric array; in Python, pass a numeric array such as |
See Also
Remarks
TA-Lib equivalent: ATAN(Records[Close]) = Array(outReal).