MQL5 Algo Trading

@mql5dev


The best publications of the largest community of algotraders.

Subscribe to stay up-to-date with modern technologies and trading programs development.

MQL5 Algo Trading (English)

Are you interested in algorithmic trading and looking to stay ahead of the game? Look no further than the MQL5 Algo Trading Telegram channel! With the username @mql5dev, this channel is home to the best publications from the largest community of algotraders.

MQL5 Algo Trading is your go-to source for staying up-to-date with modern technologies and trading programs development. Whether you are a seasoned trader or just starting out, this channel offers valuable insights, tips, and resources to help you succeed in the fast-paced world of algorithmic trading.

Who is MQL5 Algo Trading? They are a community of passionate algotraders who come together to share their knowledge and expertise in the field. What is MQL5 Algo Trading? It is a platform where you can access the latest information on algorithmic trading, network with like-minded individuals, and enhance your trading skills.

Don't miss out on the opportunity to join this dynamic community of algotraders. Subscribe to the MQL5 Algo Trading channel today and take your trading to the next level!

MQL5 Algo Trading

22 Oct, 10:59


Starting December 1, 2024, the minimum supported versions of the trading platforms will be:

• MetaTrader 4 build 1420 released on May 24
• MetaTrader 5 build 4410 released on June 21

After this date, older versions of desktop terminals will not be able to connect to broker servers.

In the past six months, we have released four MetaTrader 5 updates:

✓ Build 4410: Fixed crashes in the desktop platform, browser compatibility checks, and demo account opening in the web version.
✓ Build 4570: Crosshair mode, line chart and Market Watch setting in the web version, OpenBLAS library for matrix computations and improved ONNX support in MQL5.
✓ Build 4585: Fixed crashes during debugging and testing of MQL5 programs, as well as memory leaks during compilation.
✓ Build 4620: Extended OpenBLAS support, fixed tick history queries.

Each MetaTrader 4 version comes with performance improvements and bug fixes.

Download the latest version to take advantage of new features

MQL5 Algo Trading

22 Oct, 08:00


Creating an Expert Advisor (EA) for the Daily Range Breakout strategy in MetaQuotes Language 5 (MQL5) enables traders to automate trading based on breaking key price levels formed from the previous day's range. This strategy relies on capitalizing on significant price movements beyond identified support and resistance levels, typically observed on 1-hour or 4-hour charts, reducing noise and capturing major trends.

The fundamental steps involve setting the daily high and low price as potential breakout points. A long position is triggered when price moves above the previous day's resistance, while a short position follows a breach below support. Incorporating a stop-loss to manage risk, it's critical to optimize and backtest the EA to ensure it aligns with trading objectives and adapts to various market conditions.

Implementation in MQL5 requires defining an...
#MQL5 #MT5 #EA #Strategy

Read more...

MQL5 Algo Trading

22 Oct, 06:00


Streamline your trading strategy with a data-driven approach using enhanced visualization techniques. By transforming raw market data into intuitive, interactive charts like dynamic candlestick overlays and heat maps, traders gain deeper market insights, facilitating informed decision-making. Connect MetaTrader 5 with Python to automate data collection—efficiently using pandas for analysis—and visualize trends using advanced plotting techniques. Implement reinforcement learning models, like Deep Q-Networks, to predict trading moves by evaluating historical XAU/USD data. Establish socket communication between MQL5 and Python for seamless trade execution. This sophisticated integration reduces human error and enhances trading precision, optimizing entry and exit points for maximized performance.
#MQL5 #MT5 #DataViz #AITrading

Read more...

MQL5 Algo Trading

22 Oct, 04:00


The "EuroSurge" Expert Advisor for MT4 presents a structured approach for managing trades on EURUSD 5-minute charts, incorporating multiple technical indicators for signal generation. Configurable trade size calculations are offered with options for fixed lot size, balance percentage, and equity percentage. Key input parameters include FixedLotSize, TradeSizePercent, and MagicNumber.

