Rafael Alfredo Capucho:
Hi,
All the variables bellow are doubles, I'm accumulating them summing with other doubles like:
but in the end, when trying to do a`MathRound`, simple as this, it returns error:
Error:
According to the documentation, It should work:
Whole Code:
Removing the ending MathRound, the variables are printed correctly, so they are being filled:
You are referring to the wrong function.
This is what you are actually calling, while you are trying to use the documentation for standard library...
I got it sorted,
Looks like that I needed to import this library, probably because they decided to have 2 totally different functions with the same name hehe, so it doesn't complain about a missing import
#include <Math/Stat/Math.mqh>
Thanks!
Edit: Thanks Dominik, for clarifying it.


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
Hi,
All the variables bellow are doubles, I'm accumulating them summing with other doubles like:
but in the end, when trying to do a`MathRound`, simple as this, it returns error:
Error:
According to the documentation, It should work:

Whole Code:
Removing the ending MathRound, the variables are printed correctly, so they are being filled: