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
Implementing a price tape panel in MetaTrader 5 using MQL5 provides an efficient tool for real-time asset tracking. This project is not only about visual enhancements but also about practical functionality for traders. The development involves using either an Expert Advisor or an indicator to incorporate the panel due to the dynamic nature of trading environments where script re-runs are impractical due to frequent time frame changes.

The process begins with basic planning; opting for an indicator structure to avoid complexities associated with EAs that are primarily used for order control. A fundamental design decision involves determining whether to use a static or dynamic asset list, impacting the flexibility and utility of the panel.

Next, we address implementation specifics, starting with the creation of a minimal but expandable code framework. This involves developing a base o...

Read more...
25👍141
The recent enhancement in technical trading methodologies includes the independent post-smoothing of the upper and lower Bollinger Bands. This technique is applied after completing the standard deviation calculations, allowing each band to exhibit greater smoothness. Notably, the adjustments made to the upper band are independent of the changes to the lower band, and vice versa. This improvement in the individual treatment of the bands ensures more refined data representation and potentially enhances trading strategies by providing clearer trend signals.

Read more...
👍236👏41😁1🤯1🎉1
Understanding the nuanced control in Bollinger Bands can greatly enhance trading strategies. A recent development involves the ability to adjust the smoothing on the Bollinger Bands' outer boundaries independently. This means the smoothing period of the upper band can be modified without affecting the lower band, and vice versa, enabling more precise adjustments according to volatility.

The key innovation here, termed "Additive outer band smoothing," when activated, supplements the primary period of the Bollinger Bands with an additional moving average period only to the specified band. This can be enabled or disabled based on trader preference, providing a way to fine-tune the indicator's responsiveness to market conditions.

Such flexibility offers strategic advantages in market analysis, allowing traders to tailor their use of Bollinger Bands to better suit individual trading scen...

Read more...
👍2011👏4👀1
In the context of maintaining a clean and efficient codebase, it's essential for development teams to address the presence of obsolete or deprecated code. Keeping outdated code in a project can lead to confusion, maintenance issues, and potential errors. It's advisable to either properly comment out and document the non-functional aspects or remove them entirely. Ensuring that the code repository only contains relevant and functional code simplifies understanding for new team members and enhances overall code quality. Regular audits and reviews of the codebase are good practices to adopt to prevent such issues.

Read more...
👍3019🔥3👏2
Exploring the efficacies of nature-inspired algorithms, the Firefly Algorithm, launched by X-Sh. Yang at the University of Cambridge in 2007, demonstrates notable capabilities in the realm of optimization. As a subset of swarm intelligence methods, this algorithm leverages the luminous behavior of fireflies to drive the search towards optimal solutions in both continuous and discrete spaces.

The core mechanism of the Firefly Algorithm hinges on the attractiveness between fireflies, which diminishes with increasing distance due to light absorption. Unattached fireflies exhibit random motion, adding a stochastic element to the search process that prevents premature convergence on local optima. The algorithm bases movement on three primary rules reflecting these interactions, guiding the computational "fireflies" towards brighter and thus more optimal solutions.

This information unde...

Read more...
👍1892👏2
The Linear Regression Value indicator is now enhanced to integrate with other indicators, offering a versatile tool for technical analysis in trading. This updated version allows users to apply linear regression techniques across various datasets, providing a broader view of market trends and potential price movements. This feature aims to support traders in making informed decisions by analyzing the convergence and divergence of trends through different indicators. It is particularly useful for traders looking to refine their strategy by incorporating comprehensive data analysis tools.

Read more...
49👍29👀73👏2👌1
In recent discussions on predictive modeling techniques in finance, a shift towards utilizing classic reinforcement learning methods has been highlighted, eliminating intermediate stages such as prediction of future price movements. This approach is based on direct analysis of historical data. An analogous strategy is seen in the field of computer vision, particularly with the introduction of the Decoder-Free Fully Transformer-based (DFFT) method, as detailed in the paper "Efficient Decoder-free Object Detection with Transformers."

The DFFT method leverages a transformer backbone that omits the decoder and relies solely on encoders to enhance efficiency during both training and operational phases. This technique simplifies object detection to a single-level dense prediction task, concentrating efforts on maintaining accuracy of singular-level feature map predictions while learning lo...

