MQL5 Algo Trading
393K 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
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
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