Indicator settings encompass Moving Averages, RSI, MACD, Bollinger Bands, and the Stochastic Oscillator. Each indicator can be enabled or disabled individually. Signal detection functions evaluate buy and sell criteria with conditions for each indicator, allowing for relaxed threshold levels compared to standard.

Trade execution includes placing orders with calculated stop loss and take profit using multipliers. Lot sizes are managed through a specialized function that adapt...
#MQL4 #MT4 #EA #AlgoTrading

Read more...

MQL5 Algo Trading

21 Oct, 06:00


Explore the K-Nearest Neighbors (KNN) algorithm, a straightforward yet powerful method for classification and regression. KNN relies on neighborhood proximity, assuming that similar data points cluster closely. Step-by-step, the algorithm selects the number of 'k' neighbors, calculates Euclidean distances, and votes on the classification. Key challenges include setting the optimal 'k' value and handling performance drawbacks, particularly with large datasets in trading applications. Despite these, KNN is effective for clearly labeled, smaller datasets, offering a robust approach to integrating machine learning with MetaTrader 5 for forex and stock predictions. Enhance your trades with data-driven insights using KNN.
#MQL5 #MT5 #KNN #AlgoTrading

Read more...

MQL5 Algo Trading

21 Oct, 04:00


Creating a logger for MQL5 inspired by Python's logging module can enhance project management significantly. The CDKLogger class is designed for simplicity, focusing on ease of use without complex features like hierarchies or rotators. To use it, copy CDKLogger.mqh into the designated MQL\Include\DKStdLib\Logger folder and import the class.

While effective, the class has room for improvement. A notable issue is the frequent parsing of strings by the StringFormat function, even when the log level doesn't necessitate message output. This can be inefficient when dealing with numerous debug messages, making it necessary to conditionally wrap log outputs.

Unfortunately, MQL5 lacks support for passing a dynamic number of parameters to various logging functions such as Debug, Info, and Error. Suggestions for optimizing this process are welcome and could help ref...
#MQL5 #MT5 #Logger #Coding

Read more...

MQL5 Algo Trading

20 Oct, 06:00


Explore the next stage in enhancing library classes for MetaTrader 5, focusing on developing a refined SplitContainer control. This involves creating a dynamic separator object that adjusts panel sizes based on a mouse-driven, hatched area, offering a simplified yet efficient resizing process. The new structure enables direct interaction through panels, integrating updated event IDs and methods to handle user inputs accurately. This iteration emphasizes modifying core design features and improving user-interface interactions, paving the way for sophisticated trading tools and better control management across various trade scenarios. Ideal for developers seeking to integrate flexible interface components within their trading systems.
#MQL5 #MT5 #Algorithm #Programming

Read more...

MQL5 Algo Trading

20 Oct, 04:00


The Expert Advisor operates using the 'iVIDyA' indicator, which provides signals exclusively at the start of a new bar. Positions are opened with predefined Stop Loss and Take Profit settings, and trailing is not employed. At any given time, the system maintains no more than one active position. Upon receiving a new signal, any opposite position will be closed immediately. Optimization is possible by adjusting the 'Working timeframe' parameter for tailored performance. This EA does not layer multiple positions, ensuring a straightforward approach to trading within the market structure.
#MQL5 #MT5 #EA #Strategy

Read more...

MQL5 Algo Trading

19 Oct, 08:00


Reinforcement Learning (RL) is transforming algorithmic trading with its adaptability to market fluctuations. It refines decision-making under uncertain conditions, enhancing strategies by optimizing trade execution through continuous feedback. Unlike traditional linear models, RL's nuanced approach balances exploration and exploitation. In implementing SARSA, an on-policy algorithm, developers can expect safer decision-making by considering real-time actions to update Q-values. This method, compared to Q-Learning, excels in unpredictable markets, making SARSA favorable in environments like JPY trading pairs. Practical applications span improved risk management to scalable multi-asset strategies, underscoring RL's growing significance in sophisticated trading systems.
#MQL5 #MT5 #RL #AITrading

