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
A new tool is available featuring GUI buttons "Close Buys" and "Close Sells" with options for customizable colors, positions, and text. It integrates dynamic visibility, hiding buttons when no positions exist, which is optional for user preference. The tool provides efficient position closure by allowing traders to close all buy or sell positions with a click. It also displays net profit, taking into account profit, swap, and commissions. Event handling is executed through a 100ms timer for updates and utilizes chart events for button clicks. The tool calculates net profit by incorporating commission data from trade history, facilitating simplified trade management on specific symbols. Users are encouraged to provide feedback or report issues on the MQL5 CodeBase page or via the MQL5 community for future enhancements.

πŸ‘‰ Read | Calendar | @mql5dev

#MQL5 #MT5 #Trading
❀38⚑4πŸ‘4πŸ‘¨β€πŸ’»3
The MT5 indicator identifies bearish spike formations through a specific three-candle pattern: Red-Green-Red. The first and third candles are strong bearish spikes with bodies over 70% of the candle range. The middle candle is a bullish retracement. When detected, the indicator visually marks this "supply zone" with a box around the high/low of these candles. An entry line is plotted at the middle candle's open price. The line remains until the price returns to that level, indicating a potential re-entry point.

This tool operates on the Smart Money Concept, highlighting mitigation zones and supply/demand imbalances. Traders can leverage this visual aid for return-to-zone trading opportunities, especially in Crash or inverted Boom markets. It provides insights when combined with other indicators such as EMA or order block confirmations. This systema...

πŸ‘‰ Read | Docs | @mql5dev

#MQL5 #MT5 #Indicator
❀38πŸ‘5πŸ‘Œ3πŸ‘¨β€πŸ’»3✍2
The CBitBuffer class is vital for bit-level data serialization in MQL5, essential for efficient data storage and retrieval, especially in network communication or file compression. With support for a wide range of data types, the class optimizes space using techniques like Variable-Length Quantity (VLQ) with ZigZag encoding. This approach can significantly save space when dealing with frequently small integer values.

Robust error handling is ensured through an ENUM_BIT_BUFFER_ERROR enum alongside GetLastError() and GetLastErrorString() methods. The class design is optimized with features like internal buffering and exponential array growth to enhance performance. Updates as of 2025 improve operations by eliminating restrictions on mixed read/write processes and enhancing clarity. Such updates contribute to maintaining data integrity, thereby broadening ...

πŸ‘‰ Read | Docs | @mql5dev

#MQL5 #MT5 #Data
❀37πŸ‘4πŸ‘¨β€πŸ’»4πŸ€”1
The recent article presents an extended examination of combining multiple indicators in a single chart subwindow. The focus was on modifying object class code to introduce new features and enhance flexibility. By utilizing structures for variable organization, chart configurations become more manageable, enabling users to customize asset displays with fixed widths and periods.

The new macro implementation facilitates code reuse, while the updated syntax allows users to define time periods with minimal ambiguity. An important enhancement involves the default settings file, ensuring consistency across assets when specific settings are unavailable. Understanding MetaTrader 5's logic in file searching aids efficient template management.

These advancements emphasize the significance of structured programming, optimizing code reuse, and reducing potenti...

πŸ‘‰ Read | Signals | @mql5dev

#MQL5 #MT5 #Indicator
❀54πŸ‘11πŸ‘¨β€πŸ’»7πŸ‘€4πŸ‘3πŸ‘Œ3
A new indicator has been developed to detect a specific bullish spike pattern using a 3-bar configuration. It identifies significant market movements by analyzing three consecutive candles: a large green candle, followed by a red one, and then another large green candle. This setup indicates a potential bullish zone.

Upon detection, the indicator draws a blue rectangle spanning the high/low range of these candles. Additionally, a lime green entry line is plotted at the open price of the second candle. This line persists until the price revisits it, at which point it is stopped.

The indicator's core functions include pattern detection on each tick, drawing the box and line, and checking for mitigation. It is optimized for Boom 500 and Boom 1000, providing automatic detection and visualization of trading entries. This tool helps recognize genuine sp...

πŸ‘‰ Read | Quotes | @mql5dev

#MQL5 #MT5 #Indicator
❀40πŸ‘¨β€πŸ’»8πŸ‘6πŸ‘Œ1
To consistently profit in trading, understanding the interrelationship of win rate, reward-to-risk ratio (RRR), and position sizing is crucial. Many traders focus overly on win rates, neglecting how RRR and position size impact key metrics like profit factor and drawdowns. A robust system blends these elements seamlessly, optimized through back-testing and Monte Carlo simulations. These simulations, run in Python, model thousands of potential outcomes, offering clarity on a system's viability over time. Successful trading mandates a fine balanceβ€”where the system's win rate meets the minimum required RRR and optimal position size to maximize gains while controlling risk.

πŸ‘‰ Read | AlgoBook | @mql5dev

