General View:
Atan(Xdata array,Y data array)
This is a trigonometric function dealing with the relationships between angles and the legs of the right triangle.
The result of the function is returned in degrees from 0 to 359.9
For example :
Atan(10,10) returns the value of 45,
And atan(20,0) return the value of 90
MQL4 : The function returns the arc tangent of x. If x is equal to 0, the function returns 0.

Parameters
value
[in] A number representing a tangent.
Return Value
MathArctan returns a value within the range of –π/2 to π/2 radians.
Note
Instead of the MathArctan() function you can use atan().