MQL5 Algo Trading
389K 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
Unveiling the potentials of MetaTrader 5 indicators: the moving average and relative strength index. Both essential tools aid traders in spotting market trends and entry and exit points. The moving average simplifies data by creating a single, consistent line, aiding trend identification. In contrast, the relative strength index measures the speed and change of price movements and determines market over-saturation. Together, these tools can enhance your trades.

Delving into historical data can provide useful insights. Candlestick charts provide key details about price relationships over each period and highlight potential support and resistance levels. Past price movements offer intelligence about trend direction and strength. Historical patterns can guide traders in future market movements and strategy develops.

Issues with off-trend signals have been noticed in the system. The Tre...

Read more...
👍52👏2
Continuing the journey with MQL5 programming, part 7 of the series is ready to take theory to practice through real-world examples. The significance of pseudocode as a link between the code implementation and abstract algorithmic concepts will be a crucial investigation point. Things will move towards understanding how AI-generated code can enhance rather than replace conventional coding knowledge and the importance of code understanding. This article will reveal ways to incorporate AI-generated code into programming projects seamlessly.

Trading the high seas of the technological landscape, MQL5 programming now diverges towards project-based learning, focusing on mastering core concepts before developing Expert Advisors or custom indicators. This journey will show that step-by-step tackling of MQL5 complexities can lead to proficiency over time. The hands-on example will demonstrate...

Read more...
👍3👏2
Deepening the examination of MQL5 wizard implementation, this post delves into the critical role of Eigen Vectors in enhancing the efficiency of Neural Architecture Search (NAS). Neurological networks, mirroring curve-fitting to data, derive a formulaic expression that when applied to the input data yields a target value. This attribute has fueled the ascent of neural networks, owing mostly to their multi-dimensionality.

Addressing the question of network settings, various network types imply a broad spectrum of designs and settings. For the current discussion, focus is pinpointed on the multi-layer perceptron's hidden layer numbers and sizes. Although omitted in present discussions due to heavy computing requirements, factors like activation type, initial weights and biases can deeply impact network performance.

To mitigate exhaustive training, this post involves a single forward...

Read more...
👍51👏1
Stay up-to-date with the latest addition to the realm of code on MQL5. A fundamentally advanced concept elaborated by an esteemed contributor, this piece of code takes a holistic approach.

Emanating from the mind of a seasoned programmer, the code's intricacies invite closer inspection from discerning tech enthusiasts. The beauty of this code lies in the logical intricacies of its design. Truly, it is a valuable gem for those who deal in the cutting edge domain of development.

Remember, familiarity breeds contempt. Constantly updating your familiarity with evolving code architectures ensures maintaining the edge in this advancing sphere. After all, navigating the dynamic realm of programming requires perpetual upskilling.

This piece borrows from the rich expertise of its author and extends an opportunity for comprehensive understanding. Note, the value lies not just in applying ...

Read more...
👍51👏1
In an era of unsupervised machine learning, Kohonen Maps or Self-Organizing Maps (SOM) present an innovative approach to visualizing and analyzing high-dimensional data sets. Developed by Finnish mathematician Teuvo Kohonen in the 1980s, these maps reproduce a low-dimensional representation of a data set while maintaining the topological structure of the data, enabling easier data interpretation and trend spotting.

The algorithm behind SOM involves four key steps: initialization of weights, calculation of Euclidean distances between inputs and their corresponding weights, identification of the winning unit, and weight updates through the Kohonen learning rule. This competitive learning fosters a topological ordering of neurons in the map and facilitates the discovery of complex relationships in the data.

However, as potentially beneficial as Kohonen maps are, certain limitations are...

Read more...
👍4🔥21
The Commodity Channel Index (CCI) with dynamic channels provides an efficient way to exclude unnecessary signals produced by level crossings. This robust code iteration caters to the need of displaying indicators in a separate window.

The indicator comes with five buffers, all initialized and set to indicator data. The indicators are of DRAW_LINE type, and come in different colors for better visual analysis. The indicator_width5, set to 2, provides more thickness to the indicator line for easy visibility.

The input parameters for this CCI are: CCI period, price, overbought and oversold levels, upper and lower neutral levels, and a smoothing period. The parameters allow fine tuning the CCI indicator to adapt to specific market situations.

Buffers are set to accommodate the 'bupu', 'bupd', 'bdnu', 'bdnd', and 'cci' variables, preparing the system for rapid data entry and retrieval.

...