Read more...

MQL5 Algo Trading

19 Oct, 06:00


Explore expert approaches to securing Admin Panels in MQL5 with password protection, enhancing authentication without compromising user experience. The integration of MQL5's robust security features, like encryption and account-based licensing, safeguards intellectual property while ensuring only authorized access. Learn about implementing a password-based authentication mechanism with a user-friendly interface for sensitive functionalities. Addressing potential vulnerabilities, this method employs concepts like secure password management and seamless user input handling. Dive into the process of fortifying applications against unauthorized access using advanced MQL5 protection techniques, fostering a secure environment for both developers and traders.
#MQL5 #MT5 #Security #AdminPanel

Read more...

MQL5 Algo Trading

19 Oct, 04:00


This indicator visually represents the high and low boundaries of the previous three days on a chart. It automatically updates the current day's levels throughout the trading session. The feature allows users to assess recent price action trends and potential support and resistance areas effectively. Its primary function is to aid in identifying key market levels quickly without cluttering the chart with too much information. This tool is particularly useful for those seeking to understand market behavior over several days, assisting in making informed trading decisions based on historical price levels. Designed for users aiming for efficient analysis, it integrates seamlessly into daily chart reviews.
#MQL5 #MT5 #Indicator #Trading

Read more...

MQL5 Algo Trading

18 Oct, 10:00


In the recent update on developing a replay system, the focus shifted to enhancing the Chart Trade Project. The initial attempts to integrate a control indicator on the chart using a service proved challenging, emphasizing the need to convert MQL5 scripts into services effectively. A service can operate independently from a specific chart, which facilitates ongoing chart monitoring.

The article highlights differences between scripts and services, illustrating how a simple moving average script can be transformed into a service. This involves crucial property adjustments in the code to ensure functionality even without direct chart linkage. The enhanced service can automatically reintroduce indicators if removed, offering an innovative method for maintaining chart configurations.

Additionally, the discourse extends to the practical application, such as...
#MQL5 #MT5 #ReplaySystem #MQL5

Read more...

MQL5 Algo Trading

18 Oct, 08:00


Explore the creation of a comprehensive Pending Orders Management library for MetaTrader 5, designed specifically with algorithmic traders in mind. This article delves into structuring a functional EX5 library using standard MQL5 functions to open, modify, and manage pending orders efficiently. Discover how to streamline the development process by importing this library, which significantly reduces code redundancy and accelerates project timelines. Learn to implement practical error-handling strategies and ensure trading permissions are met. With a focus on enhancing trading efficiency, this library is an essential toolkit for both novice and experienced MQL5 developers aiming to optimize their algorithmic strategies.
#MQL5 #MT5 #MQL5 #Libraries

Read more...

MQL5 Algo Trading

18 Oct, 06:00


Discover a streamlined approach to analyzing historical trades with a custom MetaTrader 5 script. Designed to minimize manual tasks, this script automates data collection from historical trades, generating comprehensive charts for enhanced decision analysis. Whether you prefer analyzing single deals or multiple trades over a specified period, the script flexibly caters to all needs. Optimize your analysis by setting multiple timeframes and customize chart templates for a richer visual display. This tool significantly reduces time spent on technical tasks, allowing traders to focus on strategy refinement. Ideal for developers and algorithmic traders aiming to bolster trading efficiency and explore new algorithmic ideas.
#MQL5 #MT5 #script #AlgoTrading

Read more...

MQL5 Algo Trading

18 Oct, 04:00