#MQL5 #MT5 #Trading
❀28πŸ‘8πŸ‘¨β€πŸ’»4πŸ‘Œ3
Integrating MQL5 with Python using socket programming enhances data sharing capabilities for machine learning tasks. MQL5's limitations in re-creating advanced libraries like those available in Python make this approach efficient. By exporting chart data from MetaTrader to Python, developers leverage robust machine learning libraries for complex data analysis. A MetaTrader application sends tick info to a Python server via sockets, maintaining continuous data flow to connected clients for customized processing.

Server-client architecture supports data transfer, with MetaTrader feeding tick data, which is handled and broadcasted by the Python server. This infrastructure is adaptable with different scripts, indicators, and languages, reducing reliance on Windows OS. Developers can achieve effective cross-platform solutions, fostering flexible trading stra...

πŸ‘‰ Read | Quotes | @mql5dev

#MQL5 #MT5 #Tech
❀38πŸ‘4πŸ‘¨β€πŸ’»4
The Gator Oscillator and Accumulation/Distribution (AD) are powerful tools for traders seeking trend confirmation via momentum and volume indicators. While the Gator is directionally neutral, it tracks convergence/divergence phases, essential for recognizing trend initiations or exhaustions. The AD measures market accumulation/distribution through volume, identifying buying or selling pressure divergences from price.

Combining these in trading systems aids in confirming the strength of trends, reducing false signals. Patterns in combinations, such as volume-confirmed breakouts or trend continuations, offer robust insights. Implementing these in MQL5, backtesting results highlight their utility. Attention to timing, especially during low-volume periods, remains crucial.

πŸ‘‰ Read | Signals | @mql5dev

#MQL5 #MT5 #Indicator
❀53πŸ‘11πŸ‘¨β€πŸ’»3πŸ‘Œ2✍1πŸ”₯1πŸ‘€1
Efficiently handling CSV files is a crucial skill in software development. Here's a method to read a CSV file row by row. This approach splits each row's string into tokens using a specified delimiter, such as an underscore (_) or a pipe (|). This functionality is beneficial for retrieving data from CSV files and integrating it back into your application for further processing or analysis.

When dealing with CSV files, ensure the file path is correct and accessible. Using built-in libraries or modules can simplify the process and manage file access securely. Remember to handle exceptions to deal with potential errors such as missing files or incorrect delimiters. This technique is scalable and adaptable for various data extraction and manipulation needs.

πŸ‘‰ Read | Freelance | @mql5dev

#MQL4 #MT4 #CSV
❀30πŸ‘4πŸ‘¨β€πŸ’»2πŸ‘€1
The Market Profile indicator's efficiency has been the focus of recent technical optimization efforts. A key issue identified is the excessive resource consumption due to the creation of thousands of graphical objects for daily bar representation. This inefficiency is resolved by employing the CCanvas class, which allows rendering all necessary market profiles using a single graphical object per day. This approach contrasts sharply with the previous method, resulting in substantial resource savings.

The Market Profile indicator is enhanced through a new class structure - CMarketProfile. With this structure, one graphical object efficiently covers daily trading sessions by using a canvas rather than individual graphical components. By integrating the CCanvas class, this restructuring enables not only a sharp reduction in resource consumption but als...

πŸ‘‰ Read | Quotes | @mql5dev

#MQL5 #MT5 #Indicator
❀21πŸ‘6πŸ‘¨β€πŸ’»3
Discover the new way to harness MetaTrader 5's reporting capabilities with a custom MQL5-based system complemented by Python. This innovative approach enables the automatic generation and distribution of comprehensive trading reports, enhancing informed decision-making for traders. The system integrates programmatically controlled exports to provide detailed insights into trading performance, encompassing metrics like ROI, Sharpe Ratio, and Profit Factor. The integrated use of EAs allows for seamless data handling, transforming manual tasks into efficient, automated processes. With accessible open‑source tools, this solution paves the way for a streamlined workflow, offering traders precision control over their report schedule and content.

πŸ‘‰ Read | Signals | @mql5dev

#MQL5 #MT5 #EA
❀20πŸ”₯18πŸ‘3πŸ‘¨β€πŸ’»3πŸ‘Œ2πŸ‘€2
Explore the transformative potential of matrix factorization for trading on MetaTrader 5. This article addresses initial issues in building linear regression models using MQL5 and demonstrates how matrix factorization, notably Singular Value Decomposition (SVD), offers more stable and insightful predictive capabilities. Learn how to implement OpenBLAS to enhance computational efficiency and speed in backtesting, making it a valuable tool for both traders and developers. The focus is on using these techniques to reveal underlying market forces and improve predictions, proving beneficial for developing robust, data-driven trading strategies. Gain insights into applying advanced linear algebra for financial market analysis.

πŸ‘‰ Read | AppStore | @mql5dev

#MQL5 #MT5 #AI
❀66πŸ‘12πŸ‘¨β€πŸ’»5πŸ”₯2
The RVI crossover indicator enhances analysis by identifying potential market shifts. Based on the Relative Vigor Index, it compares closing price changes to price trading ranges. The crossover occurs when the RVI line crosses the signal line, potentially indicating shifts in momentum. Traders use this indicator to identify possible entry or exit points in trading strategies. This tool requires an understanding of signal line movements and market conditions. Effective use involves integrating it with other indicators for improved accuracy and precision in trading decisions. Understanding of these elements is crucial for optimizing trading strategies.

