MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Math & Trig  MathTan

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
double MathTan( double x)
MathTan returns the tangent of x. If x is greater than or equal to 263, or less than or equal to -263, a loss of significance in the result occurs, in which case the function returns an indefinite (same as a quiet NaN).
Parameters:
x   -   Angle in radians.
Sample:
  double pi=3.1415926535;
  double x,y;
  x=MathTan(pi/4);
  Print("MathTan(",pi/4," = ",x);
  //Output: MathTan(0.7856)=1