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
Huawei users with HarmonyOS NEXT can utilize MetaTrader 5 and MetaTrader 4, courtesy of DroiTong, a compatibility tool found in Huawei AppGallery. DroiTong enables Android app functionality on HarmonyOS NEXT, streamlining the availability of essential MetaQuotes applications.

Step-by-step instructions detail the installation process: download DroiTong from the Huawei AppGallery, acquire the necessary APKs like MetaTrader or Tradays, and utilize DroiTong to execute the installation.

To update, download the latest APK and follow the same steps, ensuring settings and data remain intact. Note that Push Notifications aren't supported. DroiTong facilitates seamless integration of financial tools on HarmonyOS NEXT.

👉 Read | Calendar | @mql5dev

#MQL5 #MT5 #MetaQuotes
30👍53👨‍💻3
Developing an Order Block Indicator requires understanding Smart Money Concepts. Order Blocks are critical zones on a chart where large market orders are distributed to avoid significant price shifts. Key in interpreting these areas is identifying candlestick patterns indicating imbalances in supply and demand.

Start with understanding price action. Four consecutive bullish or bearish candlesticks set the stage: the first indicates imbalance, and subsequent ones confirm it. On the intermediate level, incorporate volume indicators. A significant volume increase over 2-3 candlesticks or a spike in a key candlestick can validate an Order Block.

Configure indicator inputs to customize colors, rectangle options, and order block search range. Implement structures in your code to manage order block data efficiently. Initialize variables to store candle t...

👉 Read | Freelance | @mql5dev

#MQL5 #MT5 #Indicator
74👍166👌5👏3👨‍💻3🤔2
A dynamic and colored histogram transforms market analysis by adjusting colors based on key market conditions: MACD crossing the signal line, zero line movements, and trend strength/direction. Customization is emphasized, offering real-time sound alerts for critical MACD events with flexible sound settings, repetition limits, and pause durations between alerts.

The tool employs an intuitive color palette, enhancing quick interpretation of MACD states. Customization extends to adjusting moving average periods and price inputs, tailoring the indicator to your needs. The user-friendly interface simplifies setup, making it accessible for beginners.

Functionality involves calculating MACD and signal line differences, with color-coded histograms indicating crossovers and momentum shifts. Alerts announce pivotal events like line crossings. Benefits include ...

👉 Read | Freelance | @mql5dev

#MQL5 #MT5 #Indicator
34👍12👨‍💻2🏆1👾1
Proper implementation of replay and simulator systems utilizing MQL5 requires understanding advanced concepts like dynamic handle management and inter-function dependencies. Previous articles outlined theoretical foundations and initial code structures, but practical application demands further insight into these mechanisms.

In control indicators, discrepancies arose due to the unexpected persistence of the _LastError variable despite efforts to reset it. This situation suggests possible inter-chart leakage of information or unanticipated behavior in the MetaTrader 5 environment. Such issues necessitate a refined error-handling approach, ensuring only specific user-defined errors lead to indicator removal.

Dynamic handle management in services differentiates them from Expert Advisors and indicators, as services do not attach to charts. Static handle...

👉 Read | Signals | @mql5dev

#MQL5 #MT5 #Algorithm
57👍20👌9🏆7👨‍💻73🎉3
Simple moving averages are traditionally calculated using loops to sum up prices over a set period before dividing by the number of periods. While efficient for single instances, loop-based calculations can cause performance bottlenecks when scaling up. This latency can affect algorithmic efficiency, particularly in systems requiring multiple calculations. An alternative method is proposed that eliminates the need for loops in calculating the simple moving average. By optimizing the calculation process, performance can be significantly improved, allowing for faster, more responsive applications. Exploring loop-less implementations can be a worthwhile consideration for enhancing algorithm efficiency.

👉 Read | Calendar | @mql5dev

