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
The Multi-currency Expert Advisor has been developed as an advanced automated trading tool designed for 30 pairs and using the ZigZag indicator, which is enhanced with the Awesome Oscillator. It harnesses the power of MQL5 to provide a reliable, efficient, and effective trading solution.

It is designed to trade on a wide array of Forex and Metal pairs, with the ability to operate as a single-currency or multi-currency EA, depending on the trader's preference.

The ZigZag indicator is used to measure price movements without unnecessary noise. It holds a robust position in the world of technical indicators and is valuable in helping to identify market trends and price fluctuations.

The Expert Advisor's trading management system allows for different types of Stop Loss and Take Profit orders, and there's also an option to enable or disable trailing stops. It can perform trailing stops...

Read more...
πŸ‘5❀3πŸ‘2
The Test-Driven Development (TDD) methodology offers numerous benefits, including well-defined units, thorough test coverage, and a clear understanding of the domain. However, the focus on solving one challenge at a time can lead to accumulating technical debt. Despite this drawback, refactoring is integral to TDD practice, allowing developers to manage and clear technical debt.

In addressing the complexities involved in developing MQTT protocol, attention is drawn to the importance of the persistence layer, which could range from a simple file in the local filesystem to a complex database in the cloud. However, before delving into session state management and persistence layer, it's crucial to thoroughly test the writing and reading of packets. Thus, extensive unit tests are conducted, along with small functional tests against a real broker running locally.

In building PUBLISH pac...

Read more...
πŸ‘6πŸ‘2❀1
The Pretrained Decision Transformer (PDT) method, an offshoot of the Decision Transformer tool, presents an innovative approach to training using unlabeled data. PDT relies on Transformer attention strategies and has been shown to deliver extended utility in various practical applications.

The PDT technique eschews the use of labeled training data during pre-training, zeroing in on learning and adaptation of general behavioural patterns. This task-independent, generalised learning can be implemented with an array of different tasks later on.

PDT's pre-training approach focuses on training the model offline through previously collected trajectories, devoid of reward labels. Upon successful completion of pre-training, the model is fine-tuned for the target task via online interaction.

This RL pretraining method is of particular interest for its ability to train on data without rew...

Read more...
πŸ‘5πŸ‘4✍2
Understanding the exact requirements for adjusting stop losses in a high-frequency trading environment is a challenging task. The MoveStoploss tool streamlines this process by providing automatic monitoring of all manual trades. The tool, adaptable to various market trends, offers customization in terms of the trailing distance that can be preset or determined by expert advisors.

MoveStoploss is not restricted by the type of financial instrument or a specific timeframe. Its versatility makes it an invaluable asset for traders dealing in either currencies, commodities, cryptocurrencies, or stocks. By incorporating the auto trail feature, it removes the burden of manual trailing while generating accurate stop-loss points.

Furthermore, the tool allows users to switch off the auto trail feature and manually input a preferred stop-loss distance, offering a balance between automation an...

Read more...
❀11πŸ‘9πŸ‘3
Discover the world of Behavior Cloning (BC) methods with the Decision Transformer and its various modifications. BC techniques focus on imitating expert trajectories according to environmental states and desired outcomes. However, it should be noted that the expert assessments of similar environmental states could significantly differ, sometimes even going in completely opposite directions.

A reminder, past works did not involve experts to create our training set. Instead, there was a selection of best trajectories through various methods of sampling the Agent's actions. Admittedly, these trajectories were not always optimal. Due to the process of sampling in a continuous space of actions and episodes, it is impossible to capture all possible options. The chosen trajectories often satisfy only a portion of our requirements and often resemble outliers, which the model might simply dis...

Read more...
πŸ‘6❀2
The comprehension of machine learning's capabilities has evolved sequentially over years. Emphasizing on time-series classification, an understanding that machine learning algorithms can predict and generalize well but struggle with discerning cause-and-effect connections has emerged. Machine learning perceives all training data as just that, training data, potentially creating blunders for novices attempting to use it for profitable trading with new data.

Our goal is to develop an algorithm that significantly reduces overfitting by autonomously locating patterns in data. This algorithm should not only generalize training examples but efficiently ascertain the existence of cause-and-effect relationships within them.

Considerations from artificial intelligence efforts in Forex have led to the idea of self-controlled machine learning models, which check their predictions for errors re...

Read more...
πŸ‘8❀5πŸ‘1
In light of developments surrounding chart reading in programming, technicalities around searches for Wick or Body based High/Low in visible bars have resurfaced. To elucidate, Wick based High, in essence, is a particular type of configuration within this scenario, acting as an example of high/high readings. In juxtaposition, the Body-based High exemplifies a different situation where the body of the chart, instead of the wick, defines the pinnacle.

Each method presents its unique interpretation of the data, running along the visible bar range. Analysts and developers should consider both methods’ distinct features for a more comprehensive understanding of chart readings. Remember, this encompasses but isn't limited to, the chart's highest and lowest points. A deeper grasp of Wick and Body-based High/Low readings can significantly enhance the interpretation of chart data.

Caution ...

Read more...
πŸ‘11❀1πŸ‘1πŸ†1
Learn how to fine-tune your data analytics skills with a sophisticated indicator tool that encompasses 14 distinct types of moving averages calculations. This tool, leveraging its operational foundation on Pine Script libraries, closely ties each computation to the price close data.

This powerful indicator includes a wide range of calculation types: namely SMA, EMA, WMA, VWMA, RMA, DEMA, TEMA, ZLEMA, HMA, ALMA, LSMA, SWMA, SMMA, and DONCHIAN. Enhance the accuracy and precision of data interpretation by utilising this comprehensive tool, specifically designed for ease of use and optimal efficiency.

Stay at the vanguard of data analysis by implementing this advanced indicator. Dive beyond basic calculation approaches and discover the potential of moving averages to provide more intensive and well-rounded insights.

Read more...
πŸ‘6πŸ”₯6
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