MQL5 Algo Trading
390K subscribers
2.58K photos
2.58K 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
Recently released reports delve into the emerging trends within the software development industry. Highlighting innovations, these studies are an insightful resource for those with an eagerness to be at the forefront of technical expertise.

One of the key findings is the shift towards microservices architecture. Fuelled by the drive for greater flexibility and scalability within applications, the widespread adoption of this architectural style signals its proven value. More organizations, recognizing the potential for greater speed and lower cost in the development and deployment of applications, are choosing a microservices strategy.

Increasing complexity in projects also underlines the growing requisite for DevOps practices. Teams seeking to streamline processes and methodologies whilst enhancing productivity and efficiency cannot overlook this integration. Collaborative efforts a...

Read more...
πŸ‘9πŸ‘2
Delving into the depths of the intricacies of automated trading and the challenges it presents, critical issues such as the efficient triggering of breakeven and trailing stop are discussed in detail. Distinctions are made between mechanisms suitable for HEDGING and NETTING accounts. Simple systems using OCO orders are considered the start-point. In practice, these models revolve around the assertion that take profit or stop loss orders are created the moment the EA sends an order to the trade server and cease to exist once the position is closed due to one of the limits being reached.

The C_Manager class is instrumental in creating the triggering mechanism for breakeven and trailing stop. Examining the function’s code reveals a simple yet dynamic process, capable of generating the breakeven level for positions. The operation revolves around comparing the latest financial value obtai...

Read more...
❀4πŸ‘1πŸ‘1
Addressing developers, a new approach has been identified, namely for buy stops, offering a unique solution for pending orders. This methodology may appear advantageous to those in the programming community, as it provides a streamlined solution to a recurring issue. The developers' feedback can be invaluable here, aiding in the identification of any potential bugs or inconsistencies.

In regard to requests for a code accommodating sell stops and other pending orders, please express interest. Given the proven interest, the attempt to construct an equally efficient solution in spare time, will happen. Unification of shared knowledge and problem-solving skills can be instrumental in ironing out potential issues in the provided code.

The pool of knowledge and expertise from the developer community is always welcome. Thus, assistance in spotting bugs or anomalies in the operational flo...

Read more...
✍5πŸ‘4πŸ†3πŸ‘2
Assessing the intricate interplay of shapes and angles in a neural network requires technical precision and substantial computational aptitude. Taking into account past experimentations with the DeepNeuralNetwork.mqh library, fundamental issues have been identified that point to an inefficiency in the optimization methods at play and the low performance of the neural network itself in comparison to a simple perceptron. It is speculated that the root of the issue may lie in the type of data being fed into the neural network.

Responding to this situation, newer experiments have been forged, taking into account the critique of the TakeProfit to StopLoss ratio. These have made use of a pattern tracking algorithm, coined as "template technology", which tracks the price effect on pattern recognition in determining entry points.

The crux of the latest experiments has been to evaluate the ...

Read more...
πŸ‘4πŸ‘2❀1πŸ‘€1
Keeping in line with the latest advancements in the realm of technology, a new indicator has been developed, incorporating aspects of a basic slope moving average and a cloud. Maintaining a user-friendly interface, the indicator showcases two central types of signals for the convenience of users. These are labelled as 'preparing' and 'entry', represented visually by a dot and an arrow respectively.

Framing a layout that simplifies complex computations, this indicator stands as a bridge between users and intricate data analysis. The 'preparing' signal serves as an alert for imminent events, letting users foresee the occurrence of possible shifts. On the other hand, the 'entry' signal functions as a prompt to take definitive action, guided by the fluctuating patterns indicated by the arrow.

Compact in its design yet multidimensional in its performance metrics, this development is a...

Read more...
πŸ‘8πŸ‘2
The recent strides in behavior cloning methods, grounded in supervised learning principles, have paved the way for impressive results. A central challenge, however, remains in identifying optimal role models which can be cumbersome and time-consuming to gather. Meanwhile, reinforcement learning methods possess the ability to function with non-optimal raw data, and in the process of searching for optimal policies, they can unveil suboptimal approaches to a set goal. Yet, while theoretically advantageous, in practice they often traverse into complex optimization problems, a fact that becomes starkly evident in higher-dimensional and stochastic environments.

A group of researchers proposed a solution to merge these two methodologies with the conception of the Distance Weighted Supervised Learning (DWSL) method. Designed as an offline supervised learning algorithm for goal-conditioned po...

Read more...
❀6πŸ‘2πŸ‘1
Implications of Spatial Temporal Fusion (STF) are vast. It tackles forecasting with a bifocal perception, tracking both demand and supply in collaborative platforms like Uber, Amazon or Airbnb. The dual prognostication of these two elements, previously unconventional, was crystallized in a research study that presented the causaltrans framework. Collaborative relationships present in demand and supply were demonstrated via a matrix G, with all forecasts made through a transformer network. It inspired a similar approach in tracking supply and demand for traded securities. To accomplish this, proxies for demand (bullishness) and supply (bearishness) were utilized. Drawing upon this, added dimensions of a spatial matrix and time were incorporated into the forecasting process. Instead of employing transformer networks, forecasts were done utilizing custom coded multi-layer perceptron. Bes...