Read more...
👍9👏2👌2👨‍💻1
Dive deep into the distributed Q-learning algorithms along with the implications of Implicit Quantile Networks (IQN) and the Fully Parameterized Quantile Function (FQF). Discussing the theoretical aspects of each method, the technical breakdown of how they function is detailed. Explore these parameters in the context of implementation in the MQL5 programming language. Review how to build the feed forward process using already implemented operations of neural networks and how to create quantile embedding using the aforementioned formula. Understanding these functions can significantly augment the credibility and minimize the prediction error of your model. Delve into the specifics of the CNeuronFQF class and its feed forward process for a broader understanding of this topic.

Read more...
👍51👏1
A new script on the tech horizon has been designed to identify the closure of a trading day. This timely innovation will facilitate traders by generating a message box notification at the completion of each trading day. The presence of a user-friendly and efficient system marks a streak of progress in the field.

The script comes with features devised to ensure the smooth operation of facilitating transactions without the trader needing to constantly monitor their system. It aims to further simplify the process by allowing the end-user to be informed of the trading conclusion, effectively streamlining the trading procedure.

In a nutshell, with the implementation of this novel tool, traders can focus on their work without worrying about missing the closing of a trading day. The enhancement provided by this script is expected to significantly contribute towards advancing efficiency in...

Read more...
74👏1
Unveiling a highly effective script that delivers a tangible result in the trading universe. Steered with meticulous precision, it pinpoints the highest winning or losing trade within a plethora of transactions, subsequently proceeding to close them. To narrow down the requirement to either winning or losing trades, users are invited to comment on the appropriate code block. Further refining the process, the script incorporates a symbol and magic number filter, offering augmented granularity. The robust and straightforward operation of this tool cuts through the noise, marking it an ideal addition to any trader's toolkit.

Read more...
👍4🏆21🔥1👏1
Presenting an advanced script designed to calculate unbalanced positions in financial trading. Its purpose is to provide a comprehensive view of hedged or non-hedged positions and subsequently initiate corresponding hedge trades.

To elucidate, consider a scenario where a trader places a 0.01 lot and follows it with a 0.02 lot buy trade. Once the script runs, it automatically places a 0.03 lot sell trade. Subsequently, if a 0.05 lot sell trade is placed and the script rerun, it initiates a 0.05 lot buy trade.

With its reliable algorithms and secure framework, the script serves as a potent tool in mitigating risks, striking balance, and optimizing trading strategy. Efficiency and precision meet affordability in this robust solution for modern trading needs.

Read more...
👍61👏1
Developers, consider a script that possesses the capability to close or delete an order contingent on the input value passed onto it. In practice, if the OP_BUY parameter is issued, all buy trades would be abruptly terminated. Similarly, inputting OP_SELL_LIMIT would result in the immediate deletion of all sell limit orders. This represents another evolutionary step in the development of automation procedures, with impacts felt directly in the field of trading operations.

Read more...
👏51👍1
Attention to developers in the trading sector! We present a simplified script that diligently manages open tickets, geared to eliminate errors. The tool sorts the tickets in ascending order, proceeding to close them one by one, following the order of arrangement. The initial trade gets to be attended to first, followed by the second, and so on, until closure of all trades is achieved.

Designed with precision, this script comes furnished with a magic feature and a symbol filter. This pair continues being the cornerstone of trade management, enabling bespoke customization of activities. This characteristic aids to streamline the trade closing process; thereby, enhancing efficiency and saving time.

The script's innovative design prioritizes thoroughness and order to foster well-timed operations. You'll discover its simplicity, yet a stark standout efficiency-wise, in managing trade ti...

Read more...
👍6👏21
In the realm of order types, the following exist: OP_BUY, OP_SELL, OP_BUYSTOP, OP_SELLSTOP, OP_BUYLIMIT, OP_SELLLIMIT. Six in total, each bearing a unique role in the procession of market operations. This pertinent script is specifically engineered with the capability to accurately determine the quantity of both active and efficiently closed orders, rendered in correspondence with their particular type. Such a feature proves indispensable for effective order management and strategic decision-making in live market scenery. By rendering real-time data accessible in an organized fashion, the script facilitates efficient market analysis.

Read more...
7👍3👏2👀1
Unveiling an expert advisor that possesses the capability to calculate current winning and losing streaks in the MT4 terminal. The innovative system incorporates two filter options - one based on symbols, and the other on a Magic number. In case these filters are activated, the calculation of winning and losing trades will be contingent on the filter parameters. Enhancing the accuracy in determining the success ratio of trades, this expert advisor leads in precision and customization. Suitable for traders who appreciate granular control in their hands, this system proves critical in making informed decisions and strategizing future trades.

