MQL5 Algo Trading
401K subscribers
2.64K photos
2.64K 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
Technical analysis often prioritizes price, neglecting a crucial component: volume. Volume serves as the market's engine, providing insights into why price movements occur. High volume indicates strong, reliable trends, while low volume suggests potential reversals.

Volume data differs between markets. Real volume in stock exchanges offers exact numbers, while tick volume in forex acts as a proxy through price changes. Despite differences, tick volume aligns closely with actual trading activity.

This analysis introduces the Volume Boundary indicator, converting raw volume data into a bounded, interpretable format. By using mathematical transformations and smoothing functions, it offers standardized volume insights suitable for algorithmic trading. Understanding volume enhances strategic trading, moving beyond surface-level price observations.

๐Ÿ‘‰ Read | Calendar | @mql5dev

#MQL5 #MT5 #Volume
โค26๐Ÿ‘5๐Ÿ‘จโ€๐Ÿ’ป3๐Ÿ†1
Trade like a seasoned pro with this innovative accounting tool for MetaTrader 5 and beyond. Discover a comprehensive system designed to transform the way traders manage capital. By using a clear, data-driven approach, traders can separate personal finances from trading capital, providing balanced decision-making and risk management. The highlights include SQLite data storage with efficient transactions, a user-friendly tkinter interface, and robust analytics using pandas and matplotlib for financial insights. Elevate your trading confidence and performance by focusing on key metrics for real financial literacy and control. Automate, streamline, and conquer the complexities of trading with precision and foresight.

๐Ÿ‘‰ Read | Freelance | @mql5dev

#MQL5 #MT5 #Finance
โค34๐Ÿ‘จโ€๐Ÿ’ป3๐Ÿ‘Œ1
Structs offer a fundamental bridge between object-oriented and conventional programming. They simplify data management, yet demand careful handling, especially when passing values to functions or procedures. Historical constraints of languages like C have given way to safer data transfer mechanisms. Effective use involves minimizing the knowledge functions require about structures.

Understanding structures as special data types enriches programming flexibility. Global struct declarations allow smoother data transfer, a common practice in languages like Python and JavaScript. This aids in reducing function overloads, enhancing code efficiency. Employing structures in this way allows for clearer code organization, data encapsulation, and easier management of complex datasets. Proper implementation ensures a clean, efficient codebase ready for future expa...

๐Ÿ‘‰ Read | Freelance | @mql5dev

#MQL5 #MT5 #coding
โค48๐Ÿ‘จโ€๐Ÿ’ป9โœ4
An effective signal indicator for MetaTrader 5 combines RSI and Moving Average to identify trend-following signals. Designed as a clean visual tool, it aids manual trading or provides signals for Expert Advisors. The strategy draws arrows based on specific conditions. For a buy signal, a blue arrow appears when the closing price is outside the Moving Average, and the RSI value exceeds 50, indicating an uptrend with bullish momentum. For a sell signal, a red arrow is drawn when the closing price falls below the Moving Average, and the RSI is below 50, confirming a downtrend with bearish momentum.

Features include clean, commented code and customizable parameters for RSI and MA periods. The indicator utilizes standard MT5 buffers, making it ideal for iCustom() function use in Expert Advisors.

๐Ÿ‘‰ Read | Calendar | @mql5dev

#MQL5 #MT5 #Indicator
โค42โšก2๐Ÿคจ2๐Ÿ‘จโ€๐Ÿ’ป2๐Ÿ‘1๐Ÿ‘Œ1
The development and refinement of the Table View control in the MVC paradigm has led to significant advancements in both the Model and View components. Initial efforts focused on creating a foundational object for graphical elements. Progress is now moving towards simple controls, which will eventually be used as components for more complex UI elements. These controls will enable interactivity, essential for the Controller component, thanks to MQLโ€™s integrated event model.

The Base class is being refined for graphical objects by organizing event handling to connect the View and Controller components. This involves refining classes, macros, and enumerations, primarily focusing on the base graphical element object. The implementation includes methods for file operations, refining object descriptors, and utilizing efficient event-driven logic.

Auxiliary classes...

๐Ÿ‘‰ Read | AlgoBook | @mql5dev

