gouki1001:
Sin() gets an angle in Radiant as input and returns a value in the range [-1.0, 1.0]. Arcsin() does the reverse, it gets [-1.0, 1.0] as input and returns a radiant. It looks like you're doing the radiant conversion too early.
rad = (((oppl+.0))/hypl)*((M_PI+.0)/180); (0.01698095)
angle = MathArcsin(rad); (Im getting 0.01698176 instead of 0.97298353134226625915034235162797)
But the MathArcsin is not giving the correct answer. Anyone experienced with MathArcsin in MQL4 or other trigonometric functions?

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
rad = (((oppl+.0))/hypl)*((M_PI+.0)/180); (0.01698095)
angle = MathArcsin(rad); (Im getting 0.01698176 instead of 0.97298353134226625915034235162797)
But the MathArcsin is not giving the correct answer. Anyone experienced with MathArcsin in MQL4 or other trigonometric functions?