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
Enhancements have been made to the MQL5 Economic Calendar dashboard, which now includes live update functionality for continuous display of critical events. Previous designs included a filter by currency, importance, and time. With real-time updates, timely decision-making is improved as the calendar reflects the latest data. Real-time news updates are implemented by comparing periodically stored economic events. Two arrays, "current_eventNames_data" and "previous_eventNames_data," manage and compare event data. Live refresh ensures updates reflect current events in real-time. This setup supports dynamic updates to the dashboard, making it a valuable tool for traders in MetaTrader 5. Further improvements will focus on integrating news into trading strategies.
#MQL5 #MT5 #RealTime #AlgoTrading

Read more...
πŸ‘41❀25πŸ‘¨β€πŸ’»5πŸ†4πŸ‘Œ3🀨2πŸ‘€2
This indicator identifies and draws key price levels within a user-defined range on financial charts. Users can set the range in either points or percentages. The process begins with the user inputting the desired price range through the indicator's settings. The indicator then actively scans the chart data. Once the price fluctuationβ€”the difference between maximum and minimum pricesβ€”meets the specified criteria within a given observation period, the scanning process halts. The relevant price levels are then visually displayed on the chart, offering a clear representation of the specified range. This tool aids in technical analysis by highlighting significant price zones.
#MQL4 #MT4 #Indicator #Strategy

Read more...
πŸ‘28❀23πŸ‘Œ4πŸ‘¨β€πŸ’»4⚑2πŸ‘2
ProfitTrail Pro is a tool designed to manage stop-loss orders effectively. It automatically adjusts the stop-loss as the price changes, maintaining a specified distance between the stop-loss and the market price. This ensures that traders can protect their gains and mitigate potential losses. Key parameters include the number of pips needed for the trailing stop to activate and the distance maintained between the stop-loss and the market price. It is suitable for traders seeking a method to safeguard profits without the need for constant market monitoring, offering more strategic trade management.
#MQL4 #MT4 #EA #Strategy

Read more...
πŸ‘22❀13πŸ‘¨β€πŸ’»4⚑3πŸ‘Œ2πŸ†1
Explore the integration of built-in indicators in MQL5, focusing on developing a Relative Strength Index (RSI)-based Expert Advisor (EA) for automated trading. This part guides through utilizing indicator handles and buffers to access RSI values and associated candlestick data. The EA strategically interprets these values to identify overbought or oversold conditions, utilizing a step-by-step EA construction process. Leveraging functions like iRSI and CopyBuffer, the tutorial ensures precise data retrieval for reliable market analysis. The approach emphasizes risk management and modification, providing clear, practical insights for traders and developers aiming to enhance their algorithmic trading strategies.
#MQL5 #MT5 #Indicator #EA

Read more...
πŸ‘43❀26πŸ‘¨β€πŸ’»3πŸ‘Œ2
A colored histogram indicator, specifically designed using DRAW_COLOR_HISTOGRAM2, is now formulated to display cumulative candles composed of bars moving in the same direction. This technique provides a clear visualization of trend dynamics in a subwindow, where bars representing identical directional movement are aggregated into a single entity. This approach allows for more efficient tracking of consistent price movement patterns and offers a consolidated view of market trends. It is particularly useful for identifying sustained rallies or declines, enhancing decision-making processes in technical analysis by simplifying the visual representation of price momentum.
#MQL5 #MT5 #Indicator #Strategy

Read more...
πŸ‘20❀18πŸ‘Œ3πŸ€”2πŸ‘¨β€πŸ’»2
Chemical Reaction Optimization (CRO) continues to demonstrate its effectiveness in solving optimization problems through its complex algorithm inspired by chemical reactions. The algorithm operates on principles of molecules and elementary reactions, employing processes such as decomposition, synthesis, and both intra- and intermolecular collisions to explore search spaces effectively.

Implementation involves initializing molecules, calculating kinetic energy, and conducting operations based on algorithm parameters. Random selection for synthesis or decomposition plays a critical role in identifying optimal solutions.

In testing, CRO was evaluated against Hilly, Forest, and Megacity functions, showcasing decent results although with occasional convergence slowdowns. The performance highlights its potential while also pointing to areas for furthe...
#MQL5 #MT5 #Algorithm #Optimization

Read more...
❀16πŸ‘14✍8πŸ‘¨β€πŸ’»4πŸ‘Œ2
MetaTrader 5 build 4730 introduces new features in the MQL5 language, including support for additional OpenBLAS library functions, as well as the new TransposeConjugate and CompareEqual functions. These enhancements provide even greater flexibility for matrix and vector operations.

We've also resolved compatibility issues with the MQL5 integration package for Python. The package is now fully compatible with all Python versions up to 3.13.

Additionally, we've optimized and accelerated platform operations involving price data, improved the account opening dialog, and corrected the display of position values.

