MQL5 Algo Trading
389K subscribers
2.57K photos
2.57K 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
In the realm of automated trading, two distinct Expert Advisors (EAs) have been developed to leverage price movements across a moving average for entry signals. However, their operational nuances differentiate their strategic approaches.

The first EA adheres to a conventional trading pattern without employing a recovery strategy. Its configuration allows for fixed input parameters including Moving Average Period (MAPeriod), lot size, take profit points (TPPoints), and stop loss points (SLPoints).

Contrarily, the second EA incorporates a Martingale strategy to increase the investment after losses. This model adjusts not only the lot size but also the profit taking and loss stopping parameters based on predefined multipliers. The rising stakes are capped at a maximum lot size to mitigate potential risks.

Both systems integrate key functionalities from the 'ImportantFunctions.mqh' fi...

Read more...
πŸ‘16πŸ‘1
Predicting future price movements is crucial for devising effective trading strategies. Current prediction models often do not adequately consider interactions among multiple agents, which can lead to the loss of critical data and suboptimal forecasts. The Multi-future Transformer (MFT) method, highlighted in the research paper "Multi-future Transformer: Learning diverse interaction modes for behavior prediction in autonomous driving," addresses this by decomposing multimodal future distributions into distinct unimodal components. This approach simplifies the simulation of varied interaction models between agents within a scene.

MFT operates by leveraging a neural network to generate forecasts in a deterministic fashion, enhancing reliability and repeatability. The method's architecture includes encoders for capturing dynamic and contextual states, a parallel interaction module to ex...

Read more...
❀11πŸ‘10πŸ‘2🀯1πŸ‘€1
Forex Trade Manager MT4 is designed to enhance the management of open orders on the MetaTrader 4 platform. This tool assists traders by automatically setting Stop Loss and Take Profit parameters once a new order is opened. It features dynamic mechanisms such as Trailing Stop, which adjusts the Stop Loss as the price moves to safeguard profits, and a Break Even function that moves the Stop Loss to the open price under certain conditions.

The manager is capable of controlling orders for symbols actively traded on or can manage all open orders across different symbols. Notably, it offers a Stealth Mode, which allows for the hiding of Stop Loss and Take Profit settings from brokers, thereby executing these orders programmatically based on the set parameters.

Forex Trade Manager MT4 provides a comprehensive set of parameters to customize trade management to fit various trading strategies...

Read more...
πŸ‘14❀8πŸ‘3πŸŽ‰3πŸ‘€2
Become a developer and earn on the Freelance!

In the Freelance section, community members are actively searching for experienced professionals to create custom Expert Advisors or indicators, test trading apps or perform other specialized tasks. Read more about how it works.

Turn your skills and expertise into profit. Register as a seller and start responding to orders – each task comes with a preliminary description and proposed budget, allowing you to quickly determine if the order suits your interests.

All payments between developers and customers are secure, negotiations are anonymous, and arbitration is available to resolve disputes. Register in just a few minutes by verifying your identity and taking a selfie.

Go to registration
❀51πŸ‘39πŸ”₯6🀯6⚑5πŸ€”2πŸ‘Œ1
Angle-based operations have long been integral to trading strategies, particularly due to the simplicity and clarity of constructing angles. Gann tools are a prime example of utilizing angles for market analysis. This approach, while traditional, can still yield refreshing insights when revisited with modernized methodologies.

In practical terms, constructing an angle-based indicator involves setting up axesβ€”typically price versus another currency priceβ€”to compare pairs and infer overbought or oversold states. Addressing discrepancies in axis values, such as different units like meters against kilograms, is crucial as it can skew the interpretation of angles. Standardizing these values to a common unit simplifies the calculation and enhances comparability.

Additionally, incorporating mathematical concepts such as wrapped normal distribution allows for handling infinite ranges in ang...

Read more...
πŸ‘13❀3πŸ‘3
In the realm of graphical user interfaces within the scope of library development, the subsequent improvements hinge on refining elements such as scrollbars for better functionality. The conversion from a horizontal to a vertical scrollbar presents a straightforward task that builds upon the same foundational principles, minus orientation adjustments. These developments are crucial, as these components will play a significant role in future Windows Form-style controls.

However, the process revealed an error manifesting as "blinking" due to premature graphical updates; resolved merely by elimination of prior object rendering before cropping. This fix marks a decisive moment enabling continued enhancements to graphical libraries.

Further library enrichments introduce functions that optimize performance by sidestepping slower standard methods when discerning event-related timeframes wi...

Read more...
πŸ‘13❀5πŸ‘3✍1
MQL5 Freelance is a pivotal platform for developers specializing in trading applications, offering a secure and effective environment since its launch in June 2010. It supports a wide array of programming languages including MQL5/MQL4, C++, and Python, catering to traders seeking custom solutions like trading robots and indicators.