Read more...
πŸ‘7πŸ‘1
The efficacy of optimization algorithms based on elements found in nature is widely penned in scientific literature. Swarm intelligence algorithms, for example, leverage intelligence to find salient solutions, which are particularly efficient for global search and adaptability to change. Conversely, physics-based algorithms model natural phenomena to solve optimization problems, a notable advantage being their ease of comprehension and general efficiency.

The Spiral Dynamics Optimization (SDO) provides a viable tool for solving complex optimization problems utilizing the logarithmic spiral phenomenon present in nature. The logarithmic spiral phenomenon has multiple occurrences in nature and often results in efficient search behavior in metaheuristics, which spawned the development of SDO.

However, several limitations and disadvantages plague the SDO algorithm when searching for so...

Read more...
πŸ‘4πŸ‘3πŸ‘Œ1
Presenting a comprehensive understanding on how to optimize trading performance using an Expert Advisor (EA). The EA's operation is reliant on personal technical analysis, with users having full control over trading directions - either long or short positions. However, please note hedging is unsuitable in this scenario.

An intriguing aspect of the EA is its intelligence in trade placement. Analysis of volume and levels sets the stage for strategic position designation. The parameters, Level and Length, are defining the depth of the pullback and the extent of scaling in trades respectively.

The EA operates with a maximum floating Profit/loss threshold, set by the Close PL, resulting in closure of all position once this limit is reached. Both profit and risk limit binding the profit/risk ratio are essential operational parameters. The 'capital' parameter represents your balance prior ...

Read more...
πŸ‘7⚑3😐2❀1πŸ‘1
Discussing metaheuristic optimization methods and their distinct feature of exploring large search spaces to land global optima from functions with many local optima or those that are not continuously differentiable. Among them is the class of evolutionary algorithms which mimic natural evolution principles to solve complex problems. Dive deep into the simplicity and efficiency of differential evolution algorithm, a member of metaheuristic optimization methods, which uses a population of vectors that mutate and crossbreed to generate novel solutions and has the ability to find global optima without requiring knowledge of the gradient.

Moving onto the algorithm of differential evolution, learn about the straightforward combination of simplicity and effectiveness. The differential evolution algorithm uses a population of vectors each representing potential solutions. An iterative proc...

Read more...
πŸ‘3❀1πŸ‘1
Tracing back the development of the Random Forest method, it delves into the works of some notable scientists in the field of machine learning and statistics. Rooted from decision trees, Random Forest was developed as an amalgamation of decision trees using bagging and added randomness. Each decision tree uses a random subsample from the training dataset and a random set of features in each tree node. This technique makes each tree unique and reduces correlation between trees, enhancing their generalization ability.

With its high performance and versatility to handle both classification and regression problems, Random Forest has quickly become one of the most popular methods in machine learning. It's used in making decisions regarding classing of an object or predicting numerical values, utilized in fields like finance, medicine, and data analytics.

Representing a decision tree wit...

Read more...
πŸ‘3πŸ‘2✍1πŸ‘Œ1
Presenting a modified interpretation of Igor Kim's i-session indicator, exclusively modified for enhanced functionality. View original code at www.mql5.com/ru/code/7419.

The modifications applied aim at optimizing its functionalities. First, the tool is now adapted to cater solely to the Asian trading session, enhancing niche specificity. Additionally, user-centric modifications such as adjusting Asian time to local time, customizing box colors, and deciding on box filling have been facilitated, bringing greater convenience for the user.

Evolved from the original, the box names have been omitted in this version. Further, maintaining a clean trading platform, all drawings vanish from the trading chart once the indicator is removed. Offering transformations to simplify trading intricacies.

Read more...
πŸ‘5πŸ‘4πŸŽ‰1
Developed in 1965, The Nelder-Mead method was designed to work with functions that did not have derivatives or did not have analytical equations for derivatives. This optimization method was applicable where traditional gradient methods couldn't be applied. In this process, Nelder and Mead introduced the concept of using a simplex - a polyhedron in the space of function parameters.

The Nelder-Mead method received overwhelming acceptance by the scientific community and is widely utilized in the field requiring function optimization. Algorithmically, it is a deterministic algorithm and can handle multiple local minimums without needing function derivatives.

Highlighting the nature of the simplex, it consists of a set of points forming a polyhedron, each point represents a set of parameter values of an optimized function. This algorithm computes by iteratively shifting the simplex in ...

Read more...
πŸ‘3❀1πŸ‘1
In an effort to enhance market structure analysis, a new segment of code has been developed. This innovative code aims to pinpoint the latest fractal price value, providing results via on-chart commentary. As it stands, the code does not support the identification of fractal lows. Members of the programming community are invited to scrutinize this new development for potential flaws. Constructive feedback and tangible suggestions are welcomed and highly appreciated to refine and improve this promising code. Collaboration always leads to advancement.