#MQL5 #MT5 #SMA
44👨‍💻6🔥1
Discover how to seamlessly integrate MetaTrader 5 with Discord using MQL5, enabling effortless communication between platforms. This article outlines the creation of a Discord Webhook, sending JSON-formatted messages, and using a custom class to simplify repetitive tasks. Learn how to include user and role mentions, utilize markdown for formatting, and manage bot identities for personalized messaging. Expand your trading toolkit by sending trade notifications from MetaTrader 5 directly to Discord, with options for embeds and image links. While webhooks have limitations, this integration provides a robust foundation for enhancing trader interactions and automated communications.

👉 Read | CodeBase | @mql5dev

#MQL5 #MT5 #API
27👍5👨‍💻21👌1
In the first article of a new series on MetaTrader 5, we delve into the "timestamp trap," a critical oversight in algorithmic trading that can lead to data leakage and unreliable models. We highlight how standard time-bars may inaccurately timestamp data, offering unfair advantages during model training. Instead, tick-bars, which form only after specific market activities, are recommended for data integrity. By using tick-bar construction, developers can ensure unbiased datasets, vital for accurate backtesting and trustworthy trading algorithms. The article provides practical code implementations for data extraction and cleaning, setting the stage for subsequent parts on feature engineering and model validation.

👉 Read | Freelance | @mql5dev

#MQL5 #MT5 #MachineLearning
27👍10👌4👨‍💻2
Efficient backtesting is essential for developing machine learning trading algorithms. Leveraging Python with Numba can substantially enhance a testing framework's performance, especially in high-frequency contexts. Numba, a Just-In-Time compiler, transforms Python code into fast machine code, rivaling C and FORTRAN speeds. Deploying Numba's decorators on Python functions significantly boosts Computational efficiency, particularly when handling loops and complex operations. This article illustrates optimizing a trading strategy tester, resulting in up to a 50x speed increase. Such enhancements enable rapid iteration and optimization of trading parameters, streamlining workflow for developers and traders focusing on algorithmic trading strategies.

👉 Read | Quotes | @mql5dev

#MQL5 #MT5 #AlgoTrading
25👍6👨‍💻2
Developing ensemble trading strategies by merging various methodologies offers a path to increased strategy robustness and profitability. Initially, a superclass was created to consolidate different strategies. A moving average crossover strategy was implemented, optimized, and validated using MetaTrader 5. Forward testing helped identify stable parameters.

Subsequently, an RSI-based strategy was introduced, providing a higher Sharpe ratio and profit with fewer trades. Testing showed both class-based and hard-coded RSI strategies performed identically, confirming class implementation. The next step is merging RSI and Moving Average crossover strategies into a cohesive ensemble strategy, minimizing parameters for effective optimization. Using strategies like "Voting Policy," significant performance improvements and increased profitability were seen t...

👉 Read | CodeBase | @mql5dev

#MQL5 #MT5 #Strategy
26👍85👀4👨‍💻3
The latest versions of the MetaTrader 5 mobile app for iOS introduce a range of new features designed to help traders stay abreast of financial markets wherever they are.

Report representing trading results in a convenient visual format.
✓ ZigZag and Market Profile indicators, as well as a new chart type — Heikin Ashi.
✓ Displaying deal info in the Data Window. These tools will enhance market analysis and trend identification.
✓ Quick mode for displaying the Data Window on a chart. Tap and hold the main chart for over a second to enable the crosshair mode together with the Data Window.
✓ A separate command for resizing and reordering additional indicator windows.
✓ Optimized trading history display on the chart. The application can display thousands of deals without significant performance degradation.

Install the latest app version and unlock extended trading capabilities.

Read more...
60🔥9👨‍💻5👍43👀1
The RSI-based inverse Fisher Transform, developed by John Ehlers, is designed for clearer trigger point identification in trading strategies. It refines the traditional RSI indicator by centering its values around zero, facilitating more precise decision-making. The inverse Fisher Transform is subsequently applied to these adjusted values, enhancing their interpretability. This method aims to improve signal differentiation by stabilizing the data around a fixed point, providing traders with a more reliable metric for analysis. This adaptation of the RSI seeks to aid in more effective trend analysis and market timing in technical trading.

