The newly designed .mqh files facilitate the export and import of orders and trades between Expert Advisors (EAs), providing functionality for copying trades either within the same trading terminal or across terminals on the same computer. This system supports trading across different symbols, such as copying a spot market instrument's trades to corresponding futures.
For exporting, the `GRat_OrderExport.mqh` file must be included in your EA. Configuration options include setting Common to true for exporting to another terminal on the same machine, or false for the same terminal. The KeepSeconds parameter dictates the availability duration for exported trades, with a setting of 0 allowing indefinite availability. Implementation requires adding `ExportOrder()` where `OrderSend()` or `CTrade` methods execute orders.
For importing, integrate the `GRat_OrderImport.mqh` file into your EA...
Read more...
For exporting, the `GRat_OrderExport.mqh` file must be included in your EA. Configuration options include setting Common to true for exporting to another terminal on the same machine, or false for the same terminal. The KeepSeconds parameter dictates the availability duration for exported trades, with a setting of 0 allowing indefinite availability. Implementation requires adding `ExportOrder()` where `OrderSend()` or `CTrade` methods execute orders.
For importing, integrate the `GRat_OrderImport.mqh` file into your EA...
Read more...
π56β€34β‘9π8π€£6
Transfer entropy is a powerful statistical measure used to determine the amount of information exchanged between time series and to analyze the direction of causal relationships. It is particularly valuable in discerning whether one variable can predict another. This approach leverages the concept of Granger causality, which is based on comparing prediction errors and enhancing model fit by including past values of a potentially causative variable in the regression model.
Significance tests such as p-values and z-scores are employed to ensure the robustness of transfer entropy calculations. These tests involve comparing results from original data with those from shuffled datasets to check if the observed causality is statistically significant or merely coincidental.
Programming-wise, an MQL5 implementation to measure transfer entropy has been described, titled `transfer_entropy.mqh`...
Read more...
Significance tests such as p-values and z-scores are employed to ensure the robustness of transfer entropy calculations. These tests involve comparing results from original data with those from shuffled datasets to check if the observed causality is statistically significant or merely coincidental.
Programming-wise, an MQL5 implementation to measure transfer entropy has been described, titled `transfer_entropy.mqh`...
Read more...
π18β€10π5π2β‘1
This article discusses a trading bot that uses real-time sentiment analysis from social media to guide its trading decisions. Integrating MetaTrader 5 (MT5) with a Python-based sentiment analysis tool, the bot showcases a hybrid of quantitative finance and natural language processing. With client-server architecture, it utilizes socket communication to connect MT5's trading functionalities and Python's data parsing capabilities.
The bot analyzes Twitter sentiment concerning specific financial instruments and converts this data into actionable trading signals. This method not only taps into the synergy of diverse technologies in finance but also underscores the significance of alternative data in contemporary trading strategies. The in-depth analysis of the bot focuses on its functionality and code structure, processing social media data, and managing trade executions based on sentim...
Read more...
The bot analyzes Twitter sentiment concerning specific financial instruments and converts this data into actionable trading signals. This method not only taps into the synergy of diverse technologies in finance but also underscores the significance of alternative data in contemporary trading strategies. The in-depth analysis of the bot focuses on its functionality and code structure, processing social media data, and managing trade executions based on sentim...
Read more...
β€17π17π6π₯3β‘1
This discussion revisits the topic of how learning rate formats impact Expert Advisor performance, focusing particularly on adaptive learning rates and the one-cycle learning rate. Adaptive learning rates like adaptive gradient, adaptive RMS, adaptive mean exponential, and adaptive delta are explored, each tailoring the learning rate based on the training gradients of specific parameters within the model, thereby optimizing performance by adjusting the learning input precisely.
Furthermore, the article delves into the benefits of using the Sigmoid activation within a specified range for the NZDUSD forex pair in the context of the 2023 daily timeframe. This selective use along with non-batch normalized inputs, although risky, aims to simplify the evaluation of learning rate effectiveness under controlled output conditions. The article recognizes inherent risks in non-normalized data, ...
Read more...
Furthermore, the article delves into the benefits of using the Sigmoid activation within a specified range for the NZDUSD forex pair in the context of the 2023 daily timeframe. This selective use along with non-batch normalized inputs, although risky, aims to simplify the evaluation of learning rate effectiveness under controlled output conditions. The article recognizes inherent risks in non-normalized data, ...
Read more...
π20β€5π4π―1
Developing an Expert Advisor (EA) requires a nuanced understanding of both algorithms and market indicators. This article highlights two primary methods for integrating indicators into an EA's algorithm. One approach is direct coding of indicator conditions, which enhances efficiency and speed in Strategy Tester operations without separate indicators. The second method involves programming the EA to respond to the indicator's buffer states, which require specific setup within MetaTrader 5 directories to ensure operational functionality.
Challenges arise when attempting to publish an EA based on a custom indicator, as the MQL5 community's validation system may not recognize the custom setup, confining testing and use to personal computers. Preparing an indicator involves organizing buffer sequences and understanding buffer operations, a critical step for seamless EA development. Each ...
Read more...
Challenges arise when attempting to publish an EA based on a custom indicator, as the MQL5 community's validation system may not recognize the custom setup, confining testing and use to personal computers. Preparing an indicator involves organizing buffer sequences and understanding buffer operations, a critical step for seamless EA development. Each ...
Read more...
π26β€11β‘7β3
In software development, creating and integrating multiple tools on a unified platform, such as MetaTrader 5, can lead to unexpected compatibility issues. When different programs, processes, or indicators, designed to operate independently, are combined, conflicts may arise, causing performance issues or functionalities to break. Professionals in the IT and programming sector must anticipate these conflicts and design components that can seamlessly integrate without conflict.
The development of a new Chart Trade indicator, distinct from a previous iteration discussed in earlier articles, illustrates this process. The new version avoids using legacy code and is designed to operate harmoniously with other components, specifically a mouse indicator developed earlier. This approach emphasizes creating components that can easily interact and function together, thus minimizing the potentia...
Read more...
The development of a new Chart Trade indicator, distinct from a previous iteration discussed in earlier articles, illustrates this process. The new version avoids using legacy code and is designed to operate harmoniously with other components, specifically a mouse indicator developed earlier. This approach emphasizes creating components that can easily interact and function together, thus minimizing the potentia...
Read more...
π23β€11π4β‘2β2π2
The Whale Optimization Algorithm (WOA), inspired by humpback whales' hunting strategies, applies biological behaviors to technical optimization. In algorithmic terms, "whales"βrepresenting different solutionsβnavigate towards optimal results by mimicking whale hunting techniques such as "bubble netting" and "spiral penetration."
WOA initiates with a random whale population, selecting a leader based on the best objective function. This leader guides the group, with other whales updating their positions in two modes: exploration (search around the best solution) and exploitation (move towards the best solution). This balance allows the algorithm to efficiently search and optimize solutions space.
Despite its innovative approach, WOA has limitations like potential for local optimum entrapment and slow convergence times. Adjustments like incorporating migration strategies have been prop...
Read more...
WOA initiates with a random whale population, selecting a leader based on the best objective function. This leader guides the group, with other whales updating their positions in two modes: exploration (search around the best solution) and exploitation (move towards the best solution). This balance allows the algorithm to efficiently search and optimize solutions space.
Despite its innovative approach, WOA has limitations like potential for local optimum entrapment and slow convergence times. Adjustments like incorporating migration strategies have been prop...
Read more...
π23π8π4β€3π2β‘1
The Roofing Filter Indicator, developed by John Ehlers, is utilized in trading to identify short-term trends. When this indicator surpasses its signal line, it suggests a short-term uptrend is initiating, whereas a crossover below indicates a potential downtrend. Traders may consider buying when the indicator's line turns green and selling when it shifts to red, aiding in strategic decision-making to optimize trading performances. This method provides a systematic approach to catch trend shifts promptly, benefiting those engaged in active trading environments.
Read more...
Read more...
β€38π19β‘4π4π2π₯1
Linux offers a robust ecosystem for software development, preferred especially by those proficient in command line interfaces. Its package management system simplifies application installation, making the operating system transparent and mutable, allowing deep customization of its subsystems. Linuxβs design includes ready-to-use essential development tools, creating a flexible and efficient environment favored in software engineering. This platform is versatile, spanning from personal desktops to sophisticated cloud services provided by major platforms like AWS and Google Cloud.
Developers targeting Windows users can utilize Linux to develop and deliver consistent, platform-agnostic applications. For instance, MetaTrader 5 developers often employ the MQL5 programming language and rely on the MT5 IDE for compiling. However, when developing custom solutions like shared libraries (DLLs)...
Read more...
Developers targeting Windows users can utilize Linux to develop and deliver consistent, platform-agnostic applications. For instance, MetaTrader 5 developers often employ the MQL5 programming language and rely on the MT5 IDE for compiling. However, when developing custom solutions like shared libraries (DLLs)...
Read more...
β€23π10β5π4β‘3π2
This technical indicator is designed to assist in trend and channel identification using the BSI Indicator as a base evaluation tool. It begins by assessing the overall market trend with the BSI, followed by drawing either trend lines or channels based on specific conditions. The configuration includes an orange dashed line to indicate either a high trend line or channel, while a blue dashed line represents a low trend line or channel. Key visual cues include a red mark to denote a high reversal bar and a blue mark for a low reversal bar. Additional features include a pink line, which outlines the tango line indicating the entry level, and a magenta line that depicts the moving average of the tango line. For clarity on BSI values, a red dotted line is used. This type of indicator is crucial for technical analysis, providing clear visual aids to guide trading decisions.
Read more...
Read more...
π55β€36π5π2β‘1π1π1
MetaTrader 5 now supports a new program type called services, enabling users to create custom price feeds by implementing real-time price delivery from external systems. This feature allows for continuous data synchronization similar to that on brokers' trade servers, without needing to be chart-dependent.
Services run in their own thread, with executed threads correlating to the number of services. Unlike scripts and Expert Advisors (EAs), services can operate continuously without interrupting the functioning of other MQL5 programs, thanks to their independent execution flow. Additionally, services differ in their inability to use certain functions such as ExpertRemove() or any related to timers and custom indicators, aligning with their design to handle single Start events and ongoing tasks without user intervention.
Specifically, services can be extremely useful for background op...
Read more...
Services run in their own thread, with executed threads correlating to the number of services. Unlike scripts and Expert Advisors (EAs), services can operate continuously without interrupting the functioning of other MQL5 programs, thanks to their independent execution flow. Additionally, services differ in their inability to use certain functions such as ExpertRemove() or any related to timers and custom indicators, aligning with their design to handle single Start events and ongoing tasks without user intervention.
Specifically, services can be extremely useful for background op...
Read more...
π35β€17π6β‘3π3β1π¨βπ»1
This function serves as a foundational script for retrieving the day's trading history in a trading platform environment. It's designed to allow users to enhance its functionality, such as by incorporating additional data types like trading volume. Modifications can also be made to examine different time periods by adjusting the starting variable in the code.
By default, the output, specifically the Daily Profit figure, is displayed in the Experts Panel. This function is crafted to be straightforward, promoting comprehensibility and ease of adaptation for further customization and extension by users who wish to tailor the function to meet specific trading needs or integrate more complex trading metrics.
Read more...
By default, the output, specifically the Daily Profit figure, is displayed in the Experts Panel. This function is crafted to be straightforward, promoting comprehensibility and ease of adaptation for further customization and extension by users who wish to tailor the function to meet specific trading needs or integrate more complex trading metrics.
Read more...
π65β€29π5π₯4π4π4π€1
In the realm of computer vision, the estimation of optical flow is essential for various applications including autonomous driving and object tracking. Traditionally, this problem has been approached largely through convolutional neural networks which, while effective to an extent, often fall short in handling scenarios involving large displacements or occlusions due to their limited receptive fields.
A promising method, CCMR (Coarse-to-Fine Context-Guided Motion Reasoning), represents a significant advancement in optical flow estimation. By integrating context-based motion aggregation with high-resolution multi-scale approaches, CCMR allows for more precise detection of flow fields, particularly in areas obstructed from view. This method employs transformers and other attention mechanisms, overcoming the constraints of traditional CNNs by leveraging global context at each stage of p...
Read more...
A promising method, CCMR (Coarse-to-Fine Context-Guided Motion Reasoning), represents a significant advancement in optical flow estimation. By integrating context-based motion aggregation with high-resolution multi-scale approaches, CCMR allows for more precise detection of flow fields, particularly in areas obstructed from view. This method employs transformers and other attention mechanisms, overcoming the constraints of traditional CNNs by leveraging global context at each stage of p...
Read more...
β€23π16π5π4β‘1
The Swing High/Low Identifier is a beneficial tool for MT5 users, engineered to accentuate key swing points on trading charts. This indicator enhances traders' ability to rapidly detect critical price levels and patterns, integral for executing strategic trading decisions. It marks swing highs with red arrows above the candles and swing lows with blue arrows beneath them, based on a user-defined range of bars.
This tool offers several strategic applications including:
1. *Trend Reversal Identification*: Helps in pinpointing potential resistance and support levels, aiding traders in forecasting the start of downtrends and uptrends.
2. *Support and Resistance Analysis*: The indicator's markings can be used to draw horizontal lines or channels to identify crucial support and resistance zones.
3. *Price Action Trading*: Traders can integrate the indicator with other price action methods...
Read more...
This tool offers several strategic applications including:
1. *Trend Reversal Identification*: Helps in pinpointing potential resistance and support levels, aiding traders in forecasting the start of downtrends and uptrends.
2. *Support and Resistance Analysis*: The indicator's markings can be used to draw horizontal lines or channels to identify crucial support and resistance zones.
3. *Price Action Trading*: Traders can integrate the indicator with other price action methods...
Read more...
π―31β€17π17β‘8π4π2
In technical analysis, the significance of candlestick patterns is enhanced when the candle's body constitutes at least 50% of the total range. This attribute indicates stronger market conviction in the price movement represented by the candle. An indicator can be employed to identify and color-code these candles, distinguishing them visually on charts. Candles not meeting this criterion retain the default color settings of the chart, allowing analysts to quickly assess market sentiment and potential price directions with greater clarity. This method aids in more precise and efficient chart analysis, supporting better-informed trading decisions.
Read more...
Read more...
π40β€22π6π€―4π4β‘1
One of the most popular threads on our forum is the one dedicated to getting started with MetaTrader 5.
Our community members have gathered a lot of useful information to assist everyone start trading on the platform and utilize its features to the fullest:
β Platform usage tips and practical insights
β Examples of working with indicators and instructions on testing robots
β Overviews of interesting articles for traders
Read this thread and join other forum discussions in the world's largest algo trading community. Add to favorites so you don't miss important updates.
Join the thread "How to Start with MetaTrader 5"
Our community members have gathered a lot of useful information to assist everyone start trading on the platform and utilize its features to the fullest:
β Platform usage tips and practical insights
β Examples of working with indicators and instructions on testing robots
β Overviews of interesting articles for traders
Read this thread and join other forum discussions in the world's largest algo trading community. Add to favorites so you don't miss important updates.
Join the thread "How to Start with MetaTrader 5"
π39β€26π₯6β‘4π€4
In the latest update on trading strategy automation, a significant advancement has been made in the realm of Expert Advisors (EAs) for trading platforms. The ability to maintain the state of an EA after a restart has now been enhanced to accommodate variable position sizes based on the trading account balance.
The update introduces the concept of a 'Normalized Trading Strategy'. This approach centers on defining a fixed lot size and calculating an initial balance that can sustain a drawdown, but not exceed 10%. This method ensures calculated risk while enabling position adjustment proportional to the account balance changes.
Three money management options are detailed: fixed size, constant size for a specified balance, and variable size according to the current balance. Each serves distinct testing and operational purposes ranging from demonstration to real trading environments, p...
Read more...
The update introduces the concept of a 'Normalized Trading Strategy'. This approach centers on defining a fixed lot size and calculating an initial balance that can sustain a drawdown, but not exceed 10%. This method ensures calculated risk while enabling position adjustment proportional to the account balance changes.
Three money management options are detailed: fixed size, constant size for a specified balance, and variable size according to the current balance. Each serves distinct testing and operational purposes ranging from demonstration to real trading environments, p...
Read more...
β€19π14β‘3π2π1
Understanding the role of MQL5 in algorithmic trading can be transformative for both novice and advanced developers. Since its inception, MQL5 has offered extensive resources to aid in the development and optimization of trading algorithms. Among these, the MQL5 community stands out as a foundational resource. It provides essential tools like comprehensive documentation, diverse forums, an energetic market, and real-time data services which facilitate the trading strategies and programming tasks.
Moreover, the Desktop MetaTrader 5 platform integrates these components, serving as an essential tool for algorithm developers. With features like MetaQuotes Language Editor and Strategy Tester, the platform supports thorough testing and refinement of algorithms.
Artificial intelligence also plays a crucial role in enhancing MQL5's capabilities, particularly through innovations like ChatGPT...
Read more...
Moreover, the Desktop MetaTrader 5 platform integrates these components, serving as an essential tool for algorithm developers. With features like MetaQuotes Language Editor and Strategy Tester, the platform supports thorough testing and refinement of algorithms.
Artificial intelligence also plays a crucial role in enhancing MQL5's capabilities, particularly through innovations like ChatGPT...
Read more...
β€34π22π3β‘1
In a recent technical guide, the process of developing a multi-symbol, multi-period RSI indicator dashboard in MetaQuotes Language 5 (MQL5) for MetaTrader 5 (MT5) is meticulously outlined. This dashboard provides a consolidated view of the Relative Strength Index (RSI) across various symbols and timeframes, significantly enhancing a trader's analytical capabilities.
The guide covers essential areas including the initialization of the dashboard environment, the dynamic calculation and real-time display of RSI values, and the customization of the user interface. Traders can tailor the dashboard to fit their trading strategies, improving decision-making processes by quickly identifying overbought or oversold market conditions through an intuitive visual interface.
Moreover, specific instructions are provided for creating interactive buttons that update based on live market data. This n...
Read more...
The guide covers essential areas including the initialization of the dashboard environment, the dynamic calculation and real-time display of RSI values, and the customization of the user interface. Traders can tailor the dashboard to fit their trading strategies, improving decision-making processes by quickly identifying overbought or oversold market conditions through an intuitive visual interface.
Moreover, specific instructions are provided for creating interactive buttons that update based on live market data. This n...
Read more...
β17π17β€6β‘5
A trading strategy is essentially a systematic approach aimed at generating profits in financial markets by taking long or short positions based on predefined criteria. Effective trading strategies often include key elements such as a chosen financial symbol, specific timeframes, the use of technical indicators and filters, and clearly defined rules for opening and closing trades. Additionally, robust strategies incorporate stringent money and risk management rules to safeguard investments.
A crucial aspect of any trading strategy is consistency and the avoidance of contradictory elements within the strategy parameters. For instance, integrating a trailing stop with strict money management rules often leads to conflicts because a trailing stop may execute a trade before the set profit targets are reached, potentially reducing the expected profit.
Further refining a trading strategy ...
Read more...
A crucial aspect of any trading strategy is consistency and the avoidance of contradictory elements within the strategy parameters. For instance, integrating a trailing stop with strict money management rules often leads to conflicts because a trailing stop may execute a trade before the set profit targets are reached, potentially reducing the expected profit.
Further refining a trading strategy ...
Read more...
β€24π16β‘5π5
Understanding MQL4 for Customizing Trading Strategies
MQL4, short for MetaQuotes Language 4, serves as a powerful tool for developing trading strategies specifically for use in the MetaTrader 4 platform. It primarily enables the creation of custom indicators, scripts, and automated trading bots known as Expert Advisors (EAs). The language's structure is similar to that of C, which makes it accessible for those familiar with C-based languages.
Utilizing MQL4, traders can automate their trading strategies which can execute trades based on predefined conditions without manual intervention. This allows for the development of complex algorithms that can analyze large datasets and execute trades on global financial markets efficiently.
For developers aiming to build or enhance their EAs, mastering MQL4 opens door to a customized trading experience tailored to specific market conditions a...
Read more...
MQL4, short for MetaQuotes Language 4, serves as a powerful tool for developing trading strategies specifically for use in the MetaTrader 4 platform. It primarily enables the creation of custom indicators, scripts, and automated trading bots known as Expert Advisors (EAs). The language's structure is similar to that of C, which makes it accessible for those familiar with C-based languages.
Utilizing MQL4, traders can automate their trading strategies which can execute trades based on predefined conditions without manual intervention. This allows for the development of complex algorithms that can analyze large datasets and execute trades on global financial markets efficiently.
For developers aiming to build or enhance their EAs, mastering MQL4 opens door to a customized trading experience tailored to specific market conditions a...
Read more...
π65β€38β‘6