Read more...
👍93👏1
The world of binary options can be a riddle, considering the numerous trading platforms with limited capabilities for strategy testing and optimization. Hence, MetaTrader 5 proves to be a reliable tool for examining various strategies for binary options.

In binary options, the goal is to accurately predict the market scenario. The assets range from currencies, securities, commodities, and even weather forecasts. Despite the ease of trading and simple registration, the disadvantages include high risks and hefty commissions.

Multiple types of binary options are available for trading. High/Low options involve predicting whether the asset value will rise or fall, One touch requires predicting if the desired price level will be achieved, and Range determines a price corridor within which the asset value will be placed upon expiration.

Various strategies are available for binary options...

Read more...
👍64👏2🎉1
The expert advisory systems in development today pack a lot of efficiencies and features, but much excitement is around an advisor with a code that developers often find useful. Usually, the focus is on the last completed trade, but this advisor offers the flexibility of trade searching with any index.

By implying active trade, the reference is not to pending orders but market orders. For instance, passing 0 will yield the latest active trade, whereas passing 1 will fetch the trade before the most recent one, and the pattern repeats.

Another excellent feature is trade filtering based on symbols and magic numbers. These features enhance user experience and operational efficiencies, significantly driving productivity among developers and users alike. The trade search option by index, in particular, brings a fresh level of flexibility and customizability to the platform.

It is a de...

Read more...
5👌1
A robust new expert advisor promises to enhance developer interactions with trading indices. Traditionally, obtaining the last active trade is necessary; however, this new device provides a refreshing deviation, allowing developers to search a trade with any index. For clarification, by 'active trade,' market orders, not the pending ones, are referred.

The innovative tool operates on a simple numerical system: inputting '0' retrieves the latest active trade. Simultaneously, keying '1' brings up the trade prior to that, and the system follows this pattern progressively.

A unique add-on to this feature is its ability to sift through trades based on the symbol and magic number. This dramatically streamlines the trade selection process, enabling easier and more efficient navigation in the trading environment. Enhanced functionality and efficiency, now more attainable for developers with...

Read more...
4👍2👏1
Understanding the importance of history in the context of trading, an Expert Advisor (EA) has been devised to help. This EA functions to scan all closed trades, identifying the most recently closed one.

Renowned for its specificity, this EA implements a system where a passed parameter, such as 0, fetches the most recently closed trade. Continuation in this pattern, passing 1 for example, retrieves the trade that closed prior to the most recent, with following numbers retrieving their respective trades.

Key features of this EA include a symbol filter and a magic number filter. These filters grant the ability to sort trades based on particular symbols and magic numbers, thereby upping the game in targeted analysis.

Overall, this EA holds great potential in enhancing trade monitoring through its specialized historical review feature.

Read more...
3👏31👍1
In the realm of expert advisor development, finding solutions that cater for common requirements can be invaluable. One such solution presented here allows developers to search for a trade using any index, rather than just the last active trade. This feature enhances flexibility and control.

Active trades, referring specifically to market orders, can be fetched based on their position in the sequence - the most recent active trade being retrieved by passing 0, the preceding trade by passing 1, and so forth. Moreover, this solution affords the opportunity not only to identify trades but also to filter them based on symbol and magic number.

In essence, this expert advisor provides a comprehensive approach to trade retrieval, delivering efficiency and customization to developers in their work. Providing solutions that encompass a myriad of developer needs is an invaluable quality.

Read more...
👍65👏3
Designing a robust trading system takes skill and knowledge of key technical analysis tools. One such tool is the Fibonacci Retracement, widely appreciated for its efficiency. The text discusses how to use this tool to build an effective trading system on the MetaTrader 5 terminal using the MQL5 language.

The process includes defining Fibonacci, understanding its strategy and blueprint, as well as creating a trading system. It's advised to supplement Fibonacci with other technical tools for best results. Before actual trading, thorough testing of the strategies is recommended.

The Fibonacci Retracement tool is based on the Fibonacci mathematical series. On a chart, it appears as horizontal lines at levels like 23.6%, 38.2%, 50%, and 61.8%. The retracement after an uptrend or downtrend is tracked using these Fibonacci levels acting as potential support or resistance points.

Two a...

Read more...
👍82👏2