πŸ‘‰ Read | AppStore | @mql5dev

#MQL4 #MT4 #Indicator
❀38πŸ‘4πŸ‘€4✍3πŸ”₯3πŸ‘Œ3πŸ‘¨β€πŸ’»3
In trading, understanding historical price movements is vital for predicting future trends. Price action analysis is key in this regard, focusing on support and resistance levels created from past swings. For effective Boom-and-Crash trading, a systematic methodology to process historical patterns is essential. The "Price Action Analysis Toolkit" offers an approach to convert MetaTrader 5 data into trading signals using machine learning. MQL5's script slices data into JSON payloads, while Python's backend processes it into a feature matrix for model training. This integration ensures a consistent history feed, enabling models to detect price spikes efficiently, crucial for staying ahead in dynamic markets.

πŸ‘‰ Read | Docs | @mql5dev

#MQL5 #MT5 #PriceAction
❀35πŸ‘13πŸ‘€3πŸ‘Œ2πŸ‘¨β€πŸ’»2✍1
Recent analysis of 3D bars and "yellow" clusters in market data reveals a robust structure prior to trend reversals. This research discovered a significant 97% occurrence of "yellow" clusters within Β±3 bars of pivot points and an 82% direction prediction accuracy. These clusters, characterized by a specific mathematical structure and notable in 3D visualizations, exhibit an energy accumulation process that foreshadows reversals. The implementation of a trading system leveraging this pattern resulted in consistent profits during backtesting. The integration of mathematical techniques like tensor analysis has proven crucial, indicating a fundamental property in market microstructure previously undetectable by conventional methods.

πŸ‘‰ Read | Calendar | @mql5dev

#MQL5 #MT5 #Algorithm
❀43πŸ‘24😁4πŸ‘Œ3πŸ‘¨β€πŸ’»3πŸ‘€3πŸ‘1
In MetaTrader 5 build 5200, we have significantly expanded support for the OpenBLAS linear algebra library in MQL5, adding nearly thirty new functions. These enhancements provide more capabilities for developing Expert Advisors using machine learning.

In addition, MQL5 now features stronger control to ensure the quality of developed programs. New checks and restrictions in the compiler will help avoid potential errors in the operation of applications.

The desktop platform also introduces automatic interface switching based on your operating system settings – eliminating the need to adjust it manually.

Read more...
❀150πŸ”₯20πŸ‘18πŸ‘€17πŸ‘¨β€πŸ’»13πŸŽ‰7πŸ‘Œ7
The WPR crossover indicator generates signals based on the Williams Percent Range, which is useful for identifying potential entry and exit points in trading. This tool analyzes WPR values to determine when crossing the threshold signals a shift in market momentum. It detects overbought and oversold conditions by evaluating the percentage range against predefined levels. Practical for both beginners and experienced traders, this indicator aids in developing well-informed trading strategies. In implementation, it's crucial to combine with additional analysis for more accurate results as standalone indicators may not account for all market variables. Suitable for integration in various trading platforms.

πŸ‘‰ Read | AlgoBook | @mql5dev

#MQL4 #MT4 #Indicator
❀53πŸ‘6πŸ†5πŸ’”4πŸ‘Œ3
Discover how an innovative approach transforms Forex portfolio optimization by merging Markowitz's theory with the VaR methodology. Traditional Markowitz optimization struggles with Forex due to currency pair correlations, necessitating an adaptation. By integrating VaR constraints, the system dynamically controls risk through diverse market conditions. Leveraging Python with MetaTrader 5, the model accommodates the idiosyncrasies of Forex volatility and correlation, enhancing decision-making for position sizing. The cohesive use of historical, parametric, and Monte Carlo methods ensures a robust VaR calculation, pivotal to pristine risk assessment, ultimately refining trade execution by visually augmented analysis and comprehensive backtesting strategies.

πŸ‘‰ Read | Quotes | @mql5dev

#MQL5 #MT5 #Forex
❀83πŸ‘14πŸ‘¨β€πŸ’»12πŸŽ‰8πŸ‘Œ1
Introducing the ADX Crossover Indicator, designed to generate precise buy and sell signals. This tool utilizes the Average Directional Index (ADX) to evaluate the strength of a trend, aiding in strategic decision-making. The indicator identifies crossovers between the ADX line and its signal threshold to mark potential entry and exit points in trading. By assessing market momentum, it provides a clear framework to gauge trend reliability. This tool is suited for traders looking to enhance their technical analysis by incorporating trend strength validation into their trading strategies, offering a structured approach to optimize trading performance.

πŸ‘‰ Read | Docs | @mql5dev

#MQL4 #MT4 #Indicator
❀56πŸ‘8πŸ‘¨β€πŸ’»4⚑2