MQL5 Algo Trading
405K subscribers
2.65K photos
2.65K 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
Discover the Dialectical Algorithm (DA), a novel approach to optimization blending dialectical materialism with modern techniques. DA uniquely splits solutions into speculative and practical thinkers, embracing the opposition of thesis and antithesis to refine results. The algorithm systematically sorts and evaluates solutions through interactions that reflect philosophical dialectics, iterating towards improved solutions. Notable for its efficiency, DA achieves a fine balance between exploring global solutions and honing local searches, evidenced by a strong 57.95% efficiency rate in tests. This innovative synergy of philosophical principles and optimization showcases potential for traders and developers in algorithmic trading.

👉 Read | Quotes | @mql5dev

#MQL5 #MT5 #Algorithm
49👌8👍5😱3🤝2🎉1👨‍💻1
In computational tasks, arrays serve as the backbone for ordered data collections, enabling efficient access to elements using indices. They are crucial in solving linear algebra, mathematical modeling, and machine learning problems through operations on matrices and vectors. Such tasks demand mathematical proficiency and the ability to manage complex loops. Advanced data types like 'matrix' and 'vector' facilitate code that resembles mathematical notation, reducing reliance on nested loops.

In MQL5, vectors are one-dimensional, comprising double-type arrays, and support operations like addition, multiplication, and norm calculation. Conversely, matrices extend this structure into two dimensions. Operations such as element-wise arithmetic, matrix multiplication, and various forms of decomposition are supported, including LU, QR, and SVD. Understanding t...

👉 Read | Docs | @mql5dev

#MQL5 #MT5 #Algorithm
60👌7👍1👨‍💻1
The MetaTrader 5 platform, augmented by the MQL5 Wizard, empowers traders to efficiently prototype trading strategies without deep coding expertise. This modular framework enables selection of predefined signal classes and money management strategies, fostering broader access to algorithmic trading. In exploring extended applications, machine learning, notably the Beta-Variational Auto-Encoder (beta-VAE), is utilized to enhance pattern recognition and decision-making. By transforming binary indicator values into latent representations, beta-VAE uncovers hidden patterns and supports inference-based trading decisions. This results in improved pattern detection, helping traders adjust strategies for differing market conditions, thereby enhancing market liquidity and trading efficiency over time.

👉 Read | AlgoBook | @mql5dev

#MQL5 #MT5 #Algorithm
23👍6👀3😁2👌2🏆1👨‍💻1
Genetic algorithms are pivotal in solving optimization problems by leveraging processes akin to natural evolution. The Royal Flush Optimization (RFO) algorithm offers a streamlined approach to these challenges. By representing the search space as discrete sectors, akin to poker card ranks, RFO eliminates the costly conversion of real numbers into binary form, enhancing computational efficiency.

Implementation of RFO involves abandoning conventional binary encoding and instead, assigning sectors values similar to poker cards, ranging from jack to ace. This simplifies calculations while maintaining genetic algorithm properties. Operators like crossover and mutation directly manipulate these "hands," facilitating a more intuitive exploration of the search space.

Test results demonstrate RFO’s potency with performance measured on established benchmar...

👉 Read | AlgoBook | @mql5dev

#MQL5 #MT5 #Algorithm
69👌5👀5🏆2👨‍💻2😁1
Template overloading through function templates allows for flexible handling of data types by the compiler. In a recent exploration, we examined how substituting a procedure with a template-based function can streamline coding practices, especially when dealing with varying data types such as ulong and ushort. By aligning function declarations with specific type requirements, we achieve both broad applicability and targeted functionality.

Crucially, understanding 'typename' is pivotal for template coding. It aids in detecting data types, ensuring functions handle variable types effectively during compilation. This is particularly beneficial in complex programs, as seen in the type handling and mirroring tasks executed in recent exercises. Implementing bit-level manipulations can further hone these coding techniques, enhancing precision and understanding.

👉 Read | AlgoBook | @mql5dev

#MQL5 #MT5 #Algorithm
20👍8👨‍💻1
Improving library classes and integrating event handling for graphical objects can enhance responsiveness in trading platforms. Developers often face challenges when programmatically defining graphical object properties. Tracking changes in objects, such as when a line is crossed, adds computational overhead. The OnChartEvent() function can efficiently signal these changes, minimizing resource-intensive polling.

This functionality is being expanded to include the creation, property modification, renaming, and removal of graphical objects. By extending the current library class toolkit, developers can programmatically identify and respond to changes in specific properties, ensuring precise and efficient event handling without unnecessary overhead.

Enhancing event control involves adding new identifiers and message indices. This ensures events like g...

👉 Read | Quotes | @mql5dev

#MQL5 #MT5 #Algorithm
64👍15👨‍💻8👌43😁2
Explore the latest advancements in building a robust statistical arbitrage framework tailored for MetaTrader 5 traders. The initial setup includes Python classes for cointegration tests and a comprehensive database to facilitate real-time strategy updates. A key focus is a scoring system that critically evaluates liquidity, transaction costs, and stability of portfolio weights to ensure efficiency. Additionally, strategic criteria like data frequency and lookback period can greatly impact trading outcomes. This detailed approach not only enhances the reliability of trading systems but also bridges the gap between theoretical concepts and practical, testable algorithmic trading strategies.

👉 Read | VPS | @mql5dev

#MQL5 #MT5 #Algorithm
27👍2👌2👏1👨‍💻1
Explore the transformative power of the Multi-Timeframe Harmony Index (HI) for MetaTrader 5. By distilling multiple timeframe biases into a single, normalized value between -1.0 and +1.0, HI offers a streamlined decision-making tool with visual clarity through an integrated dashboard. Utilizing a three-bar structural logic and weighted formula, it presents traders with real-time alerts and chart signals, enhancing trading precision. HI's modular design supports both discretionary and algorithmic strategies, exporting data for broader integration across trading systems. User-defined weights and thresholds further tailor its application, making it an indispensable asset for both chart-based and automated trading.

👉 Read | Signals | @mql5dev

#MQL5 #MT5 #Algorithm
47👨‍💻5
The Circle Search Algorithm (CSA), an optimization technique, leverages the geometric properties of circles to balance exploitation and exploration. Its innovative approach, using tangents and angles, offers smooth search space exploration, particularly effective in high-dimensional spaces. CSA adapts agents' positions dynamically, improving convergence and solution quality. Despite some convergence issues, CSA's ability to handle complex problems remains noteworthy. Practical applications include aiding traders and developers in optimization scenarios. Changes to key parameters have enhanced predictability, making this algorithm beneficial for solving challenging optimization tasks in algorithmic trading and beyond.

👉 Read | VPS | @mql5dev

#MQL5 #MT5 #Algorithm
58🤣11👨‍💻6👀4👍31
Explore Archimedean copulae in MQL5 for algorithmic trading! Unlike Gaussian and Student's t-copulae, Archimedean copulae offer a simplified algebraic structure and asymmetric dependency modeling, ideal for traders and developers seeking more accurate market predictions. Discover how Frank, Joe, Gumbel, Clayton, N13, and N14 copulae can be deployed to capture diverse dependencies in markets. They excel in situations where traditional models falter, particularly in non-linear and asymmetric relationships. Learn to leverage copula-based methods for enhanced pairs trading strategies, overcoming limitations of traditional methods by addressing non-normality and tail dependence, leading to more informed trading decisions.

👉 Read | NeuroBook | @mql5dev

#MQL5 #MT5 #algorithm
29👌4👍3👨‍💻2