MQL5 Algo Trading
395K subscribers
2.6K photos
2.61K links
The best publications of the largest community of algotraders.

Subscribe to stay up-to-date with modern technologies and trading programs development.
Download Telegram
The script facilitates creating nearly all standard graphical objects in MetaTrader 5, aiding in rapid visual testing of the ObjectCreate() function along with methods for setting various object properties. It focuses on attributes like coordinates, sizes, fonts, colors, and additional parameters. Upon execution, it replaces any pre-existing objects on the active chart, creating a new one based on the settings.

The script highlights the newly created object to allow for immediate adjustments of reference points or location. Users can select any standard object type using the InpObjectToCreate input parameter, including lines, channels, Gann and Fibonacci tools, Elliot waves, graphical labels, and GUI elements. Each object type has its dedicated creation function with comprehensive attribute settings such as timestamps, price levels, directions, scales, ...

๐Ÿ‘‰ Read | AppStore | @mql5dev

#MQL5 #MT5 #script
โค35๐Ÿ‘€12โšก3๐Ÿ‘จโ€๐Ÿ’ป2๐Ÿ‘Œ1
The recently developed indicator provides functionality for adjusting "Trend Line" objects to a horizontal position on the chart. This is achieved by modifying the price coordinate of the second reference point of these lines, typically positioned on the chart's right side. It allows users to set color and style preferences for these lines, enhancing visibility and analysis. This tool aids in maintaining clean and organized charts, facilitating technical analysis and decision-making. Users can ensure that their trend lines serve as effective visual aids in assessing market movements.

๐Ÿ‘‰ Read | Docs | @mql5dev

#MQL5 #MT5 #Indicator
โค35๐Ÿ”ฅ5๐Ÿ‘จโ€๐Ÿ’ป3
Discover how ResNeXt, a cutting-edge neural network architecture, revolutionizes financial analysis with its ability to handle high-dimensional data efficiently. This architecture excels in both local and global dependency capture while optimizing computational complexity through innovative grouped convolutions. Paired with multi-task learning, ResNeXt elevates model accuracy and robustness in dynamic financial markets, addressing tasks like trend forecasting and risk assessment. By automating feature extraction from raw financial data, it eliminates the need for manual engineering. Designed with a modular structure, ResNeXt promotes easy scalability and high-performance data processing, making it indispensable for modern algorithmic trading strategies.

๐Ÿ‘‰ Read | AppStore | @mql5dev

#MQL5 #MT5 #DeepLearning
โค50๐Ÿ‘Œ6๐Ÿ‘จโ€๐Ÿ’ป3โœ2
The Comm.mqh file has undergone recent updates. Version 1.08 was released on January 24, 2025, followed by version 1.09 on February 3, 2025. These updates addressed the requirement to display information from the service directly onto the terminal's first chart. An option to specify the chart ID in the comment was integrated into this functionality. The latest update, version 1.10, rolled out on May 31, 2025, introduced minor modifications to ensure compatibility with the new compiler standards. These updates aim to enhance the file's utility and maintain alignment with current development practices.

๐Ÿ‘‰ Read | Freelance | @mql5dev

#MQL5 #MT5 #update
โค26๐Ÿ‘Œ2๐Ÿ‘จโ€๐Ÿ’ป2๐Ÿ‘1
Part 44 focuses on the Change of Character (CHoCH) strategy development in MQL5, which identifies potential trend reversals through swing high/low breaks. This system scans bars to mark swing highs and lows, using labels such as HH/LH/LL/HL, to determine trends and initiate trades on breakout signals. We implement options for bar or tick-based modes, fixed trade levels, risk management strategies, and visual elements like icons and labels.

The implementation includes global variables and input parameters for user configurations. Functions are defined for chart visualization, swing point labeling, and CHoCH breakout indication. Events and conditions are set to trigger appropriate trades, incorporating trailing stops for securing gains.

The system requires thorough backtesting and careful risk management prior to live deployment, making it a robust f...

๐Ÿ‘‰ Read | Forum | @mql5dev

#MQL5 #MT5 #AlgoTrading
โค28๐Ÿ‘Œ2๐Ÿ‘จโ€๐Ÿ’ป2
Extracting close prices from daily candle data involves a systematic approach similar to that used for opening prices. Each string array representing daily data follows a consistent structure, permitting us to identify the location of the close price consistently across all records. Typically, the close price is located following other components such as the opening price, highest and lowest prices.

Starting with string arrays for each day, identify the index corresponding to the close price. This often follows the low price value, ensuring each day's structure is preserved. Convert the extracted string representing the close price into a double data type, supporting precise arithmetic operations and facilitating future analyses.

