Forum on trading, automated trading systems and testing trading strategies
Hello,
Please EDIT your post and use the SRC button when you post code.
Thank you.
Same problem here
You have to understand the way double values work, e.g. here!
Two doubles are practically never equal like integers only too close to be different!
if(fabs(iClose1[0]-iClose2[0]) > _Point*0.001) ...

Double-precision floating-point format - Wikipedia
- en.wikipedia.org
Double-precision floating-point format is a computer number format that occupies 8 bytes (64 bits) in computer memory and represents a wide, dynamic range of values by using a floating point. Double-precision floating-point format usually refers to binary64, as specified by the IEEE 754 standard, not to the 64-bit decimal format decimal64. In...

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
Hello
CopyClose and CopyOpen return bad result after close and reopen metatrader5
I am comparing two copyclose with same parameters and I receive different result from this functions;
My Code:
And this code on open metatrader5 print this result:
2454.0 = 2454.0
ERROR: 9.79818532658781e-312 != 7.138640856869782e-189
Can anyone help me?!
Tanks