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
The Candle Range Theory (CRT) trading system is advanced in part 41 with a focus on the Accumulation, Manipulation, and Distribution (AMD) phases. This MQL5 strategy enhances the identification of key market phases on a selected timeframe for precise trading decisions.

The system determines accumulation phases, detects price breaches with optional depth filtering, and confirms reversals for trade entry during the distribution phase. Risk management is integrated with configurable stop-loss, take-profit methods, trailing stops, and position limits per direction.

Implementation includes rendering visual aids on the chart, such as colored rectangles and labeled levels, utilizing MQL5 capabilities to provide an intuitive monitoring experience for traders. This forms a robust foundation for CRT strategy customization and backtesting.

👉 Read | Quotes | @mql5dev

#MQL5 #MT5 #MQL5
56👨‍💻1
Candlestick patterns remain a critical component of technical analysis, offering insights into market dynamics. They document buyer-seller interactions and reflect market sentiment, often predicting future movements. The bullish engulfing pattern exemplifies this predictive ability by indicating potential buying strength. Developers utilizing the MQL5 environment can automate and enhance candlestick studies.

CandlePatternSearch.mq5 is an Expert Advisor designed for MetaTrader 5. It detects and highlights popular candlestick formations on charts, enhancing traders' abilities to analyze patterns across instruments and timeframes. Features include a comprehensive pattern library, interactive on-chart controls, real-time monitoring, and customizable parameters for alert configurations.

This EA consolidates technical analysis by transforming candle...

👉 Read | Calendar | @mql5dev

#MQL5 #MT5 #Candlestick
36👀145👨‍💻2
The code provided offers the capability to configure alerts triggered upon the inception of a new bar, accompanied by a customizable sound notification. This functionality is essential for traders and developers seeking immediate updates without real-time monitoring. The implementation is designed to integrate seamlessly into existing systems, ensuring consistent notifications. Users can define specific audio cues, enhancing situational awareness during periods of significant market activity. Incorporating such an alert system enhances responsiveness and decision-making efficiency, a vital component for maintaining competitive advantages in algorithmic trading and automated strategies.

👉 Read | AppStore | @mql5dev

#MQL4 #MT4 #script
👍1613👨‍💻2👌1
Discover cutting-edge enhancements in the MetaTrader 5 library designed for algorithmic trading. The refined structure splits a monolithic codebase into reusable components, optimizing execution through modularity. Key improvements involve efficient input handling; only active charts now process keystrokes, reducing resource demands. The new Crosshair tool simplifies interfacing with charts, while the Trendline tool adds flexibility with customizable extrema. The upgrade ensures improved responsiveness in environments with numerous open tabs. Developers benefit from a revamped data management approach, storing global variables locally within classes, enabling independent usage and runtime modification. Embrace these advancements for robust trading systems enhancement.

👉 Read | AlgoBook | @mql5dev

#MQL5 #MT5 #ExpertAdvisor
52👌4🏆3👨‍💻1
The ZigZag HH HL LH LL Pattern Label Indicator for MT4 presents an enhanced utility over the standard ZigZag tool by automatically detecting and labeling critical structural price points including Higher Highs (HH), Higher Lows (HL), Lower Highs (LH), and Lower Lows (LL). This addition optimizes market structure analysis, pattern recognition such as Head & Shoulders and Quasimodo, and trend evaluation. The code comprises optimized functions compatible with MQL4, ensuring effective object management and timeframe tagging.

The indicator calculates the necessary ZigZag buffer for swings and line connections between points, essential for visualizing market trends. Its compatibility with dashboard scanners and multi-timeframe systems makes it an asset for manual traders, system architects, and EA developers seeking structured market insights. Practical a...

👉 Read | Forum | @mql5dev

#MQL4 #MT4 #AlgoTrading
387😱2👨‍💻21🔥1
MetaTrader 5's Economic Calendar offers powerful tools for algorithmic traders and developers to enhance market analysis. With MQL5 functions like CalendarCountryById() and CalendarValueHistory(), developers can programmatically interact with economic data. MqlCalendarCountry, MqlCalendarEvent, and MqlCalendarValue structures provide detailed insights into countries, events, and their values, essential for fundamental analysis. The CiCalendarInfo class simplifies access to calendar properties, enabling developers to create detailed time series for specific events. Practical applications include reliable event forecasting and comprehensive historical data analysis, crucial for developing advanced trading strategies. This tool enhances decision-making, providing a competitive edge in algorithmic trading.

👉 Read | VPS | @mql5dev

#MQL5 #MT5 #Algorithm
6911👨‍💻6🔥21🎉1🏆1
This script offers a comprehensive approach to candlestick analysis for traders. It efficiently retrieves essential data points, including opening, closing, high, and low prices. The script categorizes the candlesticks into bullish, bearish, or neutral based on the relationship between open and close prices. It performs amplitude calculations to determine differences between high and low values, and computes average amplitudes for both bullish and bearish candlesticks. The script identifies the top five significant candlesticks with the highest amplitudes in bullish and bearish categories.

A report is generated detailing the count of each candlestick type and average amplitudes, highlighting the top significant candlesticks. This report is displayed as commentary on the trading chart, providing traders with an enhanced visual understanding of the cand...

👉 Read | NeuroBook | @mql5dev

#MQL5 #MT5 #script
23👨‍💻4
The recently developed report streamlines testing of multiple EAs or strategies in a single account by consolidating data based on magic numbers and currency. It provides total profit and loss metrics, including profit, swap, and commission, alongside the win rate percentage to evaluate performance accurately. The net position size reflects historical trades, while current exposure details open position risks. Gross profit and loss are separated, and the profit factor is shown as a risk/reward analysis. Cumulative lot sizes are reported under total volume. The report includes all magic numbers, even zero, and aggregates symbols per magic number, displaying a combined symbol list for each. This data is then exported into a single TradingStats.csv file, which can be saved in the MQL5/Files/ folder. The process is simplified to a drag-and-drop action on any ...

