MQL5 Algo Trading
387K subscribers
2.56K photos
2.56K 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
Enhancing Expert Advisors for a more engaging trading experience involves critical code modifications. These adjustments focus on removing unnecessary components like Chart Trade to streamline operations. By integrating the Chart Trade as an indicator, the EA becomes more efficient. Efficiency further improves with sound alerts. This auditory feedback provides quick updates without needing to monitor charts continuously. Different sound setups cater to specific events, enhancing trader response times. Memory management gains importance through event-driven checks to ensure the EA's readiness. These structured modifications improve system stability and reliability, although personalization depends on individual user preferences.
#MQL5 #MT5 #EA #AlgoTrading

Read more...
πŸ‘42❀24πŸ”₯4πŸŽ‰3πŸ‘€3πŸ‘Œ2πŸ‘¨β€πŸ’»2
An advanced indicator visualizes the last three candles from a larger timeframe on a current chart. This is achieved through the use of OBJ_RECTANGLE graphical objects, which construct rectangles at the High and Low prices of these candlesticks. By rendering these rectangles, traders can effectively observe the price action from a broader perspective within their existing timeframe. Such visualization aids in identifying trends and potential market reversals by providing clarity on key price levels. This method is particularly useful for those who incorporate multi-timeframe analysis into their trading strategy, enhancing decision-making processes through a more comprehensive market overview.
#MQL5 #MT5 #Indicator #AlgoTrading

Read more...
πŸ‘32❀18πŸ‘¨β€πŸ’»3πŸ‘Œ2πŸ†2
Explore the Connexus library's development, focusing on a crucial aspect of the HTTP protocol: methods and status codes. Learn about various HTTP methods like GET, POST, PUT, and DELETE, each serving different purposes in client-server communication. Understand how status codes categorize responses, from informational to error messages, enabling effective error handling. The creation of CHttpMethod and CHttpStatusCode classes in the Connexus library provides developers with enhanced control over HTTP communication. By understanding and implementing these features, developers can improve API interactions, reliability, and efficiency in algorithmic trading applications.
#MQL5 #MT5 #HTTP #Coding

Read more...
πŸ‘49❀29πŸ‘Œ5⚑4πŸ†2πŸ‘¨β€πŸ’»2
Introducing a basic trade management panel designed to enhance the backtesting of trading strategies. This tool offers essential features to streamline trade management tasks during the backtesting process. It provides an organized interface to set up and modify trades efficiently. Users can manage entry and exit points, stop losses, and take profits with ease. The panel supports detailed tracking of trade performance, allowing for comprehensive analysis and optimization of strategies. This trade management solution serves as a valuable resource for traders aiming to fine-tune their trading approaches effectively. Its use can lead to more informed decision-making and refined strategy outcomes.
#MQL4 #MT4 #Strategy #AlgoTrading

Read more...
πŸ‘38❀14✍9πŸ‘¨β€πŸ’»5πŸ”₯2πŸ†2πŸ‘Œ1
The extended version of the CalendarForDates.mq5 script offers customizable input variables for filtering records by country code, currency code, and time range. If not specified, it retrieves a complete calendar. Initial requests might experience delays or timeouts, necessitating a script rerun. Upon successful execution, the output is a CSV file containing select key calendar fields, with the flexibility to modify the source code for additional fields as required.

Users can also provide a *.cal-file, an archived calendar snapshot for a specific time, created by the CalendarMonitorCached.mq5 indicator. Updated mqh-files, namely CalendarFilter.mqh, CalendarCache.mqh, and QuickSortStructT(Ref).mqh, include enhancements and bug fixes over the original versions.
#MQL5 #MT5 #script #AlgoTrading

Read more...
πŸ‘33❀10πŸ”₯2πŸ‘¨β€πŸ’»2⚑1πŸ‘Œ1
The article highlights the FITS (Frequency Interpolation Time Series) method, an innovative approach to time series analysis and forecasting. FITS effectively represents time series data in the frequency domain, using frequency interpolation to expand the analyzed time window with low computational overhead. It employs complex neural networks to assess amplitude and phase, ensuring efficient data analysis. FITS stands out with its low parameter count, making it suitable for resource-constrained environments like mobile devices. Implemented in MQL5, FITS method leverages fast Fourier transform and OpenCL for efficient calculation, creating a scalable solution for both traders and developers interested in advanced algorithmic trading models.
#MQL5 #MT5 #TimeSeries #AlgoTrading

Read more...
πŸ‘19❀11✍2πŸ‘Œ1πŸ‘¨β€πŸ’»1
The Artificial Cooperative Search (ACS) algorithm, inspired by mutualistic interactions and migratory behaviors in nature, is an innovative approach for solving numerical optimization problems. It models two interacting superorganisms, Ξ± and Ξ², as predators and prey to explore search spaces efficiently. Unique operators like prey shuffling and binary matrix-based mutation distinguish ACS, enhancing its convergence speed and solution accuracy. Implemented through detailed steps including population initialization, selection, mutation, and global best solution update, ACS not only mimics cooperative biological interactions but excels in quickly finding optimal solutions for complex challenges. This algorithm represents a leap in biological inspiration for algorithmic design, offering practical benefits to developers and traders.
#MQL5 #MT5 #Algorithm #AI

