You didn't Normalize after adding...
{if ((modify+(level3*Point)) == modify1 && (modify+(level3*Point))== modify2 && (modify+(level3*Point)) == modify3)
{if ((modify+(level3*Point)) == modify1 && (modify+(level3*Point))== modify2 && (modify+(level3*Point)) == modify3)
Hi phy
Is this what you mean how i should do it, will it work better this way:
{if ((NormalizeDouble(mod-modify1,4)==0) && (NormalizeDouble(mod-modify2,4)==0) && (NormalizeDouble(mod-modify3,4)==0))
Thanks for your time
Mark
Is this what you mean how i should do it, will it work better this way:
{if ((NormalizeDouble(mod-modify1,4)==0) && (NormalizeDouble(mod-modify2,4)==0) && (NormalizeDouble(mod-modify3,4)==0))
Thanks for your time
Mark
Yes. You normalized, then performed a new operation to get a new value that was not normalized...
It's a pain in the butt...
You might try to arrange your logic in the future to use <= and >= on comparisons to avoid compariosn of equality on doubles
It's a pain in the butt...
You might try to arrange your logic in the future to use <= and >= on comparisons to avoid compariosn of equality on doubles
Hi Phy
Many Thanks for your help
Regards
Mark
Many Thanks for your help
Regards
Mark

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
I wonder if anyone can help me.
I have read all the posts on this subject on the forum, and I know there are problems trying to compare doubles. I have also looked at the function in stdlib which compares 2 doubles, which .
Is it possible to compare more than two doubles at a time I have tried comparing three doubles using NormalizeDouble but it does not work.
Here is my code where I have tried to compare 3 doubles:
Can anybody show me how to do this?
Many Thanks
Mark