MQL5 Algo Trading
388K subscribers
2.57K photos
2.57K links
The best publications of the largest community of algotraders.

Subscribe to stay up-to-date with modern technologies and trading programs development.
Download Telegram
Creating a logger for MQL5 inspired by Python's logging module can enhance project management significantly. The CDKLogger class is designed for simplicity, focusing on ease of use without complex features like hierarchies or rotators. To use it, copy CDKLogger.mqh into the designated MQL\Include\DKStdLib\Logger folder and import the class.

While effective, the class has room for improvement. A notable issue is the frequent parsing of strings by the StringFormat function, even when the log level doesn't necessitate message output. This can be inefficient when dealing with numerous debug messages, making it necessary to conditionally wrap log outputs.

Unfortunately, MQL5 lacks support for passing a dynamic number of parameters to various logging functions such as Debug, Info, and Error. Suggestions for optimizing this process are welcome and could help ref...
#MQL5 #MT5 #Logger #Coding

Read more...
👍3111👌5🏆4👨‍💻2