
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
"/2" is not necessary. You can delete those "/2" from that code.
It will print:
Oh, the lImmediate occur error too.
So the problem is unrelated with ChartGetInteger().
It just is related with passing parameters to functions and return value.
Oh My God!
I debug this bug, and I find a bigger bug!
https://www.mql5.com/en/forum/474
Now, let's test the final code
I understand.
These function need a double parameter. If you give them a int value, they will look upon the int value as a double value.
And in The IEEE Standard for Floating-Point Arithmetic (IEEE 754), the memory context of a int value will be looked upon as a tiny double value.
So MathCeil() return 1, and MathFloor() return 0. They are right.
But I hope that mql5 compiler can automatic type casting.
This problem has finished.