#MQL5 #MT5 #MVC
โค33๐Ÿ‘จโ€๐Ÿ’ป5๐Ÿ‘Œ2โœ1
Explore a systematic approach to improving logging in MetaTrader 5 using principles from Python's logging module. Gain insights into configuring specific parameters like file naming, size limits, and verbosity control through a custom MQL5 class. Optimize file I/O operations by utilizing caching mechanisms, reducing execution time in strategy tests significantly. Understand the convenience of defining tailored log messages with variable formats and severity levels, from debug to critical. This advanced logging system facilitates more maintainable and debuggable trading code, aligning with professional software development standards. Learn how to effectively integrate these practices into your algorithmic trading setups.

๐Ÿ‘‰ Read | NeuroBook | @mql5dev

#MQL5 #MT5 #Logging
โค31๐Ÿค”2๐Ÿ‘จโ€๐Ÿ’ป2๐Ÿ‘Œ1
Discover how to transform forex chaos into clarity with a cutting-edge currency strength indicator on MetaTrader 5. This innovative tool evaluates real-time strength across three timeframes (H1, H4, D1) using a smart weighting system to highlight true market dynamics. The multi-level analysis dashboard aggregates data with a dynamic ranking system, offering traders a comprehensive view of market movements. Designed for both seasoned and aspiring traders, the indicator delivers precise insights for strategic decision-making, ensuring timely and profitable trading actions. Dive into algorithmic trading and elevate your market analysis with this robust and intuitive solution.

๐Ÿ‘‰ Read | AlgoBook | @mql5dev

#MQL5 #MT5 #Forex
โค66๐Ÿ‘€7๐Ÿ‘จโ€๐Ÿ’ป4โœ2๐Ÿ‘Œ1๐Ÿ’ฏ1
The Dynamic Gaussian Channel indicator constructs dynamic support and resistance levels by utilizing smoothed price data through a Gaussian filter. It consists of three main lines: resistance, median, and support. The algorithm applies Gaussian smoothing to the high and low prices to identify extrema over a specified period and creates a channel based on the smoothed values.

It offers customizable parameters, allowing users to adjust the calculation period and line colors/styles. During initialization, the Gaussian filter weights are calculated for smoothing. The smoothing process applies this filter to high and low prices. Resistance is determined by the maximum smoothed high, support by the minimum smoothed low, and the median by the average of these two.

Implementation uses indicator buffers, the Gaussian filter with a 5-bar window, and is opt...

๐Ÿ‘‰ Read | Quotes | @mql5dev

#MQL5 #MT5 #Indicator
โค32๐Ÿ†7๐Ÿ‘จโ€๐Ÿ’ป3๐Ÿ‘Œ2๐Ÿคฏ1
The script effectively compiles total profits and swaps for each currency pair, enhancing its utility for hedging strategies and accounts. It accommodates multiple entries that rely on trading signals, promoting efficient analysis of financial performance. This feature is particularly beneficial for traders who require comprehensive oversight of their trading activities and outcomes. By aggregating these metrics, the script aids in the decision-making process and improves strategic planning. This tool integrates seamlessly into trading routines, offering valuable insights into overall profitability and financial health of hedging activities. The meticulous attention to detail supports informed trading strategies.

๐Ÿ‘‰ Read | CodeBase | @mql5dev

#MQL5 #MT5 #script
โค23๐Ÿ‘6๐Ÿ‘จโ€๐Ÿ’ป2๐Ÿ‘Œ1
Our latest exploration into statistical arbitrage reveals a pivotal shift in assessing portfolio weight stability by integrating the Rolling Windows Eigenvector Comparison (RWEC) with traditional IS/OOS ADF validation. This approach solves previously discussed issues of long out-of-sample periods and sensitivity in live trading. RWEC's sharp temporal resolution effectively pinpoints precise moments of cointegration breaks, offering better decision-making support and risk management for live trading. This dual approach not only enhances backtest reliability but also provides significant insights into real-time signal stability, making it invaluable for both traders and MetaTrader 5 developers focused on robust, adaptive algorithmic solutions.

๐Ÿ‘‰ Read | Freelance | @mql5dev