👉 Read | Docs | @mql5dev

#MQL4 #MT4 #Indicator
31👍6👨‍💻6🔥1
A comprehensive overview of our latest advancement in algorithmic trading, focusing on a multi-symbol strategy utilizing Commodity Channel Index (CCI) and Awesome Oscillator (AO) for trend reversals across multiple currency pairs. This strategy, developed in MQL5, features a modular architecture that supports robust trade execution, indicator management, and risk assessment. The system handles signal detection on the M5 timeframe and trend confirmation on H1. Careful design ensures efficient handling of trades with spread checks, and risk management through stop-loss and take-profit settings. Detailed information on backtesting and optimization explores results. The outcome is a scalable trading framework ready for live deployment.

👉 Read | Calendar | @mql5dev

#MQL5 #MT5 #Algorithm
285👌5👨‍💻4👍2👀2
Logify simplifies logging in Expert Advisors with a new Builder pattern, streamlining the complex configuration process. Instead of manually setting up handlers, formats, and parameters for each EA, developers can use intuitive, chained methods to configure the logging system. The Builder pattern enhances clarity and reduces errors by isolating configuration steps, providing flexibility to create different logging setups efficiently. This update includes specialized builders for various handlers, ensuring modular and clean code. A new default handler ensures immediate functionality, making Logify a plug-and-play solution without sacrificing customization, appealing to both novices and professionals in algorithmic trading.

👉 Read | AlgoBook | @mql5dev

#MQL5 #MT5 #EA
1514👍5👨‍💻1
Leverage machine learning with LSTM architecture for volume-based trading insights. This innovative system detects abnormal volumes and clusters to predict price movements, using Python + MetaTrader 5 for robust model training. Key features include volume anomaly detection, efficient clustering, and strategic backtesting. The model excels in analyzing the Russian stock market, demonstrating significant success with Sberbank shares. By employing techniques like data batching and parallel computing, data handling is optimized. The Isolation Forest method enhances anomaly detection, while multi-cluster identification aids pattern recognition. This approach offers a sophisticated yet practical solution for modern algorithmic trading challenges.

👉 Read | Quotes | @mql5dev

#MQL5 #MT5 #ML
41👏19👍7🔥6👨‍💻1
The Candle Size Calculation indicator efficiently measures the amplitude of the candles, displaying the difference between high and low in points or pips. The tool uses different colors to differentiate between bullish and bearish candles, aiding in better visual interpretation. Users can customize analysis based on specific days of the week. Each day is assigned a unique color, facilitating the observation of daily patterns.

Dynamic text positioning ensures that the information does not overlap with other crucial chart elements. Text attributes such as font, size, color, and anchor type are customizable. Support for different line styles enhances visualization. The auto-clean feature removes all objects when the indicator is detached, maintaining chart clarity.