Read more...
👍269👏2🎉2🤔1
In updating and maintaining a codebase, it's essential to remove or hide obsolete code to ensure clarity and efficiency. When a piece of code becomes redundant, locating all instances and references within the codebase is crucial before deprecation to prevent breaks in functionality. This process includes updating documentation to reflect these changes, aiding in maintaining a clean and efficient project structure. It's also valuable to perform tests post-removal to validate that the system operates as expected without the deprecated code.

Read more...
👍572811👏76🏆4👌1
In the latest development of the ScrollBar control for WinForms, significant enhancements have been applied to how the control interacts with mouse events, particularly focused on the development of a new class for the capture area. Extending from a standard button object, this new class is intended to precisely handle mouse interactions specific to scrollbar functionality.

The architecture now includes distinct handling and resizing capabilities for scrollbar controls. This includes the definition of a default width for scroll areas alongside refined object resizing logic that takes into account mouse cursor positioning relative to the graphical element.

Additionally, revisions have been made to address visual elements and operational logic, streamlining the way scrollbars integrate with the user interface. By enhancing mouse state definitions and interaction responses, scrollbar ...

Read more...
👍2410👏3🤯21
Discover an efficient tool for traders seeking real-time alerts on market conditions. This straightforward indicator scans symbols in the MarketWatch window and utilizes the Relative Strength Index (RSI) to determine if the price of an asset is overbought or oversold. Users have the flexibility to receive updates through a pop-up alert or directly to their smartphone, enhancing timely decision-making in trading activities. This solution caters to both novice and experienced traders by simplifying the process of monitoring market dynamics effectively.

Read more...
👍5522🔥64👏42
In the field of foreign exchange trading, optimizing trading systems with advanced strategies and automation tools has become crucial. Smart Money Concept (SMC) integrated with the Relative Strength Index (RSI) is an emerging approach that enhances trading accuracy by utilizing market structure and momentum analysis. This method facilitates precise entry and exit points, potentially boosting trading performance.

The utility of an Expert Advisor in this context lies in its ability to automate these processes. It systematically detects swing lows and highs, which are integral to SMC, and applies the RSI to gauge market conditions. Specifically, if the market price surpasses a previous high, it signifies an upward break in structure; conversely, a drop below a previous low suggests a downward break. The Expert Advisor then executes buy or sell orders based on these indicators combined ...

Read more...
👍2713👏32
In this technical guide, developers will learn to create a Daily Drawdown Limiter forex trading Expert Advisor (EA) utilizing MetaQuotes Language 5 (MQL5) for the MetaTrader 5 platform. This EA is engineered to set a daily loss limit to protect traders' capital by monitoring key trading metrics such as bar counts, balance, and time of day.

The core of this EA lies in its ability to dynamically assess trading activities and enforce restrictions automatically, preventing substantial financial loss during volatile market periods. By integrating data retrieval functions directly from MetaTrader, the EA constantly syncs with real-time trading updates ensuring precision in its operation.

The guide also delves into code implementation for trade execution, where the EA controls both manual and automated trade interactions. With detailed coding snippets, the implementation process is elucida...

Read more...
17👍14👏5
Recent advancements in video object detection have highlighted the importance of dynamic feature extraction to improve model performance, especially in environments where object features change due to motion. The "Feature Aggregated Queries for Transformer-based Video Object Detectors" paper introduces an innovative method for enhancing object detection in video by focusing on the dynamic nature of these environments.

The proposed method leverages temporal information by generating and aggregating queries based on the features of adjacent video frames. This approach not only retains the benefits of static image detection methods but also adapieces to the unique challenges presented by video data. Extensive experimental results demonstrate that this method increases the accuracy and reliability of detecting objects in video streams, making it a viable solution for real-world applicat...

Read more...
16👍76👌4🔥32😁1
Introducing a revised Typical Unassuming Volumes indicator which now includes an option to divide volume by spread. This update simplifies the indicator by removing the previously incorporated color-changing feature, which became redundant after the modification. Further enhancing its utility, we've added the functionality to toggle the use of 'Spread' according to user preferences. Primarily designed for those involved in EA building and seeking new avenues for optimization, this tool could add a unique dimension to trading strategy development. Its efficacy is yet to be fully determined, opening a field for experimentation and analysis by developers and strategists.

