|
MT4 floating point errors
Is it possible to write mql4 code that does floating point arithmetic correctly?
I am a retired programmer with over 40 years of experience. I have thus far been unsuccessful in making an indicator I have written do correct calculations, in spit of using CompareDoubles and NormalizeDouble in every instance that they are necessary.
I've written a Python script (using the decimal library) to duplicate the work of my indicator and the errors of mql4 are clear to see when I compare the output of the two. There are not many discrepancies but there are some and this should not happen.
TIA
|