Read more...
πŸ‘8✍2πŸ‘1
Dive deeper into the intricacies of MQL5 programming with Part Six focusing on advanced array functions. Enhance understanding of automated trading nuances regardless of experience level. This chapter unfolds detailed explanations and examples on various array functions including ArrayPrint, ArrayInsert, ArraySize, ArrayRange, ArrarRemove, ArraySwap and ArrayReverse.

Understand the debugging utility of ArrayPrint, get introduced to ArrayInsert that tactfully inserts elements from one array into another, comprehend the role of ArraySize to ascertain the element count in an array and much more. Demonstrative outputs and analogies are provided to break down the function complexities, promoting a comprehensive comprehension of the developers.

Extend the understanding of how the different array functions contribute to the functioning and manipulation of arrays in MQL5. From debugging t...

Read more...
πŸ‘4❀2πŸ‘1
Taking a closer look at the Group Method of Data Handling (GMDH), an inductive set of algorithms operating automatically to optimize data models. Its innovative approach uncovers relationships within variables, offering an efficient way to handle data modeling. With roots in the combinatorial algorithm (COMBI), the combinatorial selective algorithm (MULTI), the multilayered iterative algorithm (MIA) and the relaxation iterative algorithm (RIA), this GMDH framework seamlessly integrates with MQL5.

Digging into the mechanics of GMDH, it's impressive to note the use of auto-generated data-driven models, crafted and fine-tuned, reducing the need for manual intervention. Optimization is carried out via a series of increasingly complex models, where variables are iteratively selected and combined. Resulting models that can depict complex relationships between numerous input variables, clea...

Read more...
πŸ‘4πŸ‘3πŸ‘Œ2
Crafting a robust trading strategy requires an innovative approach often overlooked by mainstream market participants: the integration of alternative data, particularly from sources like the St. Louis Federal Reserve Bank and their comprehensive econometric time-series database, FRED. Pairing alternative data with machine learning techniques provides unique insights and perspective that can give an undeniable competitive edge.

Consider the use of data from the St. Louis Fed as leading indicators, which can be beneficial for timing market entries and exits. This data source's immunity to external manipulation makes it a reliable candidate for strategic integration.

One of the many practical examples is the strategic use of satellite imagery by advanced traders to monitor shipping traffic patterns or observe inventory levels of oil tankers. These unique data points unearth previously...

Read more...
πŸ‘6πŸ€”3
A code sample offers a profound vision of trail stop loss implementation. It offers a glimpse into practical coding scenarios, although it's not recommended for direct incorporation into your projects. Instead, it should be used purely as a reference guide to assist programmers in understanding the associated concepts. Please note, this was primarily uploaded as a personal backup. It should reinforce much-needed practical knowledge of trail stop loss codes for those interested. This sample code is a testament to the practical applications in complex programming scenarios.

Read more...
πŸ‘9
In this analytical study, an attempt has been made to overcome the challenge traders often face while using built-in terminal indicators tailored to suit their particular trading styles. This has been achieved by leveraging the iCustom function to create custom indicators based on individual preferences. A practical example exhibited the creation of a custom Heiken Ashi technical indicator, further employed in trading system instances.

The process covered includes the Definition of Custom Indicator and Heiken Ashi, the creation of a Simple Heiken Ashi indicator, and using the indicator for EA. The MQL5 (MetaQuotes Language), a component of the MetaTrader 5 trading platform, has been employed to develop the indicator codes that coordinate the programming language.

Additionally, a clear distinction is made between the Heiken Ashi candlestick charting method, utilized for market move...

Read more...
πŸ‘7πŸ‘Œ4⚑3πŸ‘2πŸŽ‰1πŸ‘€1
For experienced developers interested in integrating trading signals with their Telegram channels, there is a method where one creates their robot using BotFather. By incorporating a telegram token and chat ID, the trades are converted into signals, providing real-time updates on your Telegram channel.

These elements, 'telegram token' and 'chat ID', will need to be manually sourced. However, information on successfully procuring them can easily be found with a quick google search. Once obtained, incorporating them into the code requires a straightforward attach process. This integration will allow continuous feed of all trades as signals to your Telegram channel, thus offering immediate updates regarding any particular trade's status.

This setup has the potential to greatly increase efficiency and effectiveness when monitoring trades. It efficiently bridges the gap between trading i...

Read more...
πŸ‘9❀4πŸ‘2✍1
Continuing on the exploration of reinforcement learning methods, some key points stand out in the examination of convolutional models and relational models, focusing on their applications in processing data from computer games and real-world scenarios.

Convolutional models excel at tasks related to image recognition, largely untroubled by object placement on the scene or image distortions. Its expertise lies in the ease with which it can handle tasks involving ideal data conditions, notably ones with negligible noise or object distortions. Applications in computer games provide excellent datasets for these models, given the absence of noise or object distortions.

Contrastingly, relational models effectively handle less-than-ideal data conditions, replete with various noises and distortions. These models distinguish themselves by building dependencies between objects, thereby struct...

Read more...
πŸ‘6❀1πŸ†1