Download MetaTrader 5
To add comments, please log in or register
Use MQL5 Cloud Network. It is secure!
MetaQuotes Software Corp.
MetaQuotes Software Corp. 2007.09.14 09:50 

New article How to Make the Detection and Recovery of Errors in an Expert Advisor Code Easier has been published:

In Export Advisors development, the questions of code errors detection and recovery are very important. The peculiarity is that a not detected in time error may ruin a precious idea of a trading system already on the stage of its first testings. That is why any sensible EA developer takes into account such problems from the very beginning. This article dwells on some approaches, helping in this difficult matter.

Author: Roman Kramar

MQL4 Comments
MQL4 Comments 2008.09.26 12:40  

is good.

nice article - more like this needed. assert is good. logging is good - black hole without. gives edge to coder and need all can get when coding/debug/runtime crazys ;)

i use assert long time - 4get where is in lots code, is good function param checker also, use all over, not trust self or mt ;) - is bit of magic when assert 'pops up' out of blue some times ;)

also take error logging step further - have one () for *all* mt error codes. only need call - it log to terminal and sends timestamped+callerLoc logfile entry - all use same msg format. is big lump code but now never mess with "msg..." anymore in mainline code. it return 'wat do next' suggest/status and caller make decision if retry,stop,refresh,abort,..

just ideas ok? not criticissms

nice read, yes.

MQL4 Comments
MQL4 Comments 2009.12.03 17:47  
Nice article.
To add comments, please log in or register