Institutional traders purposefully influence markets, triggering stop-losses for liquidity sweeps that move prices temporarily. Recognizing these sweeps can protect traders from premature exits and align them with market trends. A developed MQL5 Expert Advisor (EA) identifies such sweeps by analyzing candle patterns where price breaks and then closes back within a range, indicating liquidity absorption. This EA uses optional filters like moving averages and color changes for enhanced accuracy. By marking and alerting valid patterns, the EA helps traders foresee institutional moves, maintaining an edge by reducing false signals and catching shifts in market momentum effectively.
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Algorithm
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #Algorithm
β€29π5π3π¨βπ»2β1
The Parabolic Stop-And-Reverse (SAR) indicator and Relative Vigor Index (RVI) oscillator provide a strategic combination of trend identification and momentum tracking. Testing on GBP CHF for 2023, using optimized metrics, assesses various signalling patterns in a wizard Expert Advisor. The testing ensures isolated setups for each pattern, adjusting parameters via MQL5βs structure, focusing on pattern-specific maps for signal accuracy.
The test spans from 2023 to 2025, highlighting SARβs trend-following capability and RVI's momentum tracking. Patterns were systematically tested on a 4-hour timeframe, verifying reliability across different market conditions and incorporating essential filters to enhance signal clarity. The reactive nature of the SAR ensures adaptable stop-loss management, crucial in volatile market shifts, while the collected data ai...
π Read | VPS | @mql5dev
#MQL5 #MT5 #Indicator
The test spans from 2023 to 2025, highlighting SARβs trend-following capability and RVI's momentum tracking. Patterns were systematically tested on a 4-hour timeframe, verifying reliability across different market conditions and incorporating essential filters to enhance signal clarity. The reactive nature of the SAR ensures adaptable stop-loss management, crucial in volatile market shifts, while the collected data ai...
π Read | VPS | @mql5dev
#MQL5 #MT5 #Indicator
β€52π₯6πΎ4π¨βπ»1
In MetaTrader 5 build 5120, we have introduced a number of fixes and improvements to the platform:
β’ Fixed interface display issues on Linux and macOS.
β’ Updated available models for AI Assistant in MetaEditor.
β’ Enabled passing of arrays with signed/unsigned typecasting in ArraySwap, WebRequest, CryptEncode, CryptDecode, and other data conversion functions.
β’ Fixed retrieval of key states for MQL programs on the active chart.
β’ Corrected ArrayInitialize behavior for enum arrays.
Discuss the update
β’ Fixed interface display issues on Linux and macOS.
β’ Updated available models for AI Assistant in MetaEditor.
β’ Enabled passing of arrays with signed/unsigned typecasting in ArraySwap, WebRequest, CryptEncode, CryptDecode, and other data conversion functions.
β’ Fixed retrieval of key states for MQL programs on the active chart.
β’ Corrected ArrayInitialize behavior for enum arrays.
Discuss the update
β€72π16π¨βπ»5π1
The process of closing or deleting orders in a multi-currency EA is straightforward. The code uses comments as identifiers to determine which orders to close or delete. If the EAComment input is empty, it defaults to closing based on the specified close type. The functionality supports both prefix and suffix in the comment for flexibility. There is potential for further development and customization by exploring additional options. Please ensure any suggestions or feedback focus on core functional enhancements. This systematic approach ensures efficient trade management in multi-currency scenarios.
π Read | Freelance | @mql5dev
#MQL5 #MT5 #EA
π Read | Freelance | @mql5dev
#MQL5 #MT5 #EA
β€50π6π¨βπ»5π1
The article explores the development of an info panel to track trading history and statistics using MetaTrader 5's MQL5 environment. It provides a solution for traders needing an adaptable tool to analyze trading data by symbols and strategy identifiers (magic numbers) without using data buffers. By leveraging SQLite for database operations, the article details how to structure tables and manage data efficiently, allowing extended functionality like scrollable tables and dynamic dashboards. The solution empowers traders and developers to extract and interpret comprehensive account statistics directly from existing databases, enhancing decision-making in algorithmic trading strategies.
π Read | Calendar | @mql5dev
#MQL5 #MT5 #AlgoTrading
π Read | Calendar | @mql5dev
#MQL5 #MT5 #AlgoTrading
β€64π¨βπ»8π5β‘4β2
Introducing the AlphaTrend indicator designed for analyzing market trends, support, and resistance levels. This tool adapts to available data by utilizing the Money Flow Index (MFI) when volume data is present, and the Relative Strength Index (RSI) otherwise. The indicator integrates momentum indicators such as RSI and MFI, providing versatile insights into market dynamics. Additionally, AlphaTrend employs the Average True Range (ATR) for assessing market volatility. This multi-faceted approach ensures a comprehensive analysis, aiding in informed decision-making. AlphaTrend represents a strategic addition to any market analysis toolkit, bridging momentum and volatility for a thorough market perspective.
π Read | VPS | @mql5dev
#MQL5 #MT5 #Algorithm
π Read | VPS | @mql5dev
#MQL5 #MT5 #Algorithm
β€46π4π¨βπ»3β‘2π―2π1π1
Discover the cutting-edge NAFS algorithm for graph representation learning, designed to tackle scalability and over-smoothing issues in traditional GCNs. Unlike previous methods, NAFS uses a unique node-adaptive feature smoothing technique, capturing rich structural data efficiently across varying scales without training, thus reducing computational costs. Engineers can implement this technique in MetaTrader 5 using MQL5, leveraging OpenCL for constructing multi-scale node representations and enhancing computational performance. NAFS' approach of adjusting smoothing rates based on node characteristics ensures robust and scalable graph data processing, making it a significant advancement for both graph researchers and traders integrating algorithmic strategies.
π Read | CodeBase | @mql5dev
#MQL5 #MT5 #Graph
π Read | CodeBase | @mql5dev
#MQL5 #MT5 #Graph
β€30π9β‘3π¨βπ»1
Introducing a new integrated approach for Forex trading calculations directly within the MetaTrader 5 platform. By embedding a Forex Values Calculator into the Trade Management Panel, traders can now perform essential calculations such as Position Size, Risk Amount, Pip Value, and Margin Requirement without leaving their trading terminal. This integration is facilitated by MQL5's robust GUI capabilities, ensuring that trade set-up is more streamlined and efficient.
The implementation includes adjusting the Trade Management Panel to house new control classes, utilizing ComboBox and DatePicker components for intuitive user interaction. This approach minimizes the need to toggle between different applications, enhancing the overall trading workflow.
Testing phases confirm that the integration maintains accuracy and reliability, aligning with MetaTrader 5...
π Read | Signals | @mql5dev
#MQL5 #MT5 #Forex
The implementation includes adjusting the Trade Management Panel to house new control classes, utilizing ComboBox and DatePicker components for intuitive user interaction. This approach minimizes the need to toggle between different applications, enhancing the overall trading workflow.
Testing phases confirm that the integration maintains accuracy and reliability, aligning with MetaTrader 5...
π Read | Signals | @mql5dev
#MQL5 #MT5 #Forex
β€77π10π6π5β‘4π¨βπ»4
The ATR Channel indicator for MT4, originally developed by The Collector, offers a valuable tool for traders looking to implement volatility-based strategies. By utilizing the Average True Range, it assists in assessing market volatility and establishing dynamic support and resistance levels. This can aid in making informed trading decisions and identifying potential breakout or reversal points. Users interested in leveraging this indicator can find the original version on the MQL5 codebase. It is crucial to understand how the indicator functions and adjust its parameters according to individual trading needs, ensuring optimal performance within specific market conditions.
π Read | CodeBase | @mql5dev
#MQL5 #MT5 #Indicator
π Read | CodeBase | @mql5dev
#MQL5 #MT5 #Indicator
β€26π₯8π3π¨βπ»3π1
The article introduces a series focusing on developing Windows Forms-style controls using MQL5 for application GUIs. This series emphasizes implementing popular controls for GUI development, linked to enhancing library graphical objects. The initial focus is on the Panel element, a crucial container for housing other controls. The process involves creating a panel that adapts to content changes and manages child objects efficiently.
Subsequent updates will address library improvements. These include integrating new properties from terminal updates into symbol and account objects, refining graphical and form object classes, and setting up the foundation for the Panel object class. Enhanced object management, size adjustment features, and object interaction capabilities will be incorporated.
With preparatory elements in place, each WinForms component will pr...
π Read | Calendar | @mql5dev
#MQL5 #MT5 #WinForms
Subsequent updates will address library improvements. These include integrating new properties from terminal updates into symbol and account objects, refining graphical and form object classes, and setting up the foundation for the Panel object class. Enhanced object management, size adjustment features, and object interaction capabilities will be incorporated.
With preparatory elements in place, each WinForms component will pr...
π Read | Calendar | @mql5dev
#MQL5 #MT5 #WinForms
β€54π5π¨βπ»4
The Telegram Signal EA offers seamless integration between Telegram communications and MetaTrader 5 charts. This tool allows traders to display messages from Telegram channels, groups, and private chats directly on their MT5 charts as comments, enhancing the visibility of trading signals and key messages during active trading sessions.
Key features include real-time message updates with a configurable check interval and clear, easy-to-read formatting. It's fully compatible with various types of Telegram communications and handles message processing automatically for effortless display.
To set up, create a Telegram bot via BotFather, adjust privacy settings, and add the bot to your groups or channels as an administrator. In MetaTrader 5, allow necessary web requests, then install and configure the EA with your bot token and desired update interval.
Troubles...
π Read | NeuroBook | @mql5dev
#MQL5 #MT5 #Telegram
Key features include real-time message updates with a configurable check interval and clear, easy-to-read formatting. It's fully compatible with various types of Telegram communications and handles message processing automatically for effortless display.
To set up, create a Telegram bot via BotFather, adjust privacy settings, and add the bot to your groups or channels as an administrator. In MetaTrader 5, allow necessary web requests, then install and configure the EA with your bot token and desired update interval.
Troubles...
π Read | NeuroBook | @mql5dev
#MQL5 #MT5 #Telegram
β€34π¨βπ»5π4π±4π2π1
An indicator has been developed to display the day's trend across any chart time. It offers customization options for both color and text positioning on the screen. This tool provides traders with the ability to quickly assess market direction and make timely decisions. The flexible configuration allows adaptation to various charting styles and preferences, ensuring compatibility with a wide range of trading strategies. The indicator enhances chart clarity by providing a straightforward visualization of day-specific trends without cluttering the interface, making it a practical addition to a trader's analytical toolkit.
π Read | NeuroBook | @mql5dev
#MQL5 #MT5 #Indicator
π Read | NeuroBook | @mql5dev
#MQL5 #MT5 #Indicator
β€41π5π¨βπ»4π2
A script designed to manage buy orders effectively requires attention to its setup and functionality. Primarily, this script enables the partial closure of profitable buy orders while allowing other orders to reach their target profits. Essential parameters include `ClosePercentage`, which defines the portion of each buy position to be closed, and `Slippage`, which determines the maximum slippage in points. The `CommentText` parameter filters positions by specific comments if desired.
Key features include compatibility with multiple buy positions and the preservation of original stop loss and take profit levels for the remaining lots. It safeguards minimum volume requirements, handles errors, and provides operational feedback.
To implement, copy and compile the code in MetaEditor. The script will be accessible in the Navigator under "Scripts" and can be ex...
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #script
Key features include compatibility with multiple buy positions and the preservation of original stop loss and take profit levels for the remaining lots. It safeguards minimum volume requirements, handles errors, and provides operational feedback.
To implement, copy and compile the code in MetaEditor. The script will be accessible in the Navigator under "Scripts" and can be ex...
π Read | AlgoBook | @mql5dev
#MQL5 #MT5 #script
β€32π¨βπ»9π4β3π₯2π€2π1
A new script targets efficient trade management by partially closing profitable sell orders while maintaining other open positions for target profits. Upon execution, details can be reviewed in the Experts tab. Key input parameters include:
- ClosePercentage: Determines the portion of each sell position to close, ranging from 0 to 100.
- Slippage: Sets the maximum permissible slippage in points.
- CommentText: Optionally close positions based on specific comments.
Key features of the script include handling multiple sell positions, preserving original stop loss and take profit levels, validating minimum volume requirements, and error management with feedback. For installation, transfer the code to MetaEditor and compile. The script will then be accessible under "Scripts" in the Navigator panel. To execute, drag it onto any chart. Caution: it closes a speci...
π Read | AppStore | @mql5dev
#MQL5 #MT5 #Script
- ClosePercentage: Determines the portion of each sell position to close, ranging from 0 to 100.
- Slippage: Sets the maximum permissible slippage in points.
- CommentText: Optionally close positions based on specific comments.
Key features of the script include handling multiple sell positions, preserving original stop loss and take profit levels, validating minimum volume requirements, and error management with feedback. For installation, transfer the code to MetaEditor and compile. The script will then be accessible under "Scripts" in the Navigator panel. To execute, drag it onto any chart. Caution: it closes a speci...
π Read | AppStore | @mql5dev
#MQL5 #MT5 #Script
β€37π9π¨βπ»3β‘2π2
The horizontal volume indicator is utilized by traders for tape reading and Price Action analysis, offering insights into trade volumes at specific price points. Constructing an efficient indicator for MetaTrader 5 requires careful design to maintain platform performance. A minor data update delay, typically around 1 second, is usually acceptable. Key to this is the Volume At Price class, integrated with the C_Wallpaper and C_C_Canvas classes for streamlined control and modification. The system features functions for initializing, updating, resizing, and redrawing, handling data with precision and optimized code execution, focusing on object-oriented programming best practices.
π Read | Forum | @mql5dev
#MQL5 #MT5 #Indicator
π Read | Forum | @mql5dev
#MQL5 #MT5 #Indicator
β€48β8π7π¨βπ»6π₯2π2
The process for closing or deleting single currency or manual orders is straightforward. For multi-currency EAs, the code utilizes the Comment field to identify which orders to close or delete. If the EAComment input is left empty, the closure is based on the specified close type. The system supports both prefix and suffix for EA Comments to increase flexibility. The current setup provides foundational functionality. There is potential for further development, particularly in extending options or refining processes. Suggestions for enhancements can be considered to meet specific requirements or to broaden applicability.
π Read | Forum | @mql5dev
#MQL4 #MT4 #EA
π Read | Forum | @mql5dev
#MQL4 #MT4 #EA
β€33π7π¨βπ»2
Algorithmic trading presents challenges that require innovative approaches. Traditional price prediction often underperforms in comparison to strategies that focus on technical indicator readings. Models that adapt to market conditions by evaluating multiple strategies tend to show better results. An adaptable application capable of switching between a Moving Average Crossover Continuation Strategy, a Relative Strength Index Momentum Strategy, and a Williams Percent Range Trend Breakout Strategy can improve trade outcomes.
Combining strategies effectively requires attention to detail, such as encasing strategies within classes and utilizing object-oriented programming principles. This facilitates robust testing and optimization.
Tools like MetaTrader 5, with its Walk Forward Testing and Genetic Optimizers, allow traders to refine strategies for perfo...
π Read | CodeBase | @mql5dev
#MQL5 #MT5 #Algorithm
Combining strategies effectively requires attention to detail, such as encasing strategies within classes and utilizing object-oriented programming principles. This facilitates robust testing and optimization.
Tools like MetaTrader 5, with its Walk Forward Testing and Genetic Optimizers, allow traders to refine strategies for perfo...
π Read | CodeBase | @mql5dev
#MQL5 #MT5 #Algorithm
β€70π6π¨βπ»4β‘3π2π1
The Pending_tread Expert Advisor (EA) serves as a solution for automated trading, focusing on the placement and management of pending orders in a structured grid format. It accommodates scalping strategies and is adaptable across various timeframes and currency pairs, providing a broad utility for diverse trading approaches.
A key feature is its ability to create grids of pending buy and sell orders, spaced by user-defined intervals for optimal market capture. The EA provides flexibility in configuring the number of orders and their spacing, enhancing control over order execution.
It includes features such as custom order types, configurable take profit levels, and comprehensive order management, reducing manual intervention for efficiency. The system respects broker constraints, ensuring orders are placed within acceptable parameters without overloading tr...
π Read | CodeBase | @mql5dev
#MQL4 #MT4 #EA
A key feature is its ability to create grids of pending buy and sell orders, spaced by user-defined intervals for optimal market capture. The EA provides flexibility in configuring the number of orders and their spacing, enhancing control over order execution.
It includes features such as custom order types, configurable take profit levels, and comprehensive order management, reducing manual intervention for efficiency. The system respects broker constraints, ensuring orders are placed within acceptable parameters without overloading tr...
π Read | CodeBase | @mql5dev
#MQL4 #MT4 #EA
β€40π7β‘4π¨βπ»2β1π1
In the latest update of our MetaTrader 5 replay system, a novel approach to managing custom symbol timeframe changes is being implemented. This addresses the inconvenience faced when the chart timeframe alterations result in temporary indicator disruptions. The proposed solution bypasses the need for storing indicator state externally by detecting timeframe changes directly through the service. By effectively encoding timeframe change information into a data buffer using previously tested reduced-bit logic, the system ensures seamless synchronization between the service and indicators. This refinement not only eliminates redundant initialization paths but also enhances reliability and performance in replay/simulator scenarios.
π Read | CodeBase | @mql5dev
#MQL5 #MT5 #AlgoTrading
π Read | CodeBase | @mql5dev
#MQL5 #MT5 #AlgoTrading
β€22π5π¨βπ»4
Dive into the depths of MetaTrader 5 with this exploration into memory management, array manipulation, and advanced programming techniques like enumerations and variable arguments. Discover how to efficiently handle memory using the sizeof operator, and simplify code readability with enums. Learn the ingenious method of mimicking C/C++-like variable arguments in MQL5, enabling dynamic data transfer through string manipulations. This article not only paves the way for sophisticated MT5 applications but also provides fundamental lessons every algorithmic trader and developer should master. Unlock the true potential of MQL5 with these structured, step-by-step insights into advanced programming concepts.
π Read | Freelance | @mql5dev
#MQL5 #MT5 #Arrays
π Read | Freelance | @mql5dev
#MQL5 #MT5 #Arrays
β€48β12π7π¨βπ»2