The Colored SAR indicator provides enhanced visibility into price trends by changing colors with direction shifts. This tool supports various alert types for maximum flexibility: an audible alert for immediate attention, email notifications for those who prefer updates in their inbox, and push notifications for instant alerts on mobile devices. It's designed to ensure traders receive timely information on market movements without constant screen monitoring. Adjustable settings cater to individual preferences, aiding efficient decision-making. With its user-friendly alerts system, the Colored SAR indicator streamlines market analysis and improves responsiveness to trend changes.
#MQL5 #MT5 #Indicator #TradingAlert

Read more...

MQL5 Algo Trading

17 Oct, 12:00


To address a coding anomaly related to neural network visualization, trigonometric functions, specifically the secant, play a critical role. An error causing data points to display incorrectly on the X and Y axes is identified. The inversion stems from incorrect index handling in the code, an issue resolved by adjusting even and odd indices in global arrays. Fixing this aligns data representation and prevents unauthorized memory access errors. Implementing a revised code version allows for correct graph depiction. Such meticulous attention to array element positioning is crucial for precise computational outcomes and effective debugging in programming practices.
#MQL5 #MT5 #NeuralNet #AI

Read more...

MQL5 Algo Trading

17 Oct, 10:00


The article delves into the predictive capabilities of the MACD indicator on EURUSD, assessing whether AI can address its inherent lag. Using a customized MQL5 script to gather extensive data, the analysis discovered that MACD might not effectively predict future price levels due to its non-linear relationship with prices. Through cross-validation and feature importance tests, OHLC data was found more informative. The article experimented with deep learning models, but simple models like linear regression outperformed complex neural networks. Ultimately, a Support Vector Machine model was optimized and exported to ONNX format, facilitating its integration with MetaTrader 5 for enhanced trading strategies.
#MQL5 #MT5 #MACD #AITrading

Read more...

MQL5 Algo Trading

17 Oct, 08:00


Unlock the potential of MetaTrader 5 with our guide on building an interactive trading dashboard using MQL5's Controls class. Enhance your trading efficiency with a structured GUI panel featuring essential buttons—Trade, Close, and Information. The Trade section integrates functionality for volume, price, SL, and TP controls, alongside actions like Buy and Sell. The Close section streamlines trade management with options to close all profits or pending orders. Meanwhile, the Information panel provides vital market insights and status updates. Learn to assemble this panel within MetaEditor, utilizing key MQL5 libraries, thereby creating a seamless and user-friendly trading experience. Embrace innovation in algorithmic trading by developing sophisticated interfaces that cater to practical trading needs.
#MQL5 #MT5 #Dashboard #AlgoTrading

Read more...

MQL5 Algo Trading

17 Oct, 06:00


Explore the intricacies of HTTP request bodies and their vital role in client-server data exchange. This article sheds light on configuring HTTP body formats like JSON in the Connexus library for MetaTrader 5, facilitating algorithmic trading development. Delve into the advantages of using char arrays over strings for performance in high-volume data scenarios. The newly introduced CHttpBody class in the Connexus library simplifies managing request bodies, supporting text and binary data without complex formatting issues. The insights provided streamline integration with REST APIs, essential for modern trading applications, enhancing data transmission efficiency and compatibility for developers. Discover more in this ongoing series.
#MQL5 #MT5 #HTTP #JSON

Read more...

MQL5 Algo Trading

17 Oct, 04:00


The Crossover Vortex EA focuses on identifying pivotal moving average crossovers, delivering precise buy and sell indicators during crucial market conditions. With fully adjustable settings for moving averages, take profit, stop loss, and slippage, it allows traders to tailor their approach, heightening efficiency and reducing risk. Ideal for those looking to leverage market momentum with accurate and timely trades.

Key parameters include the Position Size to manage risk per trade, and "Use Entry to Exit," which offers the option to exit on the next crossover or predetermined TP and SL levels. Define the Stop Loss in pips for effective risk management, and set the Take Profit to ensure strategic exits. Adjust slippage tolerance for precise execution in volatile markets. Configure MA Fast and Slow Periods to align with your trading strategy.
#MQL4 #MT4 #EA #AlgoTrading

Read more...