Configurable variables include the number of candles to process, calculation types (opt...

👉 Read | Calendar | @mql5dev

#MQL5 #MT5 #Indicator
25👍43👨‍💻3
MARSI-EA provides a strategic approach for newcomers seeking to understand trading in financial markets. It integrates the logic of the Relative Strength Index (RSI) with a Simple Moving Average (SMA), executing trades on assets like XAUUSD. The EA emphasizes dynamic lot sizing in line with account risk, entry conditions based on RSI levels, and trend filtering via moving averages. Stop Loss and Take Profit are precisely adjusted to the symbol's tick precision.

Core entry rules include initiating a buy when the price is bullish and the RSI indicates an oversold market. Similarly, a sell occurs when the price is bearish with an overbought RSI reading. Proper understanding of these conditions is pivotal for effective trade execution.

Key variable inputs encompass maPeriod, rsiPeriod, rsiOverbought, rsiOversold, riskPercent, stopLoss, takeProfit, and slippa...

👉 Read | Docs | @mql5dev

#MQL5 #MT5 #EA
31👨‍💻4👍32
The recent development aimed at enhancing library functionality has targeted improvements in handling both extended and standard graphical objects on the canvas. The objective was to rectify flaws in object interaction, mainly regarding object visibility and interaction order. Implementing the ZOrder property for GUI elements proves pivotal, establishing the correct layering of interactive elements on the chart.

With the ZOrder property now integrated, graphical components can be arranged correctly, ensuring GUI elements remain interactive and prominent. Virtual methods have been refined across object classes to effectively manage ZOrder handling, crucial for event-driven graphical operations.

The development has focused on incorporating methods to determine graphical object boundaries, enhancing interaction precision. Object properties and calc...

👉 Read | Signals | @mql5dev

#MQL5 #MT5 #GraphicalObjects
41👍7🔥5👨‍💻1
Version 1.04 introduces cursor synchronization across multiple charts, although this feature does not extend to detached charts. Users can achieve synchronous chart movement by stretching the terminal across two monitors. In version 1.05, the update includes the option to synchronize only symbols that share the same name, enhancing targeted analysis and reducing clutter. By 31.05.2025, version 1.08 has incorporated several practical enhancements, boosting overall functionality and improving the user experience. These incremental updates reflect ongoing optimization efforts, focusing on synchronization features and user interface improvements.

👉 Read | VPS | @mql5dev

#MQL5 #MT5 #Algorithm
33👍6👨‍💻2👀2😁1
CryptoTrend 1.00 is an automated Expert Advisor specifically designed for Bitcoin trading and optimized for the 2024 market landscape. This system leverages several key components for effective market analysis and decision-making.

The Bollinger Indicator is employed to identify market extremes. When the price crosses beyond specified Bollinger lines, this generates an entry signal. A Filter by Order Block refines entry signals by using historical data to define support and resistance zones, reducing false entries.

A self-learning mechanism is incorporated to dynamically adjust the TrendThreshold entry levels based on ongoing trade performance. This allows for adaptation to shifting market conditions. For risk management, Stop Loss and Take Profit levels are set according to the difference between entry prices and support/resistance zones, with an aggressive risk...

👉 Read | Quotes | @mql5dev

#MQL5 #MT5 #BTC
346👍6👌2👨‍💻2
Leveraging the RAD system in MetaTrader 5 can significantly streamline the development of Expert Advisors by enhancing functionality with ease. By planning and organizing your project structure, introducing new features like asset name and daily accumulated value becomes a straightforward task. Modifying the enumeration efficiently and placing code strategically avoids complications that arise from disorganized updates.

When expanding your IDE, focus on reusing code and adding necessary control points, ensuring a consistent and robust integration process. Consider implementing enhancements in separate classes, such as C_OrderView for handling order functions, to maintain organization and prevent code bloat.

Optimize performance by refining functions like OnTrade and UpdateRoof, reducing execution time, especially during open positions. This optimization is ...

👉 Read | Freelance | @mql5dev

#MQL5 #MT5 #EA
6813👍6👨‍💻4🏆3
A new MetaTrader 4 (MT4) indicator has been developed, providing insights based on the crossover between Bollinger Bands and price movements. This tool uses the Bollinger Bands technique, a well-known method in technical analysis for identifying potential entry and exit points. The indicator tracks the crossover events where price crosses the upper or lower bands, signaling possible trend reversals or continuations. This can be beneficial for traders looking to optimize their trades based on volatility and market momentum. The inclusion of such indicators can aid in more informed decision-making for those trading within the MT4 platform.

👉 Read | CodeBase | @mql5dev

#MQL4 #MT4 #Indicator
37👍12👀3🔥1🎉1👨‍💻1