A trading strategy focusing on the EURUSD pair during the M15 timeframe has been outlined for traders interested in technical analysis. The strategy utilizes a set of three indicators: EMA with a period of 34, CCI with an MA period of 50, and the MACD set to default MT5 settings.
For executing BUY orders under this strategy, the conditions are specified as follows: the closing of the candle above the EMA, the CCI indicator crossing the 0 level moving into the positive zone, and the MACD indicator positioned below 0 while completing a bullish crossover.
Conversely, SELL orders should be considered when the candle closes above the EMA, the CCI indicator surpasses the 0 level moving into the positive, and the MACD indicator remains below 0, indicating a bearish crossover.
This systematic approach provides a clear framework for traders looking to harness the combined predictive powers ...
Read more...
For executing BUY orders under this strategy, the conditions are specified as follows: the closing of the candle above the EMA, the CCI indicator crossing the 0 level moving into the positive zone, and the MACD indicator positioned below 0 while completing a bullish crossover.
Conversely, SELL orders should be considered when the candle closes above the EMA, the CCI indicator surpasses the 0 level moving into the positive, and the MACD indicator remains below 0, indicating a bearish crossover.
This systematic approach provides a clear framework for traders looking to harness the combined predictive powers ...
Read more...
π8β€1π1
Understanding the application of Hidden Markov Models (HMMs) in financial series heralds a significant leap in predictive modeling. HMMs classify temporal data points into hidden states based on the transition probabilities and emission probabilities, making them ideal for financial time series marked by noise and non-linearities.
This primer details the use of Python's hmmlearn module to construct an HMM, alongside an integration example with MetaTrader 5 via both Python and MQL5. Key aspects of modeling with HMMs include defining the number of latent states, setting initial state probabilities, transitioning probabilities matrix, and defining emission probabilities. Techniques such as the forward and backward algorithms are used for likelihood estimations across observed data sequences, while the Viterbi algorithm assists in determining the most likely hidden state sequences.
For...
Read more...
This primer details the use of Python's hmmlearn module to construct an HMM, alongside an integration example with MetaTrader 5 via both Python and MQL5. Key aspects of modeling with HMMs include defining the number of latent states, setting initial state probabilities, transitioning probabilities matrix, and defining emission probabilities. Techniques such as the forward and backward algorithms are used for likelihood estimations across observed data sequences, while the Viterbi algorithm assists in determining the most likely hidden state sequences.
For...
Read more...
π7π1
Expert Advisor developers often encounter the need for their robots to manage multiple orders simultaneously. Achieving this requires the ability to track the total number of open orders and distinguish among them by type. A practical solution involves using the Comment() function, allowing for real-time visual tracking of the order count managed by the robot. This approach is illustrated in a clear and concise code, complete with descriptive notes to aid in implementation. This kind of capability is crucial for developers looking to enhance the functionality and efficiency of their trading strategies.
Read more...
Read more...
π4π3
In developing efficient trading strategies, it's essential to incorporate comprehensive market analysis and predictive techniques for financial instrument movements. These movements typically exhibit correlations with other financial assets and macroeconomic indicators, revealing patterns akin to regulated traffic dynamics, where various elements interact within defined rules, albeit with inherent unpredictability due to individual actions.
The ADAPT method, initially introduced for navigating autonomous vehicles, has been effectively adapted for financial markets. This technique involves analyzing past data to predict future trajectories of multiple agents by dynamically learning weight adjustments. It employs a vectorized scene representation to model interactions among agents and map elements which aids in accurately forecasting movements within the financial landscape.
Key eleme...
Read more...
The ADAPT method, initially introduced for navigating autonomous vehicles, has been effectively adapted for financial markets. This technique involves analyzing past data to predict future trajectories of multiple agents by dynamically learning weight adjustments. It employs a vectorized scene representation to model interactions among agents and map elements which aids in accurately forecasting movements within the financial landscape.
Key eleme...
Read more...
π8π3
In the evolution of multi-currency EA development, a transition into a more sophisticated operational mode has been noted. Initially, the CAdvisor class facilitated the aggregation of multiple trading strategies into a single array, which enabled simultaneous operations but introduced complexities, such as the need for smaller position sizes and the possibility of canceling out opposing positions. To address these issues, a significant restructuring was implemented.
In the updated model, direct market position openings by individual strategies were removed. Instead, strategies now manage virtual positions while a dedicated receiver (CReceiver class and descendants) handles the actual market transactions. This change ensures that even strategies contributing minimal virtual volumes can influence the market, enhancing operational inclusivity and potentially reducing swap costs and draw...
Read more...
In the updated model, direct market position openings by individual strategies were removed. Instead, strategies now manage virtual positions while a dedicated receiver (CReceiver class and descendants) handles the actual market transactions. This change ensures that even strategies contributing minimal virtual volumes can influence the market, enhancing operational inclusivity and potentially reducing swap costs and draw...
Read more...
β€4π2π₯1π1
In the realm of MQL5 development, efficient code management is critical, especially when dealing with repetitive tasks across multiple projects. A powerful strategy to streamline this process is by utilizing code libraries, particularly .ex5 libraries and DLLs, which are essential for developing Expert Advisors, custom indicators, and scripts on the MetaTrader 5 platform.
Creating your own MQL5 libraries not only accelerates the development cycle by reusing existing code but also protects your source code through encapsulation, ensuring that functionalities can be shared without exposing the underlying code implementations. Function libraries (.ex5 files) allow for modular design, enhancing code reusability and maintenance.
For more advanced integration, MQL5 developers can leverage third-party C++ libraries or expand functionalities with .NET Libraries and Python modules, seamlessl...
Read more...
Creating your own MQL5 libraries not only accelerates the development cycle by reusing existing code but also protects your source code through encapsulation, ensuring that functionalities can be shared without exposing the underlying code implementations. Function libraries (.ex5 files) allow for modular design, enhancing code reusability and maintenance.
For more advanced integration, MQL5 developers can leverage third-party C++ libraries or expand functionalities with .NET Libraries and Python modules, seamlessl...
Read more...
π2β1π1π1
Discussing the Break of Structure (BoS) in Forex Trading
The Break of Structure (BoS) represents a significant shift in the market trend and is pivotal in understanding forex market movements through the lens of Smart Money Concepts (SMC). In technical analysis, a Break of Structure occurs when prices decisively move through established swing highs or lows, indicating a potential change in market sentiment and trend direction.
By contrasting BoS with Market Structure Shift (MSS) and Change of Character (CHoC), traders can better grasp different market dynamics. MSS signals a trend reversal without previous breaks of swing points, while CHoC involves a price break after surpassing the former swing points.
Incorporating BoS into trading strategies involves analyzing higher time frames to discern the broader market trend and pinpointing entry points at the break of swing highs or lows...
Read more...
The Break of Structure (BoS) represents a significant shift in the market trend and is pivotal in understanding forex market movements through the lens of Smart Money Concepts (SMC). In technical analysis, a Break of Structure occurs when prices decisively move through established swing highs or lows, indicating a potential change in market sentiment and trend direction.
By contrasting BoS with Market Structure Shift (MSS) and Change of Character (CHoC), traders can better grasp different market dynamics. MSS signals a trend reversal without previous breaks of swing points, while CHoC involves a price break after surpassing the former swing points.
Incorporating BoS into trading strategies involves analyzing higher time frames to discern the broader market trend and pinpointing entry points at the break of swing highs or lows...
Read more...
π6β3π2
In the dynamic world of technical trading, the clarity of chart visualization is critical. MQL5 on MetaTrader 5 offers a variety of drawing styles that significantly enhance this aspect, providing traders with tools necessary for sophisticated analysis and effective trading strategy development. Traders can customize these styles, like DRAW_LINE or DRAW_HISTOGRAM, to suit distinct needs, be it to track volume or highlight trend lines and moving averages more clearly.
Further enhancing its utility, MQL5 allows for the integration of detailed visual cues into trading systems, thereby reducing manual chart monitoring and enabling more efficient trades. An example of this is the implementation of the DRAW_LINE function, used to visually depict trends and modify its display attributes in response to changing market conditions.
Moreover, the adaptability of MQL5's drawing functions exten...
Read more...
Further enhancing its utility, MQL5 allows for the integration of detailed visual cues into trading systems, thereby reducing manual chart monitoring and enabling more efficient trades. An example of this is the implementation of the DRAW_LINE function, used to visually depict trends and modify its display attributes in response to changing market conditions.
Moreover, the adaptability of MQL5's drawing functions exten...
Read more...
π6π3
A new chart indicator is now available, offering enhanced trading visualization features. Key functionalities include:
- Real-time display of the last price on the Bid Line, together with the symbol name, countdown to candle closing, and current timeframe.
- Presentation of the last 24 hours' percentage change for quick volatility assessment.
- Customizable time display on the Price Line, allowing traders to choose between Local, GMT, or the Current time based on their specific chart setups. Additionally, it shows the current symbol number in relation to the total symbols listed in Marketwatch.
- Indicator settings now allow users to assign specific colors to bearish and bullish movements, enhancing visual differentiation.
- The display of current High and Low prices within the visible chart area. Users can scale the chart vertically using the mouse scroll button, incorporating a fea...
Read more...
- Real-time display of the last price on the Bid Line, together with the symbol name, countdown to candle closing, and current timeframe.
- Presentation of the last 24 hours' percentage change for quick volatility assessment.
- Customizable time display on the Price Line, allowing traders to choose between Local, GMT, or the Current time based on their specific chart setups. Additionally, it shows the current symbol number in relation to the total symbols listed in Marketwatch.
- Indicator settings now allow users to assign specific colors to bearish and bullish movements, enhancing visual differentiation.
- The display of current High and Low prices within the visible chart area. Users can scale the chart vertically using the mouse scroll button, incorporating a fea...
Read more...
π6π3β€1
In the dynamic field of trajectory forecasting, particularly for real-time applications such as trading and autonomous driving, the balance between model complexity and computational efficiency is crucial. Increasing model complexity can improve accuracy but also raises operating and training costs. This is especially significant in volatile markets where real-time decision-making is essential.
Researchers have derived methodologies from autonomous vehicle technologies to address these challenges. By adopting techniques like graph neural networks and attention mechanisms, they have managed to reduce computational demands without sacrificing forecast quality. The focus is on predictive models that use simplified input data, such as past trajectories and basic map information, avoiding the need for high-quality, fully annotated maps.
The proposal involves lightweight model architectur...
Read more...
Researchers have derived methodologies from autonomous vehicle technologies to address these challenges. By adopting techniques like graph neural networks and attention mechanisms, they have managed to reduce computational demands without sacrificing forecast quality. The focus is on predictive models that use simplified input data, such as past trajectories and basic map information, avoiding the need for high-quality, fully annotated maps.
The proposal involves lightweight model architectur...
Read more...
π4π1
Understanding the structure and workflow of an Expert Advisor (EA) in automated trading can significantly enhance your development process. Here's a brief breakdown:
1. Start with defining input parameters which configure the EA according to user preferences or strategy requirements.
2. Initialize local variables to manage and store runtime data efficiently during the EA operation.
3. The main code is divided into critical sections:
a. The initialization function sets up necessary components and verifies the trading environment.
b. The tick function is called on every new market tick and is crucial for responsive and dynamic trading actions.
- Within the tick function:
i. Signal calculations are performed to decide when and where to place orders.
ii. Volume calculations determine the size of the trading positions based on predefined risk management strategies.
...
Read more...
1. Start with defining input parameters which configure the EA according to user preferences or strategy requirements.
2. Initialize local variables to manage and store runtime data efficiently during the EA operation.
3. The main code is divided into critical sections:
a. The initialization function sets up necessary components and verifies the trading environment.
b. The tick function is called on every new market tick and is crucial for responsive and dynamic trading actions.
- Within the tick function:
i. Signal calculations are performed to decide when and where to place orders.
ii. Volume calculations determine the size of the trading positions based on predefined risk management strategies.
...
Read more...
π8π2β€1
In the latest discussion on OpenCL technology, an issue was identified with MetaTrader 5's inability to employ GPU via OpenCL, specifically encountering an error coded 5114. This error hinders GPU selection for processes demanding elevated computation power. The built-in OpenCL support in MetaTrader 5, while detecting the GPU, fails to initialize consistent GPU usage. This persistent issue since 2013 affects a subset of MetaTrader users across various systems.
The initial workaround involves directly referencing GPU devices by ordinal number in MetaTrader's Journal tab, rather than using the intended flags for device selection. This makeshift solution sidesteps the error but is considered a temporary fix.
The proposed long-term solution involves a series of developmental phases, starting with a basic OpenCalibri test program that confirms feasible GPU usage, progressing through crea...
Read more...
The initial workaround involves directly referencing GPU devices by ordinal number in MetaTrader's Journal tab, rather than using the intended flags for device selection. This makeshift solution sidesteps the error but is considered a temporary fix.
The proposed long-term solution involves a series of developmental phases, starting with a basic OpenCalibri test program that confirms feasible GPU usage, progressing through crea...
Read more...
π4π₯3π2
Forex Trade Manager MT5 facilitates the management of open orders on MetaTrader 5 by automating crucial functions. Upon opening a new order, it automatically configures Stop Loss and Take Profit settings. Additionally, it provides options for a Trailing Stop, which dynamically adjusts Stop Loss based on price movements, and a Break Even feature that adjusts Stop Loss to the open price after a set profit threshold is reached.
The tool allows for tailored control by managing orders either only for the active symbols or universally across all open orders. It also offers a 'Stealth Mode', wherein Stop Loss and Take Profit values are concealed from brokers, providing a layer of strategy invisibility.
Furthermore, the Forex Trade Manager includes settings for precision control:
- Stop Loss and Take Profit are adjustable in pips.
- The Break Even point can be activated after achieving a ce...
Read more...
The tool allows for tailored control by managing orders either only for the active symbols or universally across all open orders. It also offers a 'Stealth Mode', wherein Stop Loss and Take Profit values are concealed from brokers, providing a layer of strategy invisibility.
Furthermore, the Forex Trade Manager includes settings for precision control:
- Stop Loss and Take Profit are adjustable in pips.
- The Break Even point can be activated after achieving a ce...
Read more...
π11β€1π1π1
In recent advancements in Expert Advisor (EA) technology, a comprehensive update has been executed on previously optimized systems, integrating results from two main project streamsβgeometry revisiting and neural network optimization. The use of MetaTrader 5 exclusively has allowed for more structured optimization without third-party dependencies.
A significant development is the amalgamation of optimization results into a single EA to streamline operations previously veiled by the necessity to manage numerous charts and EAs simultaneously. This integration uses both perceptron-based and neural network approaches, which have undergone rigorous forward tests over a one-year timeframe, from December 2021 to December 2022.
For implementation, a set of optimization and testing modes were applied, including "Open prices only" and "Complex Criterion max", with the latter showing more cons...
Read more...
A significant development is the amalgamation of optimization results into a single EA to streamline operations previously veiled by the necessity to manage numerous charts and EAs simultaneously. This integration uses both perceptron-based and neural network approaches, which have undergone rigorous forward tests over a one-year timeframe, from December 2021 to December 2022.
For implementation, a set of optimization and testing modes were applied, including "Open prices only" and "Complex Criterion max", with the latter showing more cons...
Read more...
π6β€2π2π€1
Forex Trade Manager Grid MT5 is an advanced tool designed to assist in managing forex orders conveniently. This tool enables users to initiate a trading cycle by placing a first order with a specified Take Profit. Once the EA (Expert Advisor) is executed, users can set a desired profit in pips through the provided parameters, and the EA will manage the positions to aggregate the set number of pips.
This strategy is particularly effective for manual trades on the current pair, employing a grid management approach. Positions are added between currently open trades at a chosen pip distance, supporting up to 15 trades. The initial three trades are managed with individual take profits; however, from the fourth trade onwards, the EA aims to close the entire grid at a common break-even level.
Crucial parameters for this EA include adding new trades at a defined pip distance from the last ...
Read more...
This strategy is particularly effective for manual trades on the current pair, employing a grid management approach. Positions are added between currently open trades at a chosen pip distance, supporting up to 15 trades. The initial three trades are managed with individual take profits; however, from the fourth trade onwards, the EA aims to close the entire grid at a common break-even level.
Crucial parameters for this EA include adding new trades at a defined pip distance from the last ...
Read more...
π5π5β€4
In the latest discussion on building effective Expert Advisors (EAs) for automated trading, it's crucial to focus on the design of order systems. The complexity of running multiple EAs, especially on accounts with a NETTING position accounting system, can lead to unintended interactions such as conflicting trades that could result in significant losses. Instead, using a HEDGING account allows for simultaneous buy and sell orders by different EAs without cancelling each other.
For robust EA functionality, it's essential to integrate specific functions that manage market price execution and order modification efficiently. This includes functionality for direct market entry and dynamic adjustment of order prices, critical for adapting to real-time market conditions.
Effective management of positions requires precise controls for closing or modifying trades, especially in volatile marke...
Read more...
For robust EA functionality, it's essential to integrate specific functions that manage market price execution and order modification efficiently. This includes functionality for direct market entry and dynamic adjustment of order prices, critical for adapting to real-time market conditions.
Effective management of positions requires precise controls for closing or modifying trades, especially in volatile marke...
Read more...
π6β€2π₯2β‘1π1
Understanding Moving Averages and Their Importance in Trading
Moving averages are crucial tools in trading, assisting in the smoothing of price data to reveal prevailing market trends. This less volatile representation helps investors identify more consistent patterns, providing a clear picture despite fluctuating market conditions.
Types of Moving Averages:
1. **Simple Moving Average (SMA)**: Calculates the average of a specific number of price points to determine a trend.
2. **Exponential Moving Average (EMA)**: Focuses more heavily on recent prices, making it more responsive to new information.
3. **Smoothed Moving Average (SMMA)**: Equally weights all values, useful for identifying longer-term trends.
4. **Linear Weighted Moving Average (LWMA)**: Also emphasizes recent prices, adjusting weights linearly, which can be beneficial for quick response to market changes.
These moving...
Read more...
Moving averages are crucial tools in trading, assisting in the smoothing of price data to reveal prevailing market trends. This less volatile representation helps investors identify more consistent patterns, providing a clear picture despite fluctuating market conditions.
Types of Moving Averages:
1. **Simple Moving Average (SMA)**: Calculates the average of a specific number of price points to determine a trend.
2. **Exponential Moving Average (EMA)**: Focuses more heavily on recent prices, making it more responsive to new information.
3. **Smoothed Moving Average (SMMA)**: Equally weights all values, useful for identifying longer-term trends.
4. **Linear Weighted Moving Average (LWMA)**: Also emphasizes recent prices, adjusting weights linearly, which can be beneficial for quick response to market changes.
These moving...
Read more...
π8β€5π3π1
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...
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...
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...
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
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