With over 100,000 completed projects valued at $7 million, and a contributing community of 54,000 developers, MQL5 Freelance presents a fruitful opportunity for developers to earn significantly by fulfilling the needs of 25,000 satisfied clients. Traders from the millions using MetaTrader platforms can directly reach out for services, presenting a steady stream of potential projects.

The service is designed to streamline project management from order selection to payment, safeguarding developer interests by documenting every project phase within the syst...

Read more...
πŸ‘16❀6πŸ”₯4πŸ‘Œ1πŸ‘¨β€πŸ’»1
Foreballs:

Forex Trade Manager Grid MT4 is an EA designed for managing Forex trades using a grid management strategy on the MT4 platform. This tool automates the addition of positions to existing trades on the currently active pair. Users need to set up an initial order with Take Profit, after which the EA handles the subsequent additions and management up to 15 trades.

The system operates by adding positions at specified pip distances, managing the first three trades with individual take profits. From the fourth trade onwards, the EA aims to close the entire grid at a common break-even level. If the predefined profit (in pips) is achieved, the trade cycle can be renewed, or closed if losses exceed the set risk balance percentage.

The EA parameters include several customization options such as the distance between trades, individual and total take profits for multiple positions, m...

Read more...
πŸ‘14❀7πŸ‘€4πŸ‘2πŸŽ‰1
In the realm of automated trading, the evolution of dynamic templates offers a significant leap in functionality and user-friendliness. The concept of dynamic templates initially arose to handle different settings for each "instrument - period" pair, eliminating the need to launch multiple instances of an expert advisor (EA) individually across various charts. This not only simplifies system management but also mitigates potential user errors and conflicts commonly induced by manual setups.

A dynamic template operates by utilizing a directory structure of MetaTrader 4 and MetaTrader 5 to manage configuration settings through text files. This method allows for the dynamic adjustment of EAs without manual intervention, including automatic synchronization with web APIs via port 443. Such setups are crucial for maintaining consistency across terminals and potentially across different mac...

Read more...
❀11πŸ‘8✍2πŸ‘2πŸ‘Œ2πŸ”₯1😁1
MetaTrader 5 presents an array of notification options that are essential for trading, encompassing terminal, email, and push notifications. These features can be further enhanced by integrating them with popular social platforms such as Telegram and WhatsApp, a move that can significantly uplift the functionality of the MetaTrader system by facilitating efficient signal sharing.

The terminal notifications within MetaTrader 5 allow alerts to be set based on specific trading conditions directly through the tools tab. Users can configure these alerts to trigger actions such as playing sounds or sending notifications, ensuring that traders are immediately informed of significant trading events.

For connectivity beyond the trading desk, MetaTrader 5's push notifications can be set up to send alerts to a mobile device once MetaQuotes ID is linked, providing real-time updates necessary fo...

Read more...
πŸ‘9πŸ‘6❀5πŸ”₯3✍2
Time series forecasting is pivotal in understanding future data predictions based on historical sequences and often employs various machine learning models to enhance accuracy. Classical models like ARIMA and modern ML approaches like LightGBM show distinct methodologies in handling data trends and dependencies. Unlike traditional ML models that view data points as independent, time series models cater specifically to the sequence's temporal order, offering a more nuanced data analysis.

Feature engineering plays a crucial role in refining the model's responsiveness to time series predictions by incorporating elements like lagged features, rolling statistics, and date-time enhancements. This adjustment allows models to utilize past data trends effectively. For instance, extending classical ML models to accommodate time-dependent variables helps them perform comparably to bespoke time ...

Read more...
πŸ‘10πŸ‘5❀3😁1
In the latest article, we focus on the application of convolutional neural networks (CNNs) within the trading sector utilizing the MQL5 platform. CNNs are typically leveraged for image and video processing but are adapted here to analyze financial data through a custom MQL5 wizard signal class. This approach employs CNNs to categorize image pixels, further enhanced by utilizing layers that process through padding, convolution, activation, pooling, and backpropagation.

The initial step in a CNN is optionally padding the input data to maintain dimensionality post-convolution. During the convolution phase, kernel matrices multiply with the input data to produce feature maps, followed by the application of activation functions like ReLU to introduce non-linearity and manage vanishing gradients effectively. Subsequently, pooling techniques reduce dimensionality and computational load, cri...

Read more...
πŸ‘12❀8πŸ”₯3πŸ€”3🀝3πŸ†1
In constructing robust trading systems, technical analysts often employ a range of tools and techniques to enhance accuracy and reliability. Utilizing an H1 time period is popular among traders seeking to capitalize on strong trends. Enhancements such as color-coded histograms in multi-time-frame (MTF) settings provide clear visual cues, helping traders assess market conditions swiftly. For instance, green indicates an uptrend, orange signals undefined market states, and red denotes downtrends.

Furthermore, the implementation of the Bollinger Inverse technique, where the upper Bollinger Band is adjusted with a lower-mode setting, and the lower Bollinger Band with an upper-mode setting, adds a layer of precision. This adjustment is particularly effective when coupled with moving averages (MA), where a crossover of the upper Bollinger Band by a fast MA suggests a potential uptrend, whe...