Read more...
❀32πŸ‘26✍3⚑3πŸ‘Œ3😁2πŸ‘¨β€πŸ’»1
The indicator identifies candlesticks on the price chart exceeding a specified size and marks them for analysis. It offers two measurement options: Points, where the size is based on points (e.g., for a five-digit quote, one point equals 0.00001), and Percentages, where the size is a percentage of the candlestick's value. Users can choose measurement levels such as High/Low, Open/Close, Upper Shadow, or Lower Shadow. By setting the "Size Definitions" parameter, users determine the threshold for candlestick size. When a candlestick meeting the criteria is found, it's marked according to the settings. This flexibility assists in precise candlestick size analysis for enhanced market observation.
#MQL4 #MT4 #Indicator #Trading

Read more...
πŸ‘21❀15🀯2πŸ‘Œ2πŸ‘¨β€πŸ’»1
A service is available for developers needing efficient swap management, aimed at monitoring and recording swap changes for designated symbols. This service routinely inspects the swap rates, logging any updates into CSV files named after each symbol and organized by month. For instance, a file named 202410.csv will contain data for October 2024, capturing the date-time, long swap, and short swap on each line. The system also tracks swap alterations in existing positions, issuing alerts for any variations identified. The program operates as a script within a chart if the directive `#property service` is commented out, although deploying it as a service is advised. Due to limitations in MQL5's support for the service program type, the code is distributed as a script.
#MQL5 #MT5 #script #Algorithm

Read more...
❀18πŸ‘14πŸ‘Œ2πŸ‘1πŸ‘¨β€πŸ’»1
The previous discussion focused on optimizing backtesting in news-based trading strategies. The primary bottleneck identified was excessive database access, which slowed operations. To improve this, we propose reducing database queries by consolidating daily data retrieval. This involves loading all necessary event data at the start of the day and organizing it by hour for efficient access.

Introducing the Time Variables class enhances time precision by utilizing enumerations for hours, minutes, and seconds. This structured approach simplifies handling time-sensitive scenarios, particularly in volatile market conditions.

Moreover, the DB Access Reduction strategy eliminates frequent database hits by creating a structured array of events. This array is segmented by the hour and accessed only as needed, thereby reducing unnecessary checks and improvi...
#MQL5 #MT5 #Strategy #AlgoTrading

Read more...
πŸ‘16❀11πŸ‘Œ5πŸ‘¨β€πŸ’»1
Explore the integration of the MQL5 Economic Calendar into algorithmic trading systems on MetaTrader 5. The calendar is a vital tool for traders, offering timely updates on economic events with significant market impact like interest rates and GDP reports. Seamless integration allows developers to programmatically access events using MQL5, aiding in crafting responsive automated trading strategies. Learn to display and manage event data on charts, leveraging this information to automate reactions to market-moving announcements. This practical approach equips traders and developers to enhance their trading algorithms, ensuring they are well-prepared for impactful economic news in the ever-evolving trading landscape.
#MQL5 #MT5 #Trading #Forex

Read more...
❀18πŸ‘16πŸ‘Œ3
The ongoing development of a replay/simulator system for MetaTrader 5 has revealed certain challenges as complexity increases. Ensuring stability and security within a modular model is crucial. The aim is to prevent unintentional misuse by inexperienced users, especially when the system is active.

Recently, an issue with an unstable control indicator was identified, which did not jeopardize the platform but could lead to unexpected failures. The problem stemmed from how chart IDs were handled when the service utilized templates. Attention was shifted from using templates to allow better customization through user-created templates.

A deeper dive into the ChartID functionality revealed discrepancies in ID usage when charts opened. Solutions involved modifying the C_Terminal class and passing chart IDs directly to indicators, thus ensuring accurate ...
#MQL5 #MT5 #Indicator #Simulator

Read more...
πŸ‘37❀21πŸ‘€4πŸ‘Œ3πŸ‘¨β€πŸ’»3🀯1
The custom indicator, Relative Momentum Index (RMI), now has an additional feature: a smoothed line. This enhancement provides a refined analysis by applying a smoothing process using the iMA (Moving Average) algorithm. The smoothed line offers a more stable view of momentum fluctuations, making it easier to identify trends and patterns in the data. This integration aims to improve the precision and clarity of RMI readings, aiding technical analysts in making more informed decisions. The smoothed interpretation can help reduce noise, allowing developers to focus on significant market movements and trends.
#MQL5 #MT5 #Indicator #RMI

Read more...
πŸ‘26❀12πŸ‘Œ4πŸ‘¨β€πŸ’»4⚑1
The integration of cryptography into algorithmic trading is gaining prominence, especially within the MQL5 environment. Cryptography provides essential security measures, making it an indispensable tool for protecting trading algorithms and sensitive data.

MQL5 offers cryptographic functions like CryptEncode and CryptDecode, enabling encryption and hashing. These functions support various methods including DES, AES, and SHA256, ensuring data integrity and protection.

