Working with Doubles in MQL4
The MQL programming opens new opportunities for the automated trading, many people all over the world already have appreciated it.
When we are writing an Expert Advisor for trading, we must be sure that it will work correctly.
Many newbies often have some questions when the results of some mathematical calculations differ from those expected. The program is compiled and can work, but not as it should. They are checking the code again and again, finding the new “mistakes” in language, in implementation, in functions, etc.
In the most of cases, the careful analysis shows that the language and compiler work correctly, but code has a small error, and it can take a long time to find and correct it.
In this note we will consider a typical programming errors, that occurs while working with double numbers in MQL4 programs.
To read the full article, please visit: http://articles.mql4.com/866
Related posts:

