MT4 to MT5 Convertor (MT5Compat.mqh) – library MetaTrader 4

MT4 to MT5 Convertor (MT5Compat.mqh) - library for MetaTrader 4
MT5Compat a Comprehensive MT4 to MT5 Conversion Library A new interface library has been developed to simplify the process of converting MT4 indicators and Expert Advisors (EAs) to MT5. This library supports most of the MetaTrader 4 functions, offering developers a unified solution for cross-platform compatibility. You can add this to both Key Features: Extensive … Read more

MT4 to MT5 Convertor (MT5Compat.mqh) – library MetaTrader 5 – library MetaTrader 5

MT4 to MT5 Convertor (MT5Compat.mqh) - library for MetaTrader 5 - library for MetaTrader 5
MT5Compat a Comprehensive MT4 to MT5 Conversion Library A new interface library has been developed to simplify the process of converting MT4 indicators and Expert Advisors (EAs) to MT5. This library supports most of the MetaTrader 4 functions, offering developers a unified solution for cross-platform compatibility. You can add this to both Key Features: Extensive … Read more

Comment – library MetaTrader 5

Comment - library for MetaTrader 5
Just add the code  #include    settings will appear. Example of usage with default settings. No need to declare an instance of the class. #include <Comm.mqh> //+——————————————————————+ void OnTick()       string str = “PROGRAM_NAME = ” + MQLInfoString(MQL_PROGRAM_NAME) + “\n” + (string)TimeCurrent();    comm.Comm(str);    //+——————————————————————+ Example of use with the ability to change … Read more

Push Notification for Opened / Closed Trades (Netting) – library MetaTrader 5

Push Notification for Opened / Closed Trades (Netting) - library for MetaTrader 5
Features Sends notifications for trade opens and closes Shows trade type (Buy/Sell) and lot size for new trades Displays profit/loss for closed trades Works in both live trading and strategy tester (sends to logs in tester) Monitors last 2 hours of trading history Prevents notification spam through basic throttling Installation Add this function to your … Read more

Simplest Logger class for MetaTrader 5 – library MetaTrader 5

Simplest Logger class for MetaTrader 5 - library for MetaTrader 5
Every programmer has their own logger. I wrote my own for MQL5, inspired by the Python logging module. This class is simplest. No hierarchy, rotators or formatters. It’s simple and convenient for any project. Installation Copy CDKLogger.mqh to MQL\Include\DKStdLib\Logger folder. Import CDKLogger class. #include <DKStdLib\Logger\CDKLogger.mqh onee CDKLogger logger; // STEP 1. Init Logger with “MyLoggerName” … Read more

Logging V2 for both MQL4 and MQL5 – library MetaTrader 5

Logging V2 for both MQL4 and MQL5 - library for MetaTrader 5
CDebugLogger Class V2: A Comprehensive Logging Utility for MQL4/5 The CDebugLogger class is a powerful and flexible logging utility specifically designed for MQL4/5 environments. It is an essential tool for developers who need to monitor, debug, and track the behavior of their applications with precision. In this new version of the CDebugLogger class, I have … Read more

Best Logging Class for both MQL4 and MQL5 – library MetaTrader 5

Best Logging Class for both MQL4 and MQL5 - library for MetaTrader 5
CDebugLogger Class: A Comprehensive Logging Utility for MQL4/5 The CDebugLogger class is a powerful and flexible logging utility specifically designed for MQL4/5 environments. It is an essential tool for developers who need to monitor, debug, and track the behavior of their applications with precision. Below, we explore the key features and capabilities of this class. … Read more

Easy to use Hedging Class for MQL4 by Peter Mueller – library MetaTrader 4 – library MetaTrader 4

Easy to use Hedging Class for MQL4 by Peter Mueller - library for MetaTrader 4 - library for MetaTrader 4
Input Parameters: OrderDistancePoints : Determines the distance in points from the current ask price for placing buy orders and from the bid price for placing sell orders. TPPoints : Specifies the take profit target in points. Startlotsize : Sets the initial lot size for trades. Gainperlot : Defines the desired gain per lot size. The … Read more

Easy to use Hedging Class for MQL5 by Peter Mueller – library MetaTrader 5

Easy to use Hedging Class for MQL5 by Peter Mueller - library for MetaTrader 5
Input Parameters: OrderDistancePoints : Determines the distance in points from the current ask price for placing buy orders and from the bid price for placing sell orders. TPPoints : Specifies the take profit target in points. Startlotsize : Sets the initial lot size for trades. Gainperlot : Defines the desired gain per lot size. The … Read more