Robust key management is crucial. Secure storage and regular rotation of keys are advised. Combining encryption with hashing further secures data. Performance considerations are vital, as cryptographic processes are resource-intensive.

For algorithmic traders, employing cryptography offers enhanced security, safeguarding intellectual property and ensuring data confidentiality.
#MQL5 #MT5 #Cryptography #AlgoTrading

Read more...
❀22πŸ‘11πŸ‘Œ3πŸ‘¨β€πŸ’»3
Richard Donchian's trend-following strategy has led to the creation of Donchian Channels, a key technical analysis tool. The Donchian Channel consists of three lines: the upper band representing the highest high over a specified period, the lower band showing the lowest low, and the middle line often calculated as an average of the two.

Incorporating Donchian Channel strategies can enhance trading performance. Access to this indicator on MetaTrader 5 provides an advantage, allowing for in-depth study and integration into advanced trading algorithms like the Trend Constraint Expert. Popular strategies utilizing Donchian Channels include Breakout, Crawl, and Mean Reversion, adding robustness and adaptability to trading models.
#MQL5 #MT5 #Donchian #Trading

Read more...
πŸ‘17❀15πŸ‘¨β€πŸ’»3πŸ‘Œ1
MetaTrader 5 offers an extensive range of indicators for market analysis and forecasting:

βœ“ 38 technical indicators, plus 12 additional indicators introduced in build 4230
βœ“ Thousands of custom indicators available for free in the Code Base
βœ“ Thousands of applications developed by professionals, available in the Market

To understand how these indicators work, which signals they provide, and how to use them effectively, members of the algorithmic trading community have created an in-depth discussion on the forum. In that thread, they share insights, practical examples of market scenarios, and charting patterns using analytical tools.

Join the conversation and expand your knowledge
❀19πŸ‘18πŸ”₯4⚑3😎3πŸ‘Œ2πŸ‘¨β€πŸ’»1
The article delves into enhancing the Artificial Cooperative Search (ACS) algorithm, a method inspired by natural ecosystems for solving complex optimization tasks in algorithmic trading. The focus is on three strategic modifications. Initially, augmented matrices improve solution accuracy by tracking function values. A second modification refines selection processes by organizing populations based on fitness instead of randomness and emphasizes random updates to foster diversity. The third enhancement introduces a unified population matrix, sorted by fitness, to streamline selecting predator and prey candidates, promising better precision and faster convergence. These advancements promise increased efficacy in navigating high-dimensional optimization problems within MetaTrader 5.
#MQL5 #MT5 #Algorithm #AI

Read more...
❀31πŸ‘23πŸ‘Œ4😱2πŸ‘¨β€πŸ’»2πŸŽ‰1πŸ‘Ύ1
The described indicator offers a quantitative assessment of an hourly candle's range in percentage terms, compared against an average statistical range. Users can configure an averaging period to define how the relative range is calculated. The "Number Of Bars For Statistics" parameter dictates how much historical data is analyzed to produce average range statistics. Users can adjust the starting point for data collection with the "Shifting Start Of Statistics Calculation" to exclude certain data from influencing recent readings.

The histogram represents the actual range of each hourly candle, visually scaling its size as a percentage. The complementary line indicates the forecasted range, derived from this statistical average. Customization options for both elements include adjustable size and color attributes.

Application is exclusive to the H1 ti...
#MQL4 #MT4 #Indicator #Algorithm

Read more...
πŸ‘13❀11πŸ‘Œ2πŸ‘¨β€πŸ’»2πŸ‘1
The AutoFibo indicator offers automatic Fibonacci levels by drawing retracement lines using recent ZigZag highs and lows, aiding in identifying potential reversal points. Users can select between dynamic levels, which update continuously with new ZigZag data, or static levels, which remain anchored to previous significant highs or lows. This tool allows for customization of Fibonacci line appearance, including color, style, and width, to suit various chart backgrounds and preferences.

Designed for MetaTrader 5, the indicator leverages the platform’s graphical capabilities for efficient charting. Key parameters include ZigZag settings (ExtDepth, ExtDeviation, ExtBackstep), which determine pattern sensitivity, and settings for customizing both dynamic and static Fibonacci lines. The AutoFibo indicator is adaptable for multiple timeframes, supporting bot...
#MQL5 #MT5 #Indicator #Strategy

Read more...
πŸ‘25❀16πŸ‘Œ3πŸ‘¨β€πŸ’»2⚑1πŸ‘1
Explore the Monte Carlo reinforcement learning algorithm, renowned for its episode-based updates that minimize market noise impact compared to Q-Learning and SARSA. This technique updates action-value estimates after completing episodes, reducing frequency but enhancing long-term insights. It excels in adapting trading strategies to varying market conditions by simulating diverse scenarios, helping traders assess risk, profitability, and sustainability. Monte Carlo's adaptability lies in its methodology of evaluating cumulative rewards over episodes and optimizes strategies based on historical performance. Suitable for dynamic market environments, it aids in crafting robust, long-term trading strategies by focusing on comprehensive state-action analysis.
#MQL5 #MT5 #AlgoTrading #ReinforcementLearning

Read more...
πŸ‘13❀5πŸ‘Œ1πŸ‘¨β€πŸ’»1