MQL5 Algo Trading
392K subscribers
2.59K photos
2.59K 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
The ability to successfully conduct trading operations stems from effective utilization of MqlTradeRequest structure when creating a trading request. Specifics of each operation, trade volume request, and the trading instrument itself are among the elements affected by trade requests. Ensuring these factors are properly accommodated can significantly increase the proficiency of trading operations.

For instance, the interaction between the client terminal and trading server, engaged in order placement, is dictated by trade requests. The specification of actions forms the backbone of these requests, with the resulting operations being handled appropriately.

In addition, while filling in required fields of the structure, one can set a trade order to the server. These entries can range from the proposed volume of a trade deal, price, stop-limit order level, to even comments on an order...

Read more...
πŸ‘4❀2
The complex world of technical analysis has an intriguing instrument at its disposal: a system that pinpoints the occurrence of six rising bull candles or falling bear candles. It then earmarks an arrow to signal this event. This tool is invaluable for traders as it can pinpoint potential operational breaks in reversal trading.

Observing the formation of six soldiers enables traders to halt operations temporarily. This pause is critical, allowing traders to circumnavigate the potential pitfalls associated with getting caught in a breakout. Understanding these systems, patterns, and signals can play a pivotal role in maximising profitability over time and minimizing losses.

Read more...
πŸ‘2
Expounding on the intricacies of candlestick plotting – the methodology emphasizes the importance of checking if either the upper or lower Wick range of a candlestick is greater than the Body range. This process is essential to accurately project the wingding. In the graphing world, this specialized method can offer vital insights into the trend patterns. Utilizing it effectively may significantly enhance the accuracy and reliability of charting endeavours. A comprehensive understanding of this approach is an effective tool in a programmer's arsenal.

Read more...
πŸ‘3
Unveiling the functionalities of the Donchian Channel indicator, a comprehensive tool in market trading. Developed by Richard Donchian, it utilizes the highest high and lowest low from a stipulated number of periods to determine market volatility. Clear demarcation of high and low values exhibits the channel and aids in discerning price stability.

The indicator underscores four key buffers: Upper Donchian Channel (Buffer 0 - Green Line), Middle Donchian Channel (Buffer 1 - Blue Line), Lower Donchian Channel (Buffer 2 - Green Line), and MA Donchian Channel (Buffer 3 - Red Line). Each contributes to the overall authenticity of this dynamic trading instrument.

Breaking down the code, the high and low values from the set 'n' period are extracted initially, followed by an average to generate the Middle Line of the Channel. A moving average of the Middle Donchian Channel is then calculate...

Read more...
πŸ‘4❀1
Addressing a technical concern within the realm of developing a replay system, an issue appears regarding the use of current replay systems. They are ill-fitted for the exploration and practice of certain operation systems, an issue largely stemming from a lack of pre-analytical capabilities. The unavailability of these crucial bars leads to an inability in gaining reliable indicator information. Addressing this is the necessity to conduct careful and appropriate calculations considering the largest period needed for each indicator to generate useful data.

Furthermore, modifying the replay system necessitates an understanding of details regarding the chart period to be used in the replay, along with the minimum period required for useful information generation. These considerations determine efficiency when we apply them to create a market simulator. The difference between the replay...

Read more...
πŸ‘4
In the realm of trading algorithms, a novel feature has been integrated into a specific indicator. This feature offers an input field dubbed 'multiplication factor'. Users are given the leverage of inputting any value of their preference to identify a custom hammer or inverted hammer.

For instance, when using a multiplication factor of 1.25, the algorithm is designed to search for a hammer wherein the shadow of the hammer is at least 1.25 times of the body. In contrast for the inverted hammer, the factor applies inversely.

The results are denoted by plotting a specified color input into the system, making the custom hammer or inverted hammer easy to distinguish. This update leads to improved efficiency and precision in recognizing trading patterns, providing an upper edge to strategists in their respective trading markets.

Read more...
πŸ‘6❀1⚑1
Proposing a new approach to handling the problem of large, unwieldy source code in the context of swapping or adding ONNX models. This involves utilizing object-oriented programming to streamline workflows and enhance the outcomes of trading strategies.

Three distinct classification models were trained on MetaQuotes-Demo server data, each with different counting techniques and averaging periods. Through the utilization of the base class, the models shared a uniform interface and were implemented with methods like PredictPrice or PredictClass as per the specific requirements.

Key functions were redefined for each model class to manage the sizes of the input and output tensors. Complementary Expert Advisors were created for the evaluation of every model's performance.

The final test combined the strengths of all models; the hard voting technique offered improved outcomes - profita...

