Fengjingye Posts 641
|
Debugging in MQL MQL is a very basic scripting language. Fixing bugs in MQL yeezy boost 350 v2 for sale , unfortunately, is not simple at all. The MetaEditor compiler that MetaQuotes provides simply does not incorporate the highly developed tools that most programmers are accustomed to using.
MQL4 bug fixing problems
Visual Studio and other sophisticated IDEs (integrated development environments) contain many features that make it easy to fix code while the coder writes it. The greatest illustration of this are break points. A break point is a point in the program where the compiler informs the computer to stop executing the code when it arrives at that specific line.
Consider the example where a trailing stop sets a new stop inaccurately. The common instinct for most programmers would be to run the expert advisor on the visual backtester, then insert break points on the lines of code shortly after the trailing stop calculations. Break points stop the code, allowing the coder to peer inside the heart of the EA to see what it saw at the time it made a decision. The key advantage in Visual Studio is that the values of all of the variables are clearly visible. It is possible to walk through the program step by step. Whenever one of the steps does not follow the desired rules, the required modification is usually obvious. MetaQuotes thankfully included break points in MQL5. They are not available in MQL4.
The absence of full intellisense support inhibits my programming speed more than anything. Intellisense observes the use of reserved words like OrderSelect() or ObjectGet(). The MetaEditor includes a rudimentary intellisense adidas yeezy boost 350 for sale , but it lacks the fine details that make it so convenient in Visual Studio.
I am used to programming in C# where I can type the first few letters of a variable or class, then the IDE fills out the rest. When I type "Mes" in C# and press the space bar, I know that the MessageBox option will appear (assuming that I declared the appropriate namespace). The MetaEditor includes a list of candidates for reserved words. The programmer must then either choose the option with the mouse or press enter.
|