MQL4 - automated forex trading   /  

Documentation

MQL4 Reference  Math & Trig  MathSin

 
Use the opportunities of
MQL5 in MetaTrader 5
Study the new MQL5 language
Study the new MQL5 language.
Reference is already available
double MathSin( double value)
Returns the sine of the specified angle.
Parameters:
value   -   An angle measured in radians.
Sample:
  double pi=3.1415926535;
  double x, y;
  x=pi/2;
  y=MathSin(x);
  Print("MathSin(",x,") = ",y);
  y=MathCos(x);
  Print("MathCos(",x,") = ",y);
  //Output: MathSin(1.5708)=1
  //        MathCos(1.5708)=0