This function converts pips to points for 5-digit brokers.For example, if you want to set a stop loss of 50 pips, you can use this function to convert it to 500 points, which is ma...
The trading signals function utilizes the values of the OSMA indicator to generate buy and sell signals.To integrate this function into your Expert Advisor (EA), include the follow...
This function generates trading signals based on the values of the CCI indicator, a popular technical analysis tool.To integrate this function into your Expert Advisor (EA), follow...
An instance of this class provides access to various price-related values, including bid, ask, high, low, close, and open prices for the current or specified candle. It also retrie...
This lightweight cross-platform library enables efficient and rapid comparison of 'double' values for the 'price' variable.For instance, prior to executing a selllimit order, it ca...
This cross-platform library enables byte-wise operations with structures and standard data types, offering a range of features:- Byte-wise comparison (== and !=) of structures and ...
The Advanced Encryption Standard (AES) is a symmetric block cipher used for protecting classified information by the U.S. government and is widely implemented in software and hardw...
This is a fast time range checking function that avoids slow string parsing.The function returns a boolean value, indicating whether the time is within the specified range or not.T...
This library facilitates working with orders in MQL5 (MT5-hedge) using the same approach as in MQL4.By employing this library, the order language system (OLS) in MQL5 becomes ident...
After encountering the 'account disabled' error, which typically occurs on weekends when trade servers are offline, manually logging into the trading account can be cumbersome and ...
A comprehensive library of trading functions, including position sizing, opening and closing positions, and more. Derived from the expert advisors 'Ocean Breeze' and 'Grainlo-Pro',...
The "MasterWindows" article provides a comprehensive guide on designing user-friendly interfaces for your applications. It introduces the MasterWindows class library, which serves ...
This library offers a wide range of functions designed to streamline the development process in MQL4, allowing you to focus on logic rather than mechanics.For instance, opening an ...
Class for working with ticks in MetaTrader 4, enabling the creation of experts that make trading decisions based on tick data analysis.The class facilitates the calculation of:- Pr...
This cross-platform library enables efficient and rapid comparison of 'double' values for the 'price' variable.For instance, prior to executing a selllimit order, it can be advanta...
This cross-platform library enables byte-wise operations with structures and standard data types, offering a range of features:- Byte-wise comparison (== and !=) of structures and ...
This library offers input parameters and functions to construct your binary options strategy within an indicator, enabling testing and refinement in the Metatrader 4 strategy teste...
This library offers a smart notification system with customizable options for alerts, push messages, and logging.Parameters:- isalert: Display a message in a separate window.- ispu...
Why this is needed:This class facilitates data exchange between your programs, especially useful when creating products for the market or when system DLLs are not preferred.For oth...
This is a 5 library named 'I Bar Shift MT5'. It offers traders a reliable toolset within the MetaTrader platform. Adhering to the standard MT4/MT5 conventions, this library is easy...
A histogram is a bar chart of frequencies. One axis represents variable values, while the other axis represents the frequency of these values' occurrence. The height of each bar in...
GeneralThis is a set of classes designed for convenient use of indicators in MQL4/MQL5. It was originally written to facilitate working with multiple indicators simultaneously.Each...
The entire chain: indicator, expert advisor based on the signal module.The signalcandelshighopen module of trading signals assumes that the custom indicator has already been compil...
This function returns the number of positions opened by an expert advisor for the current day.The count is specific to the trading day and resets daily.This can be useful for track...
This class provides MQL5 programs with the ability to easily detect changes within the Market Watch window. It monitors symbol sorting, additions, deletions, and changes to symbol ...
This library requires a DLL file to be placed in the terminal's Libraries folder and the r.mqh file in the Include folder.Ensure the following directive is included in your Expert ...
This document details the application of smooth algorithms within the MetaTrader trading platforms.The Exponential Moving Average (EMA) indicator is a prime example of such an algo...
Automagic is a library designed to manage Magic Numbers for Expert Advisors (EAs) in MetaTrader 5. It ensures that EAs running on the same symbol and timeframe across different cha...
Provides various helper functions for sending messages of different types to different sources.
Available Message Types:
- Debug
- Notice
- Warning
- Error
- Success
- InfoAvailabl...
This header file provides essential functions and input variables for managing time and determining the day of the week within Expert Advisors and scripts.Key Features:- Functions ...
The CHistoryPositionInfo class is designed for retrieving the profit of a position in points, based on trading history.Class DescriptionThe CHistoryPositionInfo class allows for th...
This utility class allows you to go beyond the standard MQL5 sandbox to examine directory contents.You can check for the existence of files or directories, retrieve file attributes...
Signal Module: Moving Average Above/BelowSave the signal module file to "data folder"\mql5\include\expert\signal\.This module generates trading signals based on whether the price i...
One of the major issues with MQL5 was the removal of the built-in time-series functions. While doing so gave programmers a more finite level of development latitude, it also slowed...
A comprehensive library of original mathematical functions designed for cross-platform compatibility.mathcorrelationpearsonThis function calculates the Pearson correlation coeffici...
Synchronization of Indicator Initialization and Deinitialization in MT5In MetaTrader 5 (MT5), changing the chart symbol or timeframe causes all indicators to be reloaded. Unlike MT...
SHA512 Class ImplementationThis component provides an implementation of the SHA512 hashing algorithm.HMAC Functions ImplementationThis component includes implementations for HMAC f...
filelog is a straightforward MQL4 class designed for versatile logging to files and the MetaTrader terminal console.The log file will be saved in:- MQL4\Files directory within your...
Public MethodsProvides public access to the parameters array, which is the primary method for setting parameters.Methods can be chained to add multiple parameters simultaneously. R...
This utility class simplifies the process of detecting new candle formations in MQL5 programs.Many MQL5 programs require executing specific code segments only when a new candlestic...
The getprofitinpoints function is still accessible, however, it is advisable to utilize the new getprofit function.The getprofit function provides the following details about a pos...
The provided files introduce a class system to simulate a hidden stop loss and take profit mechanism, while also establishing a live stop loss and take profit on the trade as a con...
Regular expressions are a powerful tool for pattern matching and text manipulation in MQL4.This article provides an introduction to using regular expressions in MQL4, covering the ...
The csyncevent class offers a powerful synchronization mechanism for processes accessing shared resources. This is particularly useful when employing shared memory for inter-proces...
In both platforms (MetaTrader 4/5), you can run a script to save a report and view the generated HTML output.This is especially useful in MetaTrader 5, which does not provide visua...
MetaTrader 5 offers a valuable function for profiling Expert Advisors on historical data, but it comes with certain limitations.One issue is the slow speed in visual mode, and the ...
The library offers essential tools for working with custom symbols and provides ready-made solutions for various use cases.For instance, when running backtests on cross pairs, the ...