Read more...
πŸ‘26❀10πŸ‘3πŸ‘€1
We are releasing MetaTrader 5 build 4410, introducing important improvements and fixes:

β€’ Web Terminal update fixes browser compatibility checks and demo account opening procedures, ensuring smooth connection and stable operation.
β€’ In the previous version, the terminal could crash after starting the testing process. With this error now being corrected, you can seamlessly use our cloud-powered tester to optimize your strategies without being disturbed.
β€’ Another fix concerns service application development in MQL5. Its MQL_PROGRAM_NAME property has been fixed and now returns the correct name of the current running program.

Tablet version of MetaTrader 5 for Android app has also been completely redesigned. It got a fresh look that is already warmly welcomed by the users of the iOS and web version of the platform. Switching between the main sections of the app is now done on the lower panel, while chart commands are now located on the left.

Discuss the update...
πŸ”₯84πŸ‘78❀45πŸ‘Œ11πŸ‘8πŸŽ‰7✍6
Discover the fascinating alignment between nature's ingenuity and technological innovation with the Bat Algorithm (BA), a heuristic approach based on the echolocation mechanism of bats. Developed in 2010, this algorithm has proven its worth in global optimization challenges across various sectors.

The BA transforms the essence of how bats locate their prey in the dark into an algorithmic solution to find optimal values in complex problem spaces. Each 'bat' in the algorithm represents a potential solution, navigating through the solution space by dynamically adjusting frequency, speed, and loudness based on proximity to the desired outcome.

Key parameters such as minimum and maximum frequency, loudness, and pulse rates are meticulously handled to fine-tune the search process, ensuring efficiency and accuracy. The algorithm's adaptability to multiple types of optimization problems sho...

Read more...
❀22πŸ‘21😐3πŸ‘2πŸ‘Œ2⚑1πŸŽ‰1
The xoshiro256** Random Number Generator, developed by Sebastiano Vigna and David Blackman, is a high-performance, 64-bit algorithm designed primarily for non-cryptographic needs. This generator excels in speed and has a robust state size of 256 bits, making it ideal for any parallel processing application. It is renowned for passing all known statistical tests without compromising performance.

Notably, while the xoshiro256** does not cater to cryptographic applications, its quick processing capabilities and robust statistical profile make it highly suitable for Monte Carlo simulations, where speed and accuracy are paramount. This algorithm is integrated into the .NET framework by Microsoft and is also employed across various major JavaScript engines including those in Chrome, Node.js, Firefox, Safari, and Microsoft Edge.

For developers seeking an efficient and reliable solution for...

Read more...
πŸ‘72❀54⚑7πŸ‘6πŸŽ‰4πŸ‘Œ3
In a continuation of our discussions on creating automated trading solutions using MetaTrader 5, this post focuses on crafting an order management system leveraging the unique capabilities of MQL5. While MetaTrader 5's Standard Library is quite robust, there is significant value in understanding the inner workings of its TRADE library for those who are serious about custom functionality.

The goal here is not to replace the existing library but to enhance understanding by building a simplified version that aligns closely with the core needs of an Expert Advisor (EA). This endeavor begins with constructing the C_Orders class from scratch, rather than using the pre-defined structures, hence promoting deeper insights into class utilization and object-oriented programming within the MQL5 environment.

For effective order management, the proposed system will rely on basic commands sent dir...

Read more...
❀27πŸ‘14πŸŽ‰3😁2
In the realm of algorithmic trading, the need for precise and automated tools is ever-present. A request from a client has led to the development of a new Expert Advisor that leverages Fibonacci lines to automatically identify the Highest High and Lowest Low between any two bars from the start bar to the current bar in trading platforms. This custom tool was designed to address the lack of functionality in existing Fibonacci indicators and to enhance trading strategies. Its utility lies in its ability to simplify market analysis and improve decision-making by providing clear, automated Fibonacci measurements. This development represents a significant advancement in trading technology, offering traders a more robust and efficient method to gauge market movements and potential reversals.

Read more...
πŸ‘41❀32πŸ”₯7πŸ‘7πŸ†5🀩2✍1
Programming an automated Expert Advisor (EA) is a complex yet achievable task if approached correctly. It involves understanding the necessary components and the typical pitfalls associated with developing these automated systems. The process begins with creating a robust order system that functions effectively without constant developer intervention. This system needs to be rigorously tested using demo accounts to ensure stability and reliability.

Developers are advised to focus on simplicity, particularly when designing the trigger system of an EA. Overcomplicating the process can lead to inefficiencies and potential failures, contrary to popular beliefs surrounding the glamour of quantitative or algorithmic trading. Misconceptions often lead to undue risks, emphasizing the need for thorough background knowledge and research, especially about major market incidents that have been i...

Read more...
πŸ‘31❀6πŸ‘5πŸ†3πŸ‘€2πŸ€”1πŸ‘Œ1