Read more...
26👍20🤝8
In the evolving world of algorithmic trading, integrating external data through APIs is revolutionizing how traders make decisions and develop strategies. Leveraging APIs, traders gain access to a diverse array of data sources including real-time market information, economic indicators beyond traditional calendars, and advanced analytics like sentiment analysis through natural language processing.

For developers and traders using platforms like MetaTrader, APIs provide an avenue to enhance the functionality of trading systems. Developers can access comprehensive market data through APIs to use advanced technical indicators and sophisticated charting tools, improving the accuracy of trading signals. This integration not only extends the capabilities of trading platforms but also adds layers of valuable market intelligence, supporting more informed decision-making and dynamic strategy ...

Read more...
👍23102👏1
In this detailed exploration of the "angle of attack" concept adapted for financial trading, the analysis begins with the traditional approach of identifying the trajectory of a moving average to depict the strength and direction of a market trend. This method calculates the slope 'm' from two selected points and, if needed, converts the value into degrees using the arc-tangent function.

However, a significant issue arises due to the volatility of price scales and the potential for misleading results across different trading intervals. For instance, different forex pairs exhibit vast discrepancies in angle measurements, like a steep 45 degrees for a yen pair versus a near-flat 0.57 degrees for GBPUSD, despite similar market movements.

To address these inconsistencies, a novel method is proposed: normalizing the time and price scales to uniform units, thereby harmonizing the dimensio...

Read more...
👍1242👏21
In a recent delve into AI advancements for time series predictions, PatchTSt emerged as a notable algorithm on Huggingface.co. This implementation, excelling in rapid training and ease of use with MQL, is tailored for time series analysis using transformers. Central to PatchTST's functionality is its use of 'patches' which enhances pattern recognition in data like open, high, low, and close prices.

A key feature includes minimal data-preprocessing requirements, facilitated by a technique named 'RevIn' or reverse instance normalization, contributing significantly to its efficiency in handling distribution shifts within time series forecasting. This makes PatchTST highly suitable for algorithmic trading environments where market conditions are frequently volatile.

For technical specifics, PatchTST employs a transformer architecture that segments data into patches, incorporating positi...

Read more...
👍173🔥3👏3
Principal Component Analysis (PCA) is often associated with dimensionality reduction but its utility in discerning hidden relationships in data is profound. The key elements, eigenvalues and eigenvectors, help identify underlying relationships that contribute to understanding complex data patterns. Applying these concepts, the article discusses factor analysis, which assists in identifying latent variables, thereby revealing redundancies and interrelations among variables which otherwise appear independent.

Factor analysis differs from PCA; it helps identify underlying factors influencing observed variables, unlike PCA which transforms a large set of variables into a lesser number of uncorrelated variables capturing maximum variance. This is achieved without necessarily reducing dimensionality but by identifying influences on observed variables through eigenstructure analysis.

Furth...

Read more...
👍109👏2
A new tool is available for traders who need immediate visibility of their potential financial outcomes in their deposit currency. This indicator, originally developed for the MQL5 community, assists by showing the value of the defined stop loss and the take profit settings directly in terms of deposit currency. While it offers quick approximations, users should consider that it provides estimates that do not include brokerage commissions. This makes it an essential, yet basic, tool for traders in strategizing their positions without the need for complex manual calculations.

Read more...
👍2812👏3💯32🏆2👀2
The Fibonacci Retracement Indicator is an advanced technical tool that incorporates the principles of the ZigZag indicator to enhance its utility in identifying crucial support and resistance levels in financial markets. This tool, originally developed for Metatrader 4, automates the integration of ZigZag extremes with Fibonacci gridlines, thereby facilitating more precise trading decisions based on key retracements.

For developers interested in integrating similar functionalities or enhancing their financial analysis tools, the underlying logic can be adapted from existing code found at a prominent financial technology site. This offers an opportunity for technical refinement and customization in various trading platforms.

Read more...
👍30233👏1