👉 Read | Forum | @mql5dev

#MQL5 #MT5 #EA
24👨‍💻1
Discover the intricacies of Analytical Volume Profile Trading (AVPT), an advanced method revolutionizing market analysis by focusing on trading volume across price levels. AVPT goes beyond traditional indicators, using High-Volume Nodes and Low-Volume Nodes to map market memory and liquidity structures. This precision approach allows traders to decode institutional support and resistance, anticipate breakouts, and execute trades with precision. By integrating automation and real-time volume distribution, AVPT enables traders to navigate liquidity imbalances, turning market chaos into actionable insights. Ideal for MetaTrader 5 developers, AVPT offers a context-aware trading blueprint that enhances decision-making and risk management.

👉 Read | AppStore | @mql5dev

#MQL5 #MT5 #Trading
20👍1🎉1🤨1👨‍💻1
Dive deep into MQL5 with an extensive breakdown of APIs and URLs, crucial for seamless data flow in MetaTrader 5 algorithmic trading. Learn each URL component—protocol, domain, path, and query—and their roles in retrieving data via external APIs. Create an MQL5 script to fetch real-time pricing data, utilizing JSON parsing for actionable trading insights. Understand the WebRequest function setup, focusing on headers and response handling, to effectively communicate with servers like Binance. This guide ensures practical understanding, offering valuable strategies for optimizing MQL5 applications and enhancing trading systems through efficient API integration. Perfect for both seasoned developers and enthusiasts exploring trading automation.

👉 Read | Forum | @mql5dev

#MQL5 #MT5 #MQL5
24👌3🏆2👨‍💻2
Explore a trend-following strategy using the innovative Flower Volatility Index (FVI), derived from the classical Rose Curve. The FVI adapts the geometric properties of the Rose Curve to market conditions, utilizing price deviations and volatility for precise signal generation. Key technical features include bounded oscillation, frequency control, and predictable periodicity. By substituting market-derived angles, the FVI translates complex price data into accessible oscillatory signals, offering traders new insights into market trends while maintaining stable, normalized indicators. Applicable to various trading environments, the FVI is a versatile tool for both trend mapping and volatility assessment.

👉 Read | Docs | @mql5dev

#MQL5 #MT5 #Indicator
28👨‍💻6🎉5🔥3🏆2
Представлен советник в виде торговой графической панели с девятью кнопками, предназначенными для упрощения ручной торговли. Панель позволяет трейдеру быстро управлять ордерами и параметрами. В параметре lots указывается планируемый профит. Параметр distance настраивает дистанцию для отложенных ордеров. Параметры takeprofit и stoploss определяют ценовые уровни фиксирования прибыли и убытков соответственно. Кнопка close all закрывает все активные ордера. Кнопки delete buy и delete sell удаляют соответствующие отложенные ордера. Для открытия позиций предусмотрены кнопки BUY, SELL, а для отложенных ордеров: BUY LIMIT, BUY STOP, SELL LIMIT, SELL STOP. Этот скрипт был разработан для работы с индикатором Strategic Schedule, созданным для удобства трейдеров в ручной торговле.

👉 Read | Docs | @mql5dev

#MQL4 #MT4 #EA
152🤔2👨‍💻2
The discussed tool offers a comprehensive statistical overview for traders, highlighting both daily and all-time metrics. It provides key features such as viewing statistics over the past 7 days with customizable settings and a cumulative summary of trading histories. Real-time updates automatically refresh data during trading activities, ensuring up-to-date information. The tool employs a color-coded system for quick identification of profit or loss days, enhancing readability with a modern flat UI that supports color customization. Numerical data is displayed in a professional format, with commas aiding clarity.

The tool tracks various metrics, including total lots traded, order count, and net profit or loss, comprehensively covering swaps and commissions. Each trading day is logged in the YYYY.MM.DD format, alongside pertinent details such as t...

👉 Read | Docs | @mql5dev

#MQL5 #MT5 #Indicator
101
Refinement and Testing in Table Models:

Development of table models advances with refining methods to manage columns more efficiently. New initialization methods include creating models from arrays, matrices, and linked lists, enhancing adaptability for various data scenarios. Transferring classes to separate include files allows for better organization and modularity. Enhancements to CListObj facilitate new object types, providing robust functionality across different data forms. The CMqlParamObj class aids in versatile data handling, accommodating multiple data types and properties seamlessly. These improvements underpin a universal model architecture, paving the way for adaptable, task-specific data representation.

Table Header and Class Structure:

The table header class facilitates dynamic column management, linking headers with column numbe...

👉 Read | Docs | @mql5dev

#MQL5 #MT5 #TableModel
162🤔1
Enhancing black-box models for trading strategy selection presents complex challenges. Traditional metrics like RMSE often mislead due to sensitivity to scale and lack of comparability across regression targets. Mutual Information (MI) offers a more robust alternative. Its nonparametric nature and unitless measurement provide a consistent comparison across targets, helping identify the most informative strategies.

Empirical results demonstrate MI's superiority. Models predicting changes in the Stochastic oscillator show marked improvements, reflecting market width better than others. Visual analysis through scatterplots and bar plots further validate these findings, reinforcing MI's reliability.

In application, a neural network model, backed by ONNX, enables real-time strategy execution in MQL5, leveraging newfound insights for improved decision-ma...

👉 Read | AlgoBook | @mql5dev

#MQL5 #MT5 #Strategy