MQL5 Algo Trading
388K subscribers
2.56K 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
The CDebugLogger Class V2 is an advanced logging utility tailored for MQL4/5 environments, offering versatile monitoring, debugging, and application behavior tracking. This version introduces notable enhancements, including a debounce mechanism for event-driven systems like OnTick, OnTimer, and OnChartEvent, along with new filtering and silencing options to pinpoint relevant log entries.

Key Features:

1. Multiple Log Levels: Log messages at INFO, WARNING, ERROR, and DEBUG levels to filter by significance.
2. Timestamp Inclusion: Customizable timestamp formats to track event timings.
3. File Logging: Options for enabling/disabling file logging, specifying paths, and saving logs in CSV format.
4. Contextual Information: Include function signatures, file names, and line numbers for clarity.
5. Silent Keywords: Prevent logging of sensitive information by ...
#MQL5 #MT5 #logging #developer

Read more...
👍219👨‍💻32👀2
This text lays out the framework for developing a custom logging system designed to enhance the debugging and profiling of trading algorithms in MQL5. Traditional methods like using Print() lack robustness, failing in larger projects due to their inability to manage log severity, context, outputs, and filters. This makes custom toolkits invaluable.

The proposed framework begins with building a logging system composed of LogLevels to classify severity, an ILogHandler interface to manage different outputs, and a singleton CLogger orchestrator. These components work together to improve message clarity, filtering, and contextual information.

Implementing specific log handlers, such as ConsoleLogHandler and FileLogHandler, allows for flexible logging solutions like writing logs to console or files. These handlers provide customization options for log severity lev...

👉 Read | VPS | Share!

#MQL5 #MT5 #Logging
👍1413🔥52👌1👨‍💻1
Explore the innovative approach to elevating your MetaTrader 5 logging with the Logger class, providing structured message outputs for enhanced readability. Discover how connecting logs to the Seq system enables real-time analysis with an intuitive JSON format and SQL queries, streamlining the identification of application issues. Learn how to implement the autonomous Logger class, using clear severity levels, which fits seamlessly within your code without additional dependencies. Delve into importing existing logs into Seq for comprehensive analysis. This technique empowers developers to efficiently debug and grasp application events, transforming how trading systems are monitored and optimized.

👉 Read | Freelance | @mql5dev

#MQL5 #MT5 #Logging
57👍9👨‍💻53
Logify is a logging library tailored for MQL, facilitating efficient debugging, tracking, and monitoring in expert advisors (EAs) and indicators. It delivers structured and customizable logs either directly on the chart or within the terminal, supporting varied log levels such as DEBUG, INFO, ALERT, ERROR, and FATAL. The library allows users to manage log formats flexibly and choose from multiple handlers including charts, console, files, and databases.

The library's modular architecture makes integration straightforward. To incorporate Logify into your MQL project, copy the Logify folder and include it in your EA, indicator, or script. Follow quick start examples for implementation with default or custom settings. Diverse handlers like Comment, Console, File, and Database ensure adaptable log display and storage. Logify supports token-based log format...

👉 Read | Freelance | @mql5dev

#MQL5 #MT5 #Logging
37👌5👍2👨‍💻1👀1