Read more...
❀37πŸ‘26πŸ‘Œ5⚑3πŸ‘¨β€πŸ’»3
Discover an automated tool that optimizes the closing of open positions by integrating Bollinger Bands and RSI, two robust technical analysis indicators. This tool is tailored for closing residual trades efficiently at the end of trading sessions, offering precise identification of overbought and oversold levels. It excels in pinpointing optimal exit points, especially in low volatility environments. This combination enhances decision-making for traders seeking to maximize returns and manage risks more effectively. Suitable for those looking to fine-tune their trading strategies with data-driven insights.
#MQL5 #MT5 #AlgoTrading #Indicator

Read more...
❀23πŸ‘13✍2πŸ‘Œ2πŸ‘¨β€πŸ’»1
Learn to seamlessly integrate MetaTrader 5 with Telegram for real-time market insights! This guide elevates the Analytics Forecaster EA by enabling it to deliver key trading metrics directly to your Telegram chat. Discover how to create & manage a Telegram bot, fetch chat IDs, and use MQL5 to automate alerts about market trends, volume changes, and support/resistance levels. This setup empowers traders with instant, actionable data, enhancing decision-making speed and agility. Follow step-by-step instructions to leverage this integration for improved trading strategies and boosted efficiency. Ideal for those aiming to stay ahead in dynamic market environments.
#MQL5 #MT5 #EA #AlgoTrading

Read more...
❀14πŸ‘9πŸ‘¨β€πŸ’»2πŸ”₯1πŸ€”1πŸ‘Œ1
Today's financial markets present significant challenges, especially when distinguishing authentic movements from market noise. An advanced trend confirmation approach has been proposed to address these challenges, focusing on breakout trading. Combining price action with volume analysis, this method uses a dual-confirmation strategy that verifies both price breakouts and volume surges. This integration helps filter out false signals and enhances the identification of viable trading opportunities, improving trade quality and success rates. Incorporating dynamic risk management using the Average True Range (ATR) ensures adaptability to market volatility, enhancing trade execution reliability. This comprehensive approach, with rigorous technical components and machine learning integration, offers a robust framework for navigating volatile markets. Howev...
#MQL5 #MT5 #AlgoTrading #Trading

Read more...
πŸ‘15❀14πŸ‘¨β€πŸ’»3πŸ‘Œ2
Building a breakout trading strategy in MQL5 involves using technical analysis to identify and capitalize on market trends. The focus is the EUR/USD pair over the H1 timeframe, employing a combination of moving averages and the Average True Range (ATR) to guide trade decisions.

The strategy aims to detect breakouts by monitoring prices against predefined high and low levels, confirmed through price action and crossover points of fast-moving (5-period EMA) and slow-moving averages (60-period EMA). Orders are executed based on directional bias validated by these indicators.

Backtesting with historical data from January 2020 to November 2024 is critical to evaluate the strategy's effectiveness and profitability. Monitoring additional pairs, like EUR/GBP and GBP/USD, helps filter false breakouts, enhancing trade accuracy.
#MQL5 #MT5 #Algorithm #Forex

Read more...
πŸ‘38❀17🀨5πŸ‘¨β€πŸ’»4✍2πŸ‘Œ2πŸ‘€1
An update has been made to enhance the EA's functionality by adding several key components. A comprehensive signal buffer has been established, which integrates a full "speed" data buffer for improved performance analysis. Additionally, a buffer specifically for "error" data has been implemented, allowing for more precise identification and handling of discrepancies.

Further refinement includes the introduction of ENUMs for selecting price data efficiently. These enhancements are intended to streamline EA operations, offering a more robust analytical capability and facilitating quicker, more reliable decision-making processes. The update aims to address previous limitations by enhancing data management and utilization within the EA framework.
#MQL4 #MT4 #EA #Trading

Read more...
πŸ‘23❀3πŸ‘¨β€πŸ’»3πŸ‘Œ2πŸŽ‰1
Enhance your trading automation with a revamped order system in MetaTrader 5. Addressing previous flaws, the new system provides clear visualization of order types and expected movements, facilitating decision-making for traders. The updates include intuitive bitmap indicators for easy identification of buy/sell orders and position durations, distinguishing between Day Trade and Swing Trade. By using a message-driven architecture, the system efficiently processes platform events, ensuring precise order management. Suitable for both novice and experienced algorithm developers, this approach offers a practical framework for further customization, fostering better trading strategies and system robustness.
#MQL5 #MT5 #EATrading #AlgoTrading

Read more...
πŸ‘36❀22⚑2πŸŽ‰2πŸ‘Œ2πŸ‘¨β€πŸ’»1
The described indicator provides functionality to track price movements over a set number of bars by plotting significant price levels. It features the ability to draw a channel based on the minimum price of Low and the maximum price of High, offering insights into price extremes over the period. Furthermore, the indicator is capable of constructing a channel using the lowest Close prices and the highest Open prices, providing an alternate view on price volatility and potential areas of support and resistance. This dual capability allows for a comprehensive analysis of price patterns, aiding in more informed decision-making for traders and analysts.
#MQL5 #MT5 #Indicator #Strategy