#MQL5 #MT5 #StatArb
โค33๐Ÿ”ฅ4โœ3๐Ÿ‘Œ3๐Ÿ‘จโ€๐Ÿ’ป3
Explore innovative enhancements to the classical moving average crossover strategy, tackling its common pitfalls like noise and delayed signals. The article delves into robust filtering to enhance signal reliability, utilizing statistical models for superior trade selection. The discussion includes practical backtesting, with consistent parameters, spanning 2022 to 2025. Initial strategy improvements focus on candle wick analysis, leading to stable uptrends in results. Further advancements utilize machine learning, notably through ONNX models, enhancing decision-making. Transitioning to non-linear models like random forests offers deeper market insights, correcting bias and leveraging data relationships, aiming for refined trade accuracy and performance.

๐Ÿ‘‰ Read | Docs | @mql5dev

#MQL5 #MT5 #Strategy
โค36๐Ÿ†3๐Ÿ‘Œ2๐Ÿคก2๐Ÿ‘จโ€๐Ÿ’ป2๐Ÿ‘€2
In recent technical publications, the focus has been on enhancing trading psychology through session awareness rather than just relying on clock times. Traditional explanations of market sessions often miss the importance of geographical dynamics. Understanding when different parts of the world are active can significantly improve decision-making. This project uses MQL5 to create a visual layer that highlights active trading sessions on a chart in real-time. This approach turns trading into an interactive geographical experience rather than a linear timeline, helping traders maintain psychological and strategic alignment with market rhythms. The development utilizes efficient coding practices to reduce cognitive load and increase market awareness.

๐Ÿ‘‰ Read | AppStore | @mql5dev

#MQL5 #MT5 #Forex
โค46๐Ÿ‘11๐Ÿ‘จโ€๐Ÿ’ป3๐Ÿ‘Œ2
Discover a technical implementation of the Tillson T3 indicator designed for improved performance. This version calculates 6 EMAs internally, avoiding the use of auxiliary indicator buffers. This approach streamlines operations and enhances efficiency. Developers can access the source code at the AlgoForge repository, structured in multiple files for clarity and ease of understanding. This structured format aids in comprehending the logic and functionality behind the implementation. Ideal for those seeking to understand or incorporate advanced algorithmic elements into their projects.

๐Ÿ‘‰ Read | Forum | @mql5dev

#MQL5 #MT5 #Indicator
โค60โœ4๐Ÿ‘จโ€๐Ÿ’ป4๐Ÿ‘Œ3๐Ÿ‘2โšก1
The text covers the integration of AutoIt with MQL5 for automation tasks in MetaTrader 5. AutoIt is highlighted as a tool for Windows GUI automation, offering capabilities not possible with MQL5 alone, such as script and expert advisor management on charts and alert handling.

The integration process includes using AutoItX, a DLL library for AutoIt functions, compatible with MetaTrader 5. This requires setting up a working environment and handling limitations due to AutoIt's reliance on standard Win32 API components.

The text introduces classes such as CAutoit and CTerminalController to encapsulate AutoIt functions for streamlined automation in MetaTrader 5, focusing on GUI element identification and control interactions for efficient task execution.

๐Ÿ‘‰ Read | Quotes | @mql5dev

#MQL5 #MT5 #AutoIt
โค148๐Ÿ‘จโ€๐Ÿ’ป17๐Ÿ‘Œ10๐ŸŽ‰6๐Ÿ˜5๐Ÿคฃ4โšก2
An Expert Advisor (EA) has been developed to alert users about the Depth Per Inch (DPI) of their monitors, a crucial tool for those working with varying screen resolutions. Typically, panels are designed to function with a limited range of resolutions when default settings are applied. However, to ensure compatibility across all monitor resolutions, integrating DPI measurements into panel dimensions is essential. This code provides a solution, facilitating the creation of adaptable panels that adjust according to the specific DPI of the user's display. This ensures consistent performance and appearance regardless of the monitor setup.

๐Ÿ‘‰ Read | Forum | @mql5dev