Read more...
πŸ‘2
Update on v1.01: Noteworthy modifications have been implemented which include the incorporation of a magic number, an overseer on the symbol which allows for multiple chart attachments within the same account, a time controller for trading, and an option for forceful closure of all trades once the end hour is reached.

The EA carries out the deployment of a grid consistent with pending limit orders in synchronization with the current price, the selling limit above and buying limit below, as well as the trading range, which is computed through the use of weekly highs and lows.

Subsequent to the execution of the orders, the EA administers them. The operational rule is that if the number of executed orders amounts to 2, a new limit is opened at the pen price. If the number of executed orders exceeds the total minus 2, the limit orders are reset to the range. For an exhaustive overview...

Read more...
πŸ‘3
As a senior developer, the evaluation of ChatGPT from OpenAI - an artificial intelligence tool cognizant of practicing various scientific tasks such as physics, chemistry, and, intriguingly enough, programming and mathematics - is manifold and fascinating.

Resources can be optimised through the functionalities it offers, such as code generation, code refactoring, error debugging and speeding up the process of developing advanced algorithms in the realm of trade. A profusion of layered benefits are borne from proper utilisation.

However, a cautionary note - the tool yields optimal results only when the user asks specific, intelligible and simpler questions. Complex problem solving often results in inaccurate responses due to the inherent limitations in the algorithm's processing capability.

The AI model leverages existing information and cannot access any updates post 2021. Its c...

Read more...
πŸ‘6
Professional programmers, take note. Official documentation now features examples for every code and function for your perusal. This recent update reflects the commitment to making coding more approachable and workable. Newbies and veterans in coding, take advantage of this straightforward code that promises rapid evolution. It's a handy tool that facilitates code refinement.

Your input matters. Give feedback on preference between documentation code and new simplified code. Remember to rate and enhance visibility.

Several new codes are now accessible on the Mql5 iFunctions platform. Among these are beginner-friendly versions of ADX, Alligator, and others by William210. Adapt and enhance your stroke with the Adaptive Moving Average, RSI, and more.

Even more coding capabilities are included in this update. Traverse the intricacies of Awesome Oscillator and RSI calculations without ...

Read more...
πŸ‘11❀2
Revisiting the mechanics of SPDR’s consumer discretionary ETF XLY: Launched on 22nd December 1998, the ETF currently boasts an AUM over U$16 billion. This particular ETF presents potential ambiguity, for example, is AMZN classified as a discretionary goods seller, staple goods seller or a tech company? However, for those seeking exposure to AMZN, it can only be found in this sector ETF. It's important to note, XLY is predominantly impacted by economic cycles.

Shifting gears to the technical side of things, MQL5 language and MetaTrader’s Integrated Development Environment (IDE) are frequently used to develop autonomous trading systems, scripts, and indicators. However, trading ETFs on the platform depends on whether the broker offers them. In this article, attention is directed towards the advantageous component of a trade system - time series analysis and forecasting, especially for...

Read more...
❀3πŸ‘1
In the realm of technical analysis, candlestick patterns provide crucial insights. Specifically, the interplay between bullish and bearish candles can portray potential trading signals. Consider this scenario: A bearish candle is observed and is instantly succeeded by a bullish candle, where the bullish candle opens below the closing rate of the preceding bearish candle. In such cases, the graphic representation marks a bullish arrow.

Conversely, when a bullish candle is succeeded by a bearish one, and the bearish candle opens above the closing point of the bullish candle in the market, a bearish arrow is plotted on the chart. Such patters are critical in the interpretation of trading signals. They can help traders to predict the possible future behavior of market prices.

Remember, understanding these subtle clues of candlestick patterns can be the difference between profitable trad...

Read more...
πŸ‘4
A fundamental aspect to consider in financial graph analysis pertains to 'candles'. A 'candle' without a corresponding 'wick' replaces the standard representation with an "x" via the Wingdings font. This technical aberration creates a unique subplot within the broader analytic framework, calling attention to specific data points for closer scrutiny. True to its name, the 'candlestick' graph, derived from ancient Japanese rice trade, is a sophisticated tool for recording price movements over discrete periods. The wick's length insinuates volatility within that period - a valuable cue for financial analysts. Consequently, the absence of a wick and the resulting 'x' sign serve as crucial indicators for seasoned traders and programmers in the domain.

Read more...
πŸ‘5❀1
Understanding changes in candlestick patterns can provide substantial insights for market trends. An event occurred where the most recent candlestick's body was entirely submerged within the preceding candle's wick. This kind of formation may convey crucial market dynamics, potentially signifying a trend reversal, depending on other supporting indicators. It's an unmissable chance to refine the trading strategy and adjust risk parameters to suit these new insights. Stay updated.