Repeat this extraction and conversion for all daily records, capturing each close price. By collating these values into a ...

๐Ÿ‘‰ Read | Calendar | @mql5dev

#MQL5 #MT5 #MQL5
โค16โšก2๐Ÿ‘Œ2๐Ÿ‘จโ€๐Ÿ’ป2๐Ÿ‘1
Technical analysis often prioritizes price, neglecting a crucial component: volume. Volume serves as the market's engine, providing insights into why price movements occur. High volume indicates strong, reliable trends, while low volume suggests potential reversals.

Volume data differs between markets. Real volume in stock exchanges offers exact numbers, while tick volume in forex acts as a proxy through price changes. Despite differences, tick volume aligns closely with actual trading activity.

This analysis introduces the Volume Boundary indicator, converting raw volume data into a bounded, interpretable format. By using mathematical transformations and smoothing functions, it offers standardized volume insights suitable for algorithmic trading. Understanding volume enhances strategic trading, moving beyond surface-level price observations.

๐Ÿ‘‰ Read | Calendar | @mql5dev

#MQL5 #MT5 #Volume
โค20๐Ÿ‘5๐Ÿ‘จโ€๐Ÿ’ป2
Trade like a seasoned pro with this innovative accounting tool for MetaTrader 5 and beyond. Discover a comprehensive system designed to transform the way traders manage capital. By using a clear, data-driven approach, traders can separate personal finances from trading capital, providing balanced decision-making and risk management. The highlights include SQLite data storage with efficient transactions, a user-friendly tkinter interface, and robust analytics using pandas and matplotlib for financial insights. Elevate your trading confidence and performance by focusing on key metrics for real financial literacy and control. Automate, streamline, and conquer the complexities of trading with precision and foresight.

๐Ÿ‘‰ Read | Freelance | @mql5dev

#MQL5 #MT5 #Finance
โค30๐Ÿ‘จโ€๐Ÿ’ป3
Structs offer a fundamental bridge between object-oriented and conventional programming. They simplify data management, yet demand careful handling, especially when passing values to functions or procedures. Historical constraints of languages like C have given way to safer data transfer mechanisms. Effective use involves minimizing the knowledge functions require about structures.

Understanding structures as special data types enriches programming flexibility. Global struct declarations allow smoother data transfer, a common practice in languages like Python and JavaScript. This aids in reducing function overloads, enhancing code efficiency. Employing structures in this way allows for clearer code organization, data encapsulation, and easier management of complex datasets. Proper implementation ensures a clean, efficient codebase ready for future expa...

๐Ÿ‘‰ Read | Freelance | @mql5dev

#MQL5 #MT5 #coding
โค41๐Ÿ‘จโ€๐Ÿ’ป7โœ3
An effective signal indicator for MetaTrader 5 combines RSI and Moving Average to identify trend-following signals. Designed as a clean visual tool, it aids manual trading or provides signals for Expert Advisors. The strategy draws arrows based on specific conditions. For a buy signal, a blue arrow appears when the closing price is outside the Moving Average, and the RSI value exceeds 50, indicating an uptrend with bullish momentum. For a sell signal, a red arrow is drawn when the closing price falls below the Moving Average, and the RSI is below 50, confirming a downtrend with bearish momentum.

Features include clean, commented code and customizable parameters for RSI and MA periods. The indicator utilizes standard MT5 buffers, making it ideal for iCustom() function use in Expert Advisors.

๐Ÿ‘‰ Read | Calendar | @mql5dev

#MQL5 #MT5 #Indicator
โค31โšก2๐Ÿคจ2๐Ÿ‘จโ€๐Ÿ’ป2
The development and refinement of the Table View control in the MVC paradigm has led to significant advancements in both the Model and View components. Initial efforts focused on creating a foundational object for graphical elements. Progress is now moving towards simple controls, which will eventually be used as components for more complex UI elements. These controls will enable interactivity, essential for the Controller component, thanks to MQLโ€™s integrated event model.

The Base class is being refined for graphical objects by organizing event handling to connect the View and Controller components. This involves refining classes, macros, and enumerations, primarily focusing on the base graphical element object. The implementation includes methods for file operations, refining object descriptors, and utilizing efficient event-driven logic.

Auxiliary classes...

๐Ÿ‘‰ Read | AlgoBook | @mql5dev

