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 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
A groundbreaking Expert Advisor has been developed, capable of recognizing handwritten digits sourced from the MNIST database. The database is robust, comprising 60,000 images destined for training along with a further 10,000 images earmarked for testing.

This wealth of images was generated by innovatively re-mixing from an original NIST set of 20x20 pixel black-and-white samples. These original samples were acquired from the US Census Bureau and supplemented by testing samples taken directly from American high school students.

The images were processed and adjusted to a standardized 28x28 pixel size and rendered using anti-aliasing to seamlessly introduce grayscale levels. The subsequent model, mnist.onnx, was trained on this dataset, resulting in a robust handwriting recognition system, which can be downloaded from Github's Model Zoo (opset 8).

Although the processing of the ou...

Read more...
πŸ‘15❀1
Continuing to assess reinforcement learning methods, attention is given to the reward function. A crucial part of model training, it has notoriously ambiguous signals. In pursuit of encouraging desirable behavior from an Agent, reward functions often become more complex with added bonuses and penalties. Problems in Agent achievement can arise in spite of careful design, creating difficulty in deciphering the translation of these signals. To alleviate this, a proposal for reward decomposition is presented.

The method, involving the breakdown of rewards into individual chunks and examining their influence, allows for better understanding of Agent behavior. It also aids in identifying issues and effectively adjusting the model architecture, training process, or reward function.

Reward function value decomposition proves a successful solution for a variety of challenges due to its sim...

Read more...
πŸ‘6πŸ‘1
Learning MQL5 with no prior programming experience? It's challenging but achievable! The series of forthcoming articles aims to make MQL5 accessible to beginners, breaking down programming fundamentals such as variables, data types, loops, and conditional statements. The approach is step-by-step, starting with simple scripts and gently guiding towards more complex topics.

Consider this a comprehensive resource, complete with real-world examples illustrating how MQL5 applies to algorithmic trading. Interactive learning is encouraged, pushing readers to practice writing code, experimenting, and applying their knowledge. Ultimately, these articles are crafted to allow those with no programming background to skillfully tackle MQL5 and the exciting world of algorithmic trading.

The array of forthcoming topics includes:
- Introduction to Programming
- Types of MQL5 Programs
- MetaEditor I...

Read more...
πŸ‘9❀4
For those keen on learning coding or those in search of basic code that allows speedy evolution, this information is beneficial. It provides simplified and reusable code extracted from the official documentation. The feedback on whether the original documentation code is preferred or the revised version is encouraged. Engaging through comments and rating is recommended for an optimized Search Engine Outcome.

Various coding examples targeting beginners are provided; these cover a range of functionalities such as ADX, Alligator, AMA - Adaptive Moving Average, ATR - Average True Range, Bollinger Bands, Ichimoku, MACD, Momentum, Moving Average, RSI, and Stochastic. In addition, a slightly more advanced level of coding is introduced with the calculations of these indicators that do not employ the Mql5 iFunction. The specific examples include AO - Awesome Oscillator and RSI.

For those int...

Read more...
❀28πŸ‘12
Post:

In the recent article, the focus was on different types of Moving Averages and their respective performances. The comparison allowed for a deep understanding of the strategies behind moving averages. Particularly, the analysis focused on the simple type of moving average, comparing its results with other types.

Article also observed the traders' tendencies to resort to different types of moving averages according to their preferences. A detailed analysis ensued, testing the performance of each type and comparing the results.

Creating a simple application for backtesting strategies in MetaTrader 5 Strategy Tester is also highlighted. For insights on understanding testing results, refer to the dedicated article on utilizing MQL5 Strategy Tester effectively. Following topics were dissected in detail: Simple Moving Average (SMA), Adaptive Moving Average (iAMA), Double Exponenti...

Read more...
❀13πŸ‘4πŸ”₯2
If you're seeking to simplify your code for more manageable re-usability, the official documentation offers an array of functional examples. Whether you're just entering the world of coding or if you're a seasoned computer programmer looking to streamline your code, these resources are there to aid your programming journey.

Referencing the documentation, and tailoring it for increased simplicity, an array of codes has been developed. They serve as accessible starting points for individuals seeking to gain momentum swiftly in their coding endeavors. Your feedback on these examples, outlining whether the official documentation or the simplified versions are more beneficial for you is welcome.

Several beginner-friendly codes based on Mql5 IFfunctions have been provided. These include ADX, Alligator, Adaptive Moving Average (AMA), Average True Range (ATR), Bollinger Bands, Ichimoku, MAC...

Read more...
πŸ‘7❀6πŸ‘1
Examining the practical application of category theory within the realm of trading system design. Focusing on the use of functors, in conjunction with monoids, to guide decision-making in trading. Using classes from Meta Editor IDE, we discuss how position sizing can be influenced by projected stop loss within a custom instance of the Expert money class. Functors capture differences between categories, useful in forecasting changes in volatility and market trends. They can further be implemented as multi-layer perceptrons, serving as bridges in the neural network. This article explores how monoids and functors can work together to set position sizes in trading. A case study will also demonstrate their potential in a real-world scenario. The implications of this methodology are vast, potentially introducing a new era of precision in trading system design. These theoretical tools can br...

