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
And yours is wrong, I'm sorry...
Why?
0 22:49:08.463 ! tests GBPUSDbc,H1: v1 = 0.1 = 1.00
0 22:49:08.463 ! tests GBPUSDbc,H1: v1 = 0.2 = 1.00
0 22:49:08.463 ! tests GBPUSDbc,H1: v1 = 0.3 = 1.00
0 22:49:08.463 ! tests GBPUSDbc,H1: v1 = 0.4 = 1.00
0 22:49:08.463 ! tests GBPUSDbc,H1: v1 = 0.5 = 1.00
0 22:49:08.463 ! tests GBPUSDbc,H1: v1 = 0.6 = 1.00
0 22:49:08.463 ! tests GBPUSDbc,H1: v1 = 0.7 = 1.00
0 22:49:08.463 ! tests GBPUSDbc,H1: v1 = 0.8 = 1.00
0 22:49:08.463 ! tests GBPUSDbc,H1: v1 = 0.9 = 1.00
Your example:
0.1+0.5=0.6 = 1
0.2+0.5=0.7 = 1
0.3+0.5=0.8 = 1
0.4+0.5=0.9 = 1
0.5+0.5=1.0 = 1
0.6+0.5=1.1 = 1
0.7+0.5=1.2 = 1
0.8+0.5=1.3 = 1
0.9+0.5=1.4 = 1
Why?
0 22:49:08.463 ! tests GBPUSDbc,H1: v1 = 0.1 = 1.00
0 22:49:08.463 ! tests GBPUSDbc,H1: v1 = 0.2 = 1.00
0 22:49:08.463 ! tests GBPUSDbc,H1: v1 = 0.3 = 1.00
0 22:49:08.463 ! tests GBPUSDbc,H1: v1 = 0.4 = 1.00
0 22:49:08.463 ! tests GBPUSDbc,H1: v1 = 0.5 = 1.00
0 22:49:08.463 ! tests GBPUSDbc,H1: v1 = 0.6 = 1.00
0 22:49:08.463 ! tests GBPUSDbc,H1: v1 = 0.7 = 1.00
0 22:49:08.463 ! tests GBPUSDbc,H1: v1 = 0.8 = 1.00
0 22:49:08.463 ! tests GBPUSDbc,H1: v1 = 0.9 = 1.00
Your example:
0.1+0.5=0.6 = 1
0.2+0.5=0.7 = 1
0.3+0.5=0.8 = 1
0.4+0.5=0.9 = 1
0.5+0.5=1.0 = 1
0.6+0.5=1.1 = 1
0.7+0.5=1.2 = 1
0.8+0.5=1.3 = 1
0.9+0.5=1.4 = 1
Because the statement"int A = double B + 0.5" is solved: int A = (int)MathCeil(double B); incorrect.
So how does it get resolved?
How about this?
Correct, i.e. as I said. First, 0.5 is added to the fractional number, and then the fractional part is subtracted from the result and the result is rounded to integer.
So how does it get resolved?
The code?
Correct, i.e. as I said. First, 0.5 is added to fractional number, and then the fractional part is subtracted from the result and the result is rounded to integer.
He can't explain. Don't disturb him.