#MQL5 #MT5 #MVC
โค25๐Ÿ‘จโ€๐Ÿ’ป5
Explore a systematic approach to improving logging in MetaTrader 5 using principles from Python's logging module. Gain insights into configuring specific parameters like file naming, size limits, and verbosity control through a custom MQL5 class. Optimize file I/O operations by utilizing caching mechanisms, reducing execution time in strategy tests significantly. Understand the convenience of defining tailored log messages with variable formats and severity levels, from debug to critical. This advanced logging system facilitates more maintainable and debuggable trading code, aligning with professional software development standards. Learn how to effectively integrate these practices into your algorithmic trading setups.

๐Ÿ‘‰ Read | NeuroBook | @mql5dev

#MQL5 #MT5 #Logging
โค25๐Ÿค”2๐Ÿ‘จโ€๐Ÿ’ป2
Discover how to transform forex chaos into clarity with a cutting-edge currency strength indicator on MetaTrader 5. This innovative tool evaluates real-time strength across three timeframes (H1, H4, D1) using a smart weighting system to highlight true market dynamics. The multi-level analysis dashboard aggregates data with a dynamic ranking system, offering traders a comprehensive view of market movements. Designed for both seasoned and aspiring traders, the indicator delivers precise insights for strategic decision-making, ensuring timely and profitable trading actions. Dive into algorithmic trading and elevate your market analysis with this robust and intuitive solution.

๐Ÿ‘‰ Read | AlgoBook | @mql5dev

#MQL5 #MT5 #Forex
โค55๐Ÿ‘€5๐Ÿ‘จโ€๐Ÿ’ป3โœ2๐Ÿ’ฏ1
The Dynamic Gaussian Channel indicator constructs dynamic support and resistance levels by utilizing smoothed price data through a Gaussian filter. It consists of three main lines: resistance, median, and support. The algorithm applies Gaussian smoothing to the high and low prices to identify extrema over a specified period and creates a channel based on the smoothed values.

It offers customizable parameters, allowing users to adjust the calculation period and line colors/styles. During initialization, the Gaussian filter weights are calculated for smoothing. The smoothing process applies this filter to high and low prices. Resistance is determined by the maximum smoothed high, support by the minimum smoothed low, and the median by the average of these two.

Implementation uses indicator buffers, the Gaussian filter with a 5-bar window, and is opt...

๐Ÿ‘‰ Read | Quotes | @mql5dev

#MQL5 #MT5 #Indicator
โค13๐Ÿ†6๐Ÿ‘จโ€๐Ÿ’ป3
The script effectively compiles total profits and swaps for each currency pair, enhancing its utility for hedging strategies and accounts. It accommodates multiple entries that rely on trading signals, promoting efficient analysis of financial performance. This feature is particularly beneficial for traders who require comprehensive oversight of their trading activities and outcomes. By aggregating these metrics, the script aids in the decision-making process and improves strategic planning. This tool integrates seamlessly into trading routines, offering valuable insights into overall profitability and financial health of hedging activities. The meticulous attention to detail supports informed trading strategies.

๐Ÿ‘‰ Read | CodeBase | @mql5dev

#MQL5 #MT5 #script
โค13๐Ÿ‘5
Our latest exploration into statistical arbitrage reveals a pivotal shift in assessing portfolio weight stability by integrating the Rolling Windows Eigenvector Comparison (RWEC) with traditional IS/OOS ADF validation. This approach solves previously discussed issues of long out-of-sample periods and sensitivity in live trading. RWEC's sharp temporal resolution effectively pinpoints precise moments of cointegration breaks, offering better decision-making support and risk management for live trading. This dual approach not only enhances backtest reliability but also provides significant insights into real-time signal stability, making it invaluable for both traders and MetaTrader 5 developers focused on robust, adaptive algorithmic solutions.

๐Ÿ‘‰ Read | Freelance | @mql5dev

#MQL5 #MT5 #StatArb
โค14๐Ÿ”ฅ2
Explore innovative enhancements to the classical moving average crossover strategy, tackling its common pitfalls like noise and delayed signals. The article delves into robust filtering to enhance signal reliability, utilizing statistical models for superior trade selection. The discussion includes practical backtesting, with consistent parameters, spanning 2022 to 2025. Initial strategy improvements focus on candle wick analysis, leading to stable uptrends in results. Further advancements utilize machine learning, notably through ONNX models, enhancing decision-making. Transitioning to non-linear models like random forests offers deeper market insights, correcting bias and leveraging data relationships, aiming for refined trade accuracy and performance.

๐Ÿ‘‰ Read | Docs | @mql5dev

#MQL5 #MT5 #Strategy
โค3