Read more...
πŸ‘6❀1πŸ‘1
Continuing our journey into programming intricacies, let's shift our focus to an interesting aspect - comparing asynchronous and synchronous 'all close.'. A sample program has been put together for a practical understanding of this concept. Users are encouraged to manipulate the program design, fit according to their unique testing purposes.

Take note that this program is adaptable for incorporating additional elements or conditions, offering you significant freedom for experimenting and learning. Remember, the key element of strengthening programming prowess lies in the relentless pursuit to decode, understand, modify, and apply knowledge in a variety of scenarios. Hence, do not refrain from taking risks and engaging in experimental coding manoeuvres.

Stay tuned as we'll be introducing more technical tidbits in the future designed to cement an understanding of the dynamic field of...

Read more...
πŸ‘10πŸ‘1
Assessing the impact of dividend announcements on stock market returns and gauging the validity of the Efficient Market Hypothesis in the Indian Stock Market forms the crux of this lately conducted study. Thereby verifying the information efficiency in the market the task repaints a vivid picture on how stock prices adjust according to investors earning market return and leaving no room for abnormal returns during dividend announcements. Adopting companies under Nifty 50 for the empirical analysis, these organizations are categorized into three groups depending on their dividend announcements in the year 2022 - positive, negative or no change.

Following the calculation of Abnormal Returns(AR) for event window for each company, these ARs are calculated via tricky methods to yield Average Abnormal Returns (AAR). Moreover, Cumulative Average Abnormal Returns (CAAR) assists in finding an...

Read more...
πŸ‘6πŸ‘Œ2πŸ”₯1
In the world of automated trading development, there's an emerging trend of integrating artificial intelligence techniques with Expert Advisors in MQL5. AI techniques such as neural networks and perceptron classes from Alglib prove to be game-changers in technical trading, owing to their capability to handle voluminous data and identifying complex non-linear patterns.

Alglib's perceptron classes, part of a vast library implementing neural networks, offer a robust system for adjusting weights, which is a vital part of any neural network. They provide network architectures that normalize input data to relatable values, provide unique activation functions, and carry out iterative processes involving multiplication and addition.

These classes apply two primary training approaches–the Levenberg-Marquadt and the LBFGS (Limited memory Broyden-Fletcher-Goldfarb-Shanno) algorithms. Both brin...

Read more...
πŸ‘4❀2πŸ”₯1
In the latest work, "The Reverse EMA Indicator", John Ehlers invites readers to scrutinize an avant-garde causal forward and backward EMA indicator crafted for real-time trading practices. The presented solution is engineered with a dual smoothing feature at the higher end of the spectrum designed to attenuate aliased components. Simultaneously, it's devised to soften the effects of spectral dilation at the spectrum's lower end.

Ehlers characterizes the novel indicator as possessing remarkable adaptability. It can showcase information about both trend and cycle by implementing a variable alpha parameter, accomplishing this with minimal lag. This tool promises to add value for those who aim to enhance their trading efficacy and efficiency. This lucid, innovative approach is expected to attract considerable attention within the trading and financial analytics realm.

Stand by for more...

Read more...
πŸ‘8❀4
In the realm of Design Patterns in software development, understanding Behavioral Patterns is vital in creating reliable, maintainable, and reusable software. These types of design patterns illuminate the interaction between objects and the distribution of responsibilities. Key patterns include Chain of Responsibility, Command, Interpreter, and Iterator, among others.

The Chain of Responsibility pattern emphasizes the ability to decouple the sender and receiver by allowing more than one object to handle a request. Implementing this pattern aids in avoiding efficiency issues caused by long chains and facilitates robust request handling with no specified receiver.

The Command pattern focuses on encapsulating requests as objects. This pattern warrants for adjustable parameters for clients and accommodates undoable operations, suitable for developing larger structures from simple, basi...

Read more...
πŸ‘2πŸ‘1
Shifting gears from the previously discussed NHITS model, let's take a look at the NBEATS model - an entirely different take on closing price predictions. This article aims to help illustrate multiple covariate use and the model's interpretability, underlining the importance of both concepts.

The point of focus should be on the model's interpretability. While also touching on why covariates are integral and how their use can widen the scope of possibilities. As a developer, the diverse use of models to substantiate hypotheses is key. Moreover, both NHITS and NBEATS fall under the banner of high-quality interpretable models, opening the door for verification using other models outlined in this article.

However, it's crucial to consider real trading applications seriously. It may necessitate additional parameter adjustments and optimization methods to yield reliable, steady results. I...

Read more...
πŸ‘6πŸ”₯1
In the realm of coding, simplification while retaining efficacy is always a commendable venture. Comprehension of the basic structure of code can significantly expedite the progression of both newcomers in coding and seasoned programmers. An invaluable resource can be found in the official documentation, generously providing examples for all codes and functions.

Striving to present a simpler rendition of existing code, undemanding to reuse, and enhance the steep curve in coding learning, a new variant has been presented. The objective is twofold; assisting self-improvement in coding skills and sharing these with others in the community.

Opinions and preferences between the official documentation and the newly presented version are encouraged and welcomed for the benefit of the entire community. Moreover, feedback through star ratings will aid in the SEO and make the resource more re...

Read more...
πŸ‘4❀3πŸ‘1πŸ†1