Read more...
πŸ‘6❀3
The constant evolution of technology presents exciting challenges to those in the IT and programming industry. Staying well-informed and updated about the changes is the key to staying relevant. It's evident that adaptability and continuous learning are not just buzz words, they're integral to professional survival. Understanding the new programming languages, grasping the nuances of latest tech trends, and knowing how to leverage these can make a huge difference in your career trajectory. Leadership and teamwork skills are equally important. Don’t underestimate the power of a strong professional network. Peers can provide beneficial insights and opportunities.

Invest time in learning key concepts as well as mastering the tools and technologies that help push efficiency. Consider broadening your skill set through relevant certifications. Aligning your skills with the latest technolo...

Read more...
πŸ‘7
A closer outlook on the significance of employing an experience replay buffer in enhancing Q-function learning stability in reinforcement learning algorithms, with a particular focus on the Actor-Critic family. It is understood that a greater and more diverse collection of environmental interaction examples improves the learning and reproduction ability of the Q-function model. Conversely, a limitation arises as the Actor's actions over time tend to diverge from the stored examples in the buffer. One potential solution stems from the "Off-policy Reinforcement Learning with Optimistic Exploration and Distribution Correction", published in October 2021. Adapting the Distribution Correction Estimation method to the Soft Actor-Critic algorithm aims at offsetting the effect of pessimistic under-exploration and directional homogeneity.

The initial notion of optimistic environmental explo...

Read more...
πŸ‘2❀1
In the journey of obtaining significant insights from the Binance crypto exchange, a newly developed script steps into the limelight, making our tasks efficient. This script displays Binance quotes in a customized symbol window.

As a step forward, setting up your terminal to adapt to this change initially requires handling the WebRequest within the Expert Advisors' realm. By incorporating https://api.binance.com in the settings, one builds the foundation needed to use the script.

Bringing in the BinanceQuotesDownloader file to the Scripts folder in the MT5 terminal directory embarks the next stage of this process. Launching the script is just a double-click away one reached this point.

Further, navigations within 'View' to 'Symbols' would open a new window. A closer look into 'Custom' followed by 'Binance' should bring forth a list encompassing various Binance cryptocurrencies. ...

Read more...
⚑3πŸ‘3❀2✍1πŸ‘1
A discussion on the adjustments to C_Replay class that simplify tasks and optimize replay/simulation system performance. These modifications ensure simpler implementation of additional functionalities and improvements to this system. A key aspect to be considered is the challenge to model an initially difficult question in a comprehensible manner.

Those who follow closely will note the material could be deemed irrelevant by some, yet vital to others. For a more in-depth understanding, it is advisable to pay close attention to the explanations throughout this and the subsequent articles.

Additionally, focus is cast on a tool extensively employed by traders globally - the tick chart. Despite contrary beliefs concerning its advantages, it broadcasts crucial information for an in-depth market analysis. Thus, in pursuit of as authentic a market experience as possible, it becomes paramo...

Read more...
❀2πŸ‘2πŸ”₯1
In the pursuit of enhancing the realism and applicability of the market simulation, the SIMULATOR system has been worked upon. Despite successful simulation of orders, it has been observed that the system requires additional information, making it necessary to optimise and implement a parallel development strategy.

One key area of focus is the understanding of the asset under simulation or replay. On the outset, the task of creating a fully automated system to collect such information seems daunting. However, leveraging programs like EXCEL to build potential market scenarios may prove to be promising in designing this mechanism.

To streamline maintenance and advancements, the system was also reorganized by distributing the components of the C_Replay.mqh header file. There's no advocacy for bulky code. Readability, optimisation, and modularity of the code are pivotal for seamless de...

Read more...
πŸ”₯4πŸ‘1
In the realm of data analysis, we often need to distinguish between upper and lower wick of a candle to identify any imbalances. With a specially constructed algorithm, it's possible to plot a "wingding" based on this differentiation. This method gives developers hands-on control to define the multiplication factor as needed.

For example, assigning a value of 2 allows the interpretation that if the upper wick length outreaches the lower wick length by two times, or the lower wick outpaces the upper one by the same factor, a wingding is then plotted on the side with greater wick area.

This gives an immediate visual representation of imbalances in the data, a highly valuable tool for detecting potential anomalies. This method represents a critical step in advanced analytics and provides a powerful tool for pattern recognition in diverse datasets. Subtle changes in wick lengths, when a...

Read more...
πŸ‘5❀4