Read more...
❀26πŸ‘20πŸ‘Œ2πŸ‘¨β€πŸ’»2
The current project focuses on enhancing the management of tab controls in a graphical user interface. If a tab control has more tabs than its width can accommodate, headers can either be cropped with scrolling buttons or arranged in multiple rows if a multiline mode is enabled.

Tab size modes determine header sizing: Normal adjusts based on text and padding, Fixed uses preset sizes, and FillToRight stretches tabs to fit the control width. Currently, only tabs on top of the control using Normal or Fixed modes are supported.

A new TabField object, extending from a container class, is introduced to manage tab interactions. Library classes are updated with new properties for sorting graphical elements and ensuring error handling consistency during graphical object creation.

Furthermore, the development includes implementing inheritance for properties like a...
#MQL5 #MT5 #UXDesign #Tabs

Read more...
πŸ‘27❀17😁4πŸ‘Œ3πŸ‘€2πŸ‘Ύ2πŸ‘¨β€πŸ’»1
The MetaTrader 5 Web Terminal is an advanced, fast, and reliable trading solution. It operates on any device across all operating systems and does not require additional software installations. All you need to access your account is a web browser.

To help you get acquainted with the web terminal features, we have created a short video. In just 4 minutes, you will learn how to:

βœ“ Connect to your account
βœ“ View quotes and charts
βœ“ Execute trades
βœ“ Analyze markets using indicators and objects
βœ“ Monitor your account status and trading history

Watch the video
πŸ‘57❀11✍8πŸ”₯4πŸ‘€3🀑2πŸ‘¨β€πŸ’»2
The latest Expert Advisor leverages the Alligator trend detection method with robust automation and customizable features. It allows for precise control over Moving Average parameters, tailoring the Jaw, Teeth, and Lips to your strategy. Automates trade execution based on detected trends, facilitating both buy and sell operations under predefined conditions. Integrates a close-on-next-signal mechanism for risk management by closing trades upon a reverse signal.

Configurable elements such as trade lot size, stop loss, take profit, and slippage tolerance help manage risk while ensuring favorable trading conditions. The system requires a set minimum number of bars before initiating trades. With user control over trade activity, this tool offers flexibility and ease of use. The Alligator Indicator efficiently identifies trends, assessing current and prior value...
#MQL4 #MT4 #EA #Indicator

Read more...
πŸ‘27❀14✍3πŸ‘€2πŸ€”1πŸ‘Œ1
In Part 5 of the MQL5 series, we enhance the Economic Calendar dashboard by adding interactivity through filter buttons for currency pairs, importance levels, and time ranges. A "Cancel" button provides the ability to clear all filters and dashboard elements. Buttons are responsive to user clicks and offer immediate feedback.

Filter Buttons:
We develop buttons for each filter type. They are organized within the dashboard and distinguishable for easy navigation. Button states and colors change based on the filter's status.

Dynamic Currency Buttons:
Currency filter buttons are dynamically generated to fit the layout. Enabling the currency filter copies all selected currencies into a specified array, reflecting real-time updates.

Responsive Dashboard:
An event listener tracks button clicks using MQL5's OnChartEvent. If the "Cancel" button is clicked...
#MQL5 #MT5 #AlgoTrading #Dashboard

Read more...
πŸ‘24❀15πŸ‘Œ2
CatBoost is a highly efficient machine learning model, particularly suited for decision-oriented tasks. It shares characteristics with models like XGBoost and Random Forest, known for handling complex datasets and offering insights in areas such as feature analysis and risk management. This discussion examines the integration of a trained CatBoost model into a moving average cross trend-following strategy.

Key insights include data collection via MetaTrader 5, model training in Python, and feature selection based on trading signals. Statistical testing is crucial to validate the models. Initial use of threshold filtering on trade probabilities may improve profitability, minimizing overfitting risks. Future work may enhance results by tuning hyperparameters, feature engineering, and exploring other modeling techniques.
#MQL5 #MT5 #CatBoost #AlgoTrading

Read more...
πŸ‘17❀11πŸ‘¨β€πŸ’»4πŸ‘2⚑1πŸ‘Œ1
The article series offers an in-depth look at the newly developed EX5 libraries that significantly enhance trade management and analysis in MQL5. PositionsManager.ex5 and PendingOrdersManager.ex5 efficiently manage active market positions and pending orders, alongside practical user interface examples. The focus shifts to an essential library designed to handle the history of completed trades, orders, and positions, generating comprehensive trade reports for performance evaluation of trading systems.

A detailed introduction to trade lifecycle in MQL5 is presented, highlighting the significance of direct market and pending order processes, with emphasis on order execution and position tracking via POSITION_ID. This forms the backbone of understanding trade status changes and lifecycle management.

The difference between positions and trades is clarified, v...
#MQL5 #MT5 #Positions #MQL5

Read more...
πŸ‘15❀8πŸ‘¨β€πŸ’»4⚑2πŸ”₯2πŸ‘Œ2✍1