Files
Bell-PriceActionWithEma-EA/Experts/EA_ICT_CL/Logging.mqh
T
2026-03-10 19:28:06 +07:00

20 lines
632 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#ifndef EA_ICT_CL__LOGGING_MQH
#define EA_ICT_CL__LOGGING_MQH // Tránh include trùng
// Module: Logging in log ra Journal khi bật InpDebugLog
inline void LogPrint(const bool enabled, const string msg)
{
if (!enabled) return; // Tắt log thì thoát
Print(msg); // In chuỗi ra Experts/Journal
}
inline void LogPrintF(const bool enabled, const string fmt, const string a0 = "", const string a1 = "", const string a2 = "")
{
if (!enabled) return; // Tắt log thì thoát
Print(StringFormat(fmt, a0, a1, a2)); // Format rồi in (tối đa 3 tham số string)
}
#endif // EA_ICT_CL__LOGGING_MQH