MQL5 Algo Trading
388K 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
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
An upgrade has been developed for the Admin Panel EA, introducing the third sub-panel to expand its functionality. This enhancement integrates statistical tools, automating market metric analysis with PieChart visualizations. Key focuses include win-to-loss ratios and trade-type categorization, enabling swift assessments of trading performance across asset classes like Forex, Stocks, or Options.

Using MQL5's PieChart and ChartCanvas classes, the Analytics Panel offers real-time data visualization. This boosts decision-making speed and accuracy. The new development enhances Admin Panel EA's robustness, providing critical insights. Introducing these advanced statistical tools underscores the project's educational and practical significance.
#MQL5 #MT5 #Algorithm #Analytics

Read more...
๐Ÿ‘35โค24๐Ÿ‘Œ2๐Ÿ‘จโ€๐Ÿ’ป1
The Fibonacci Bollinger Bands indicator has been converted from Pine Script to the MQL5 language. This tool merges Bollinger Bands with Fibonacci levels, enabling traders to spot support and resistance zones more effectively. Key features include automatic Fibonacci level calculations on Bollinger Bands, offering a distinct viewpoint for breakout and reversal trading strategies. This indicator is fully compatible with MetaTrader 5, catering to those seeking advanced technical analysis instruments. Suitable for traders aiming to refine their market analysis with integrated Fibonacci insights. Consider evaluating its utility in your trading strategy.
#MQL5 #MT5 #Indicator #Strategy

Read more...
๐Ÿ‘21โœ10โค10๐Ÿ‘Œ3๐Ÿ‘จโ€๐Ÿ’ป3
A new time utility library offers over 80 functions to efficiently handle time variables. Designed for high-performance applications, the library's performance mode is optional and can be activated at compile time using a #define directive. By enabling this mode, the library substitutes MQL's TimeToStruct and StructToTime functions with more efficient versions, enhancing performance in software requiring heavy time-related processing. Users can quantify speed improvements by compiling the "performance_mode.mq5" script with and without the performance mode.

Key additions include functions for calculating business days, finding the Nth weekday in a month, and optimized time calculations. Usage examples are available through "basic.mq5" and "advanced.mq5" scripts, showcasing both fundamental and advanced functionality. The latest update introduces the Ti...
#MQL5 #MT5 #Script #Performance

Read more...
โค26๐Ÿ‘16๐Ÿ‘Œ3โšก2โœ2๐Ÿ‘จโ€๐Ÿ’ป2
Explore innovative algorithmic trading solutions with the cutting-edge MLKV method for MetaTrader 5. This advanced technique capitalizes on multi-layer Key-Value sharing to significantly reduce memory usage without sacrificing performance. By efficiently distributing Key and Value entities across neural layers, MLKV offers a superior balance between memory consumption and model accuracy. Designed with developers in mind, this approach integrates seamlessly with existing MQL5 frameworks, enhancing the implementation of algorithmic trading strategies. Discover how MLKV and underlying techniques like MQA and GQA present scalable, resource-efficient solutions, empowering traders and developers to tackle complexities in trading technology with ease.
#MQL5 #MT5 #MLKV #AI

Read more...
๐Ÿ‘40โค25๐Ÿ‘Œ4๐Ÿคฃ4๐Ÿ‘จโ€๐Ÿ’ป2๐Ÿ”ฅ1
The Double ZigZag indicator offers an analytical tool for visualizing buy and sell levels on price charts. Users can configure take profit (TP) and stop loss (SL) parameters in the settings. The indicator features two distinct ZigZag patterns: one representing buy price movement and the other representing sell price movement. Each pattern marks price extremes for respective movements. Additionally, the chart includes horizontal lines indicating the last levels reached by each ZigZag model, providing clear reference points for potential entry and exit levels. This setup aids in comprehending market trends and making informed trading decisions.
#MQL4 #MT4 #Indicator #Strategy

Read more...
๐Ÿ‘30โค11โœ9๐Ÿ‘Œ2๐Ÿ‘จโ€๐Ÿ’ป2
Discover the future of algorithmic trading with MetaTrader 5 and Python! Automate your trades using a model-based algorithm, setting strategic stop-losses and take-profits to manage risk effectively. Utilize online trading functions for real-time decisions, enhancing trading precision. Implement intelligent risk management to protect against drawdowns, adapting dynamically to market changes and utilizing optimal lot sizing based on the Kelly criterion. Experience the benefits of multi-currency trading through parallel computing for enhanced performance. Prepare for future advancements with insights into quantum machine learning, reinforcement learning, and swarm intelligence for optimized trading strategies. Stay ahead in the evolving landscape of trading technology.
#MQL5 #MT5 #Algorithm #AITrading

Read more...
๐Ÿ‘23โค12๐Ÿ†4โšก2๐Ÿ‘Œ2๐Ÿ‘จโ€๐Ÿ’ป2
Explore the intricate world of neural networks and uncover the mechanics behind pseudoinverse calculations with MQL5. Delve into the mathematics that fuel these computations and grasp how to implement them effectively without relying on built-in functions. While utilizing arrays instead of matrices, this article clarifies how pseudoinverse is achieved through matrix multiplication and dynamic memory handling. With a focus on educational value over efficiency, the guide walks through each step, offering insights for both seasoned and aspiring MetaTrader 5 programmers. This understanding empowers developers to integrate these techniques into more diverse trading algorithm applications, enhancing their analytical and practical skills.
#MQL5 #MT5 #ML #AI

Read more...
๐Ÿ‘46โค25๐Ÿ‘Œ10๐Ÿ˜3โœ2๐Ÿ‘จโ€๐Ÿ’ป2๐Ÿ†1