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
This media is not supported in the widget
VIEW IN TELEGRAM
πŸ”₯33❀23πŸ‘23πŸ‘6πŸ†6πŸŽ‰5πŸ’―4
Struggling with the idea of creating your own Expert Advisor or programming indicators? Reading code doesn't translate to understanding it. The process might seem complex but with a step by step guide, even beginners can grasp how to automate trading.

Taking a look at the MQL5 language, which is not only for trade automation but extends to plotting indicators, creating files, working with databases, and much more. This guide is for traders eager to harness programming for their benefit - reducing dependency on programmers by acquiring MQL5 language proficiency.

Learn basic programming and technical terms; familiarize yourself with central processing units (CPU), random access memory (RAM), execution thread, bit, byte, and external drives. This guide simplifies the functionalities of each, sharpening understanding around the building blocks of programming.

Before launching into pro...

Read more...
πŸ‘8❀5πŸ‘3
Immerse in the scientific exploration of the Intelligent Water Drops optimization algorithm’s potential to model natural occurrences and their uses in solving intricate problems. The IWD algorithm, a brainchild of Hamed Shah-Hosseini, imitates the principle of self-organization and interaction between particles in the rivers, making it a significant tool in optimizing and resolving complicated issues.

The algorithm adopts three distinct aspects for optimization: speed, soil and time ratio. It captures soil from the riverbed and transports it along the river’s path, modifying the river’s trajectory to its advantage. As the less soil a path contains, the faster it is for the drops to traverse; the water drops intelligently manipulate their environment to create the most optimal course with the least resistance.

Since soil is a dynamic parameter and not proportionate to fitness, it req...

Read more...
πŸ‘5πŸ‘2❀1
Understanding your broker's daylight saving time (DST) observance can prove beneficial, particularly for those operating on precise scheduled tasks. In this task, a trailblazing script is employed to assess whether your broker abides by US, UK, or AU DST schedules. The methodology is simple and effective: examining H1 chart bars on expected DST change dates and contrasting the alterations in server times.

The DST_AU schedule marks the commencement of server DST on the first Sunday of October (+1), concluding on the initial Sunday of April (-1), easily verifiable at https://www.timeanddate.com/time/change/australia/sydney.

For the DST_UK schedule, server DST begins on the final Sunday in March (+1) and concludes on the last Sunday of October (-1), taken from https://www.timeanddate.com/time/change/uk/london.

The DST_US schedule starts server DST on the second Sunday of March (+1), e...

Read more...
πŸ‘10❀2πŸ‘1
Seasonality in trading refers to observed predictable changes in asset prices throughout the year, often due to factors like weather, holidays, quarterly earnings, tax-related events, and natural industry cycles. Understanding these patterns can offer valuable insight to investors who note the potential for predictable and profitable trends. However, another valuable tool in algorithmic trading is the low-pass filter, which helps diminish noise and emphasize longer-term trends, lower transaction costs, and better manage risk.

Data from the Forex market shows that seasonality does indeed have an impact. When data from February 2015-2023 was observed, some tendencies were noted, indicating that markets and seasonality can be considered good companions. While the idea of merging Expert Advisors into one seems plausible, caution is recommended to avoid the pitfalls of high-frequency cha...

Read more...
πŸ‘7πŸ‘3❀1
Discover the power to manage multiple trades with ease with MoveStoploss. This robust tool is the key to order placements and dynamic strategy adjustments on various trading platforms. Supervise any manual trade, set preferences on tailing distance as stipulated or commanded by the Expert Advisor (EA), and cater to fluctuating market scenarios effectively.

Applicable to currencies, commodities, cryptocurrency, and stock trades across all time frames, MoveStoploss provides unparalleled versatility to traders at all skill levels. The Auto Trail function maintains the specified distance ensuring you can concentrate on strategic decision-making.

Switch off the Auto trail and set the preferred distance for situations that call for more control. Say goodbye to time-consuming, stress-inducing manual stop loss adjustments. Let MoveStoploss automate this process, providing greater command of...

Read more...
πŸ”₯7❀4πŸ‘1
With the introduction of matrices, vectors, and the ONNX to Metatrader5, the MQL5 community now has the exciting capability to build artificial intelligence (AI) trading models of any complexity. This new addition offers promising potential across industries, from entertainment to healthcare.

Artificial Intelligence, currently being honed by tech giants Google and Microsoft among others, may sound complex but with a solid understanding of AI's fundamental components, it becomes manageable. Today's focus? Optimization algorithms.

What's their function? To fine-tune the parameters of your neural network as they train - reducing the loss function and improving overall performance. The key influencers here are the optimizers. These compute the mismatch between actual values and network predictions, progressively minimizing this error through parameter modification at each training itera...

Read more...
πŸ‘3❀2πŸ‘1
In initiating the program, remember to input the current trader and investor password in the allocated "CUR" field. To auto-generate a fresh password, utilize the "NEW" option, or specify the account type, be it "TRADER" or "INVESTOR," in the "NEW" row. Increment your point in the storage history and manifest new passwords using the "NEXT" function. Secure passwords can be archived and stored in the terminal files directory by deploying the "SAVE" action. Remember, this tool is designed to aid password management, ensuring ease of access and heightened security. Remember to leverage these features for optimal account protection.

Read more...
πŸ‘4❀1πŸ‘1
MQL5 Algo Trading
This media is not supported in the widget
VIEW IN TELEGRAM
❀17😐11πŸ‘5
In a previous piece, the concept of creating a breakeven and trailing stop system with two operable modes for automated Expert Advisor (EA) settings was discussed. Currently, the system isn't fully automated, instead operating in a "semi-manual" way, reliant on the user-specified settings for the placement of the line or stop order. The following will introduce a further level of automation to the system.

This new level of automation relieves traders from constant activity. Users assign a time during which the EA can send orders or open positions. However, as a stipulation for the system's success, user behaviour must align with the system they set. Automation includes the introduction of a time slot control class, a class constructor, a StringSplit function, and a StringToTime function.

Simultaneously, the dangers of an unsupervised EA is underlined. Users will also need to pay c...

Read more...
πŸ‘4⚑1πŸ‘1
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