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

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

Class For Working With Databases In A Simplified Manner – library MetaTrader 5

Class For Working With Databases In A Simplified Manner - library for MetaTrader 5
Having desired to work with SQLite database for the purpose of storing my statistical generated from simulations, i noticed very early that it seems very challenging and time consuming to work with database built in functions. I then decided to create a simplified class and functions to make my work easy. To use the class … Read more

Class CalcFrac – Number of bars before and after the current High / Low (calculated fractal) – library MetaTrader 5

Class CalcFrac - Number of bars before and after the current High / Low (calculated fractal) - library for MetaTrader 5
Calculates fractals and lets you specify the number of bars separately before and after the current High / Low (fractal).Functions: //+——————————————————————+ //| calculate lower fractals                                         | //+——————————————————————+ bool CalcFrac :: is_lower_fr(int number_of_bars) //+——————————————————————+ //| calculate upper fractals                                         | //+——————————————————————+ bool CalcFrac :: is_upper_fr(int number_of_bars) Sample: Indicator : FractalsPeriod Class CalcFrac – Number of bars before and after … Read more

MQL5 Wizard – Candlestick Patterns Class – library MetaTrader 5

MQL5 Wizard - Candlestick Patterns Class - library for MetaTrader 5
The MQL5 Wizard allows creating ready-made Expert Advisors based on the Standard library classes delivered together with the client terminal. It allows to check your trade ideas quickly, all you need is to create your own trading signals class. The structure of this class and example can be found in the article MQL5 Wizard: How … Read more

CDownLoadHistory class – library MetaTrader 5

CDownLoadHistory class
The CDownLoadHistory class provides the methods of historical data downloading in two modes: “visual” and “silent”. 1. Visual mode The example of use of this mode is downloadhistoryvisualmode.mq5. The “history download mode” input parameter can be one of two modes: “current symbol” or “all symbols from Market Watch window”: For the “All symbols from Market … Read more