#MQL4 #MT4 #EA
โค36๐Ÿ†3โšก2๐Ÿ‘Œ2๐Ÿ‘จโ€๐Ÿ’ป2๐Ÿ‘1
The article delves into developing advanced container controls for modern UI design within MetaTrader 5, emphasizing their integration within the MVC paradigm. Key controls like Panel, GroupBox, and Container are explored for placing various UI elements, each having distinct properties: Panels act as general-purpose containers, GroupBoxes group elements for specific functionalities, and Containers enable seamless content scrolling with automatic event handling for intuitive navigation. The article highlights implementing a Singleton class for shared data management, and auto-repeat classes for standard OS-like button behavior. These innovations enhance developers' ability to create user-friendly, ...

๐Ÿ‘‰ Read | NeuroBook | @mql5dev

#MQL5 #MT5 provide a mechanism for overriding by derived classes when necessary. The following hashtags are recommended based on the key focal points of the content: #Singleton
โค32๐Ÿ‘Œ2๐Ÿ‘€2๐Ÿ‘จโ€๐Ÿ’ป1
Modern algorithmic trading requires balancing high returns with risk management to protect capital against volatility and systemic risks. An Expert Advisor (EA) achieves this through a multi-layered protection framework integrating dynamic lot sizing, exposure controls, and real-time monitoring. This approach uses adaptive measures, including equity floors, drawdown management, and recovery protocols to regulate trades and adjust exposure dynamically.

A sophisticated automated trading system focused on gold employs a martingale recovery strategy with robust protections like dynamic stops and daily loss limits. By using EMA crossovers, the system strategically places trades and manages risk through multi-layer defense mechanisms to limit potential losses while allowing for recovery from setbacks. During volatile market sessions, the EA employs circuit brea...

๐Ÿ‘‰ Read | Signals | @mql5dev

#MQL5 #MT5 #EA
โค33๐Ÿ†3๐Ÿ‘จโ€๐Ÿ’ป2๐Ÿ‘Œ1
In the latest iteration of our MetaTrader 5 series, we transform the Kagi chart engine into a full-featured Expert Advisor. Building on the Kagi structure, we introduce features enabling automated trading in response to market changes. The EA now detects reversal signals, places trades, manages risk, and visualizes signals with markers. Designed for flexibility, traders can enable or disable trading, choose trade directions, and select between manual or automatic lot sizing. Enhanced risk management includes stop loss, profit-taking, and optional trailing stops, all aligned with Kagi patterns. This update equips traders with a comprehensive system for any instrument on MetaTrader 5.

๐Ÿ‘‰ Read | NeuroBook | @mql5dev

#MQL5 #MT5 #EA
โค27โšก3๐Ÿ‘Œ3๐Ÿ‘จโ€๐Ÿ’ป2
We are progressing with the system for automating the optimization of trading strategies in MetaTrader 5. At its heart is a database designed for optimization projects. We've crafted a script to initiate projects, notably for the SimpleVolumes strategy, but adaptable to others. Exporting optimized strategy groups into an EA database occurs automatically, updating trading systems' settings without recompilation.

We've reorganized the project files, moving non-strategy-specific components to a library in the MQL5/Include folder. Remaining components like stage EAs and scripts reside in MQL5/Experts. This setup facilitates automatic optimization across varying strategies, easily integrating new strategies like the SimpleCandles strategy into this framework.

For SimpleCandles, the strategy employs a candle direction approach for trading decisions, rely...

๐Ÿ‘‰ Read | AppStore | @mql5dev

#MQL5 #MT5 #Trading
โค20๐Ÿ‘Œ5๐Ÿ‘จโ€๐Ÿ’ป2
The recent archive of models offers a diverse set of options for personalizing model training, particularly due to varying hyperparameters. These machine learning models are developed in Python and are then converted to ONNX format, ensuring ease of use without requiring code adjustments in the encludnik. The configuration remains straightforward, although users can apply custom filters for enhanced model performance, such as optimizing stop loss and take profit across different timeframes.

The models connect via a header file, exemplified on 31 March 2024. Examples include clustering techniques using the k-means method and training data spanning from 2010 to 2020, with forward testing from 2020 to 2024. The "ONNX Trader Clusters" bot embraces these models, supporting the training method from "Matching trades using clustering." By linking the ...

๐Ÿ‘‰ Read | AppStore | @mql5dev

#MQL5 #MT5 #MachineLearning
โค20๐Ÿ‘จโ€๐Ÿ’ป7๐Ÿ‘Œ4๐ŸŽ‰2