Become familiar with a class that empowers developers to craft buttons on charts, behaving similarly to chart objects with time and price coordinates. These objects can be freely adjusted on the chart, maintaining their position even when scrolling.
For those keen to further their understanding of Object-Oriented Programming, chartevents management, or designing graphical interfaces, this resource proves invaluable. It cleverly responds to chart modifications and mouse maneuvers. When the mouse interacts under certain conditions, the Button is selected and becomes manipulable.
Watch as the dragging process is tracked through a custom chart event known as EVENT_DRAG. The button's onChartEvent function is consistently invoked in the built-in OnChartEvent function, relaying pertinent information to the various handler functions.
A tutorial video has been prepared, providing insights ...
Read more...
For those keen to further their understanding of Object-Oriented Programming, chartevents management, or designing graphical interfaces, this resource proves invaluable. It cleverly responds to chart modifications and mouse maneuvers. When the mouse interacts under certain conditions, the Button is selected and becomes manipulable.
Watch as the dragging process is tracked through a custom chart event known as EVENT_DRAG. The button's onChartEvent function is consistently invoked in the built-in OnChartEvent function, relaying pertinent information to the various handler functions.
A tutorial video has been prepared, providing insights ...
Read more...
β€2π2π1
In the latest installment of our ongoing discussion on market simulation, the focus shifts to resolving issues related to extremely low transaction volumes. The primary concern was when such sparse data threatened the system's stability, especially during Last plotting type-based simulations.
The proposed solution, informed by previous principles used in Bid plotting-based simulations, features making integral changes to the class structure, enabling a more efficient aggregation of common values. This strategy facilitates the modification of code to remove existing limitations on Last price simulations and opens up a specific entry point for this simulation type.
The structural changes ensure that both simulation modes based on Bid and Last could benefit from improvements made to time management. Furthermore, the adjustments streamline the class code to allow for both simulations t...
Read more...
The proposed solution, informed by previous principles used in Bid plotting-based simulations, features making integral changes to the class structure, enabling a more efficient aggregation of common values. This strategy facilitates the modification of code to remove existing limitations on Last price simulations and opens up a specific entry point for this simulation type.
The structural changes ensure that both simulation modes based on Bid and Last could benefit from improvements made to time management. Furthermore, the adjustments streamline the class code to allow for both simulations t...
Read more...
π3
In the dynamic and highly unpredictable world of Forex trading, the influence of seasonal trends can often go unnoticed. Yet a deep analysis reveals clear patterns tied to long-term economic cycles, agricultural seasons and holiday periods, which can play a pivotal role in shaping trading strategies. This overlooked tool offers an opportunity for traders who are willing to move beyond the standard parameters of fundamental and technical analysis.
Seasonality represents a specific principle - a predictable formation of a market model depending on the time of year, repeating at regular intervals. Think about the regular increase in demand for heating oil during winter months, driving the price uptick, or the fluctuating supply and demand of soybeans attributed to agricultural cycles. Traders who can identify and understand these trends, real-time or across different years, will gain a...
Read more...
Seasonality represents a specific principle - a predictable formation of a market model depending on the time of year, repeating at regular intervals. Think about the regular increase in demand for heating oil during winter months, driving the price uptick, or the fluctuating supply and demand of soybeans attributed to agricultural cycles. Traders who can identify and understand these trends, real-time or across different years, will gain a...
Read more...
π1
Confronted with the quest of understanding Object Oriented Programming or the workings of chartevents? Or perhaps, curious to innovate with graphical interfaces? A learning resource has been put together that focuses on a class designed to create buttons on a chart. These buttons, akin to chart objects, hold time and price coordinates.
Unique to this class is that the buttons can be dragged on the chart, and maintain their position through scrolling. The incorporated main Idea enables the class to react to chart changes and monitor mouse movements, allowing for interactivity.
Once the mouse matches the pre-set conditions, a button gets selected and becomes draggable, monitored via the custom chart event: EVENT_DRAG. An integral part of this setup is the button's onChartEvent function. This function, always activated in the built-in OnChartEvent mechanism, disseminates the necessar...
Read more...
Unique to this class is that the buttons can be dragged on the chart, and maintain their position through scrolling. The incorporated main Idea enables the class to react to chart changes and monitor mouse movements, allowing for interactivity.
Once the mouse matches the pre-set conditions, a button gets selected and becomes draggable, monitored via the custom chart event: EVENT_DRAG. An integral part of this setup is the button's onChartEvent function. This function, always activated in the built-in OnChartEvent mechanism, disseminates the necessar...
Read more...
π7β€2π1
Diving into time series analysis: It plays a pivotal role not only in assisting fundamental analysis but also in liquid markets such as forex, often driving investment decisions. Speaking of traditional technical indicators, they exhibit a significant lag, causing traders to shift their favour towards alternatives, one prominent example being neural networks. Yet, it's essential to bring polynomial interpolation into the discussion.
Polynomial interpolation is advantageous, primarily due to its ease of understanding and implementation. It lays out the relationship between past observations and future predictions through a simple equation, thereby highlighting the impact of past data on upcoming values and guiding the formulation of broad concepts or potential theories on the behavior of the studied time series.
Moreover, its adaptability to both linear and quadratic relations makes ...
Read more...
Polynomial interpolation is advantageous, primarily due to its ease of understanding and implementation. It lays out the relationship between past observations and future predictions through a simple equation, thereby highlighting the impact of past data on upcoming values and guiding the formulation of broad concepts or potential theories on the behavior of the studied time series.
Moreover, its adaptability to both linear and quadratic relations makes ...
Read more...
β€5π1π1
Market simulation and replay systems can prove to be a challenging endeavor when trying to integrate Bid price-based charting and Last price-based charting. After going back and forth with numerous prototypes, an efficient solution has now been established, which successfully simulates price movement based on a 1-minute chart time.
However, it's still in the developing stages. At present, the function to "go back in time" needs to be discarded as it runs the risk of obstructing upcoming features. Although the idea is fascinating, it's not functional in practice as it initiates issues that need to be addressed.
One of these issues is locking at a determined "stop" point in the system's time control, for which the simulation service adjusts the minimum limit as it progresses. To prevent users from exceeding this limit, a clear notification method was implemented, making a large leap...
Read more...
However, it's still in the developing stages. At present, the function to "go back in time" needs to be discarded as it runs the risk of obstructing upcoming features. Although the idea is fascinating, it's not functional in practice as it initiates issues that need to be addressed.
One of these issues is locking at a determined "stop" point in the system's time control, for which the simulation service adjusts the minimum limit as it progresses. To prevent users from exceeding this limit, a clear notification method was implemented, making a large leap...
Read more...
π1π1
Introducing the Adaptive Volatility Analysis (AVA) Indicator: a powerful tool measuring market price movements with a precision that eclipses the capabilities of standard indicators. Unlike traditionally static views, the AVA continuously modifies its analysis to reflect current market dynamics. The tool's innate adaptability provides a distinct advantage in predicting sudden shifts in volatility.
The AVA's foundations rest on the Average True Range (ATR), typically examining the last 14 trades to quantify market movement. The incorporation of two Exponential Moving Averages (EMAs), applied to the ATR values, assists in the identification of price movement trends. The indicator defaults to a short-term EMA of 2 and a long-term EMA of 5, while longer periods (e.g., 10 and 50) are options for extended term analysis.
The AVA's distinctive characteristic is the Factor of Adaptive Volati...
Read more...
The AVA's foundations rest on the Average True Range (ATR), typically examining the last 14 trades to quantify market movement. The incorporation of two Exponential Moving Averages (EMAs), applied to the ATR values, assists in the identification of price movement trends. The indicator defaults to a short-term EMA of 2 and a long-term EMA of 5, while longer periods (e.g., 10 and 50) are options for extended term analysis.
The AVA's distinctive characteristic is the Factor of Adaptive Volati...
Read more...
π4πΎ2β€1π1
For those seeking precision in calculating drawdown, an algorithm is available that leverages magic number and symbol for increased accuracy. This method takes into account the specific parameters of each trade, providing a deeper insight into potential profitability.
However, itβs important to understand that this approach tailors the drawdown calculation towards specific trading conditions, potentially narrowing the analysis context. If the requirement is to account for overall account drawdown without discrimination, the code needs to be amended. This can be achieved by removing the filters corresponding to magic number and symbol.
This flexibility in the code not only enables a more granular calculation but also opens up the opportunity to view the broader trading landscape contributing to an understanding of overall risk and maximizing return potential. Remember to modify resp...
Read more...
However, itβs important to understand that this approach tailors the drawdown calculation towards specific trading conditions, potentially narrowing the analysis context. If the requirement is to account for overall account drawdown without discrimination, the code needs to be amended. This can be achieved by removing the filters corresponding to magic number and symbol.
This flexibility in the code not only enables a more granular calculation but also opens up the opportunity to view the broader trading landscape contributing to an understanding of overall risk and maximizing return potential. Remember to modify resp...
Read more...
π5β2π2β€1
Highlighting the robust possibilities of Object-Oriented Programming (OOP), insightful details and guidelines on the development of an Expert Advisor for live market simulations have been underscored. The efficient creation of viable Expert Advisors demands a keen understanding of project structure and market specificities for maximum effectiveness.
Primarily the creation of a robust, secure, and reliable code from the start is underscored, emphasizing on the indispensable role of mouse and keyboard interfaces in chart-centric applications such as MetaTrader 5.
Furthermore, the profound value of developing an Expert Advisor applicable to diverse assets without breaching server rules has been accentuated. These EAs need to simulate the experience of a trading server connection, maintaining identical rules and standards across real and simulated markets.
Technical nuances, like the ...
Read more...
Primarily the creation of a robust, secure, and reliable code from the start is underscored, emphasizing on the indispensable role of mouse and keyboard interfaces in chart-centric applications such as MetaTrader 5.
Furthermore, the profound value of developing an Expert Advisor applicable to diverse assets without breaching server rules has been accentuated. These EAs need to simulate the experience of a trading server connection, maintaining identical rules and standards across real and simulated markets.
Technical nuances, like the ...
Read more...
β€2π2π2
Linear Discriminant Analysis (LDA), a supervised machine learning algorithm, finds a linear combination of features that best separate dataset classes. Similar to Principal Component Analysis (PCA), LDA targets dimensionality reduction, although in diverse circumstances each carries out effectively. The key objectives of LDA notably include maximizing class separability, minimizing within-class variability, enhancing between-class variability, effectually dealing with multiclass classification, and reducing dimensionality while preserving significant class-discriminatory information.
LDA, however, carries certain assumptions - data are independent, normally distributed within features, and classes retain the same co-variance matrix. If such assumptions are in any form violated, LDA's performance could be impacted. Its sensitivity to outliers is noted when covariance matrices are est...
Read more...
LDA, however, carries certain assumptions - data are independent, normally distributed within features, and classes retain the same co-variance matrix. If such assumptions are in any form violated, LDA's performance could be impacted. Its sensitivity to outliers is noted when covariance matrices are est...
Read more...
π2π1π₯1
Understanding the basis of a given code and its interpretations are crucial in its successful application. For those submitting Expert Advisors, ensure to name the most appropriate symbol and timeframe to optimize its usage. If submitting include files, specify their purpose such as -- for trailing procedures or calculating the size of a position to be opened.
All images attached should adhere to a standard size, preferably not exceeding 750x500 pixels. For illustrations featuring indicators or graphical objects in chart forms, consider a black and white color scheme for easy printability.
The naming convention of attached codes must be considered. Aim to use Latin letters, preferably English, for effective communication and understanding. For instance, opt for 'research.mq5' as opposed to language-specific terms like 'issledovanie.mq5', 'erforschung.mq5', 'estudio.mq5', 'ricerca.mq...
Read more...
All images attached should adhere to a standard size, preferably not exceeding 750x500 pixels. For illustrations featuring indicators or graphical objects in chart forms, consider a black and white color scheme for easy printability.
The naming convention of attached codes must be considered. Aim to use Latin letters, preferably English, for effective communication and understanding. For instance, opt for 'research.mq5' as opposed to language-specific terms like 'issledovanie.mq5', 'erforschung.mq5', 'estudio.mq5', 'ricerca.mq...
Read more...
π5π2
Following the detailed construction of the first class, now turns attention towards creating the C_Mouse class β a program designed to expand these high-level programming ideas and make them more useful. The aim is to keep the class code as simple to understand for other developers as possible, ensuring minimal use of complex modeling that can confuse less experienced programmers.
The C_Mouse class interacts with the user through the common mouse and keyboard inputs, aiming to keep the user-platform interaction as simple and effective as possible. A resource file is incorporated within the executable for ease of portability without separate downloads.
Simplicity in coding and their maintenance is realized through the use of definitions, where they are initially defined and later removed, avoiding unnecessary repeated declarations.
Inheritance plays a pivotal role in allowing the C_...
Read more...
The C_Mouse class interacts with the user through the common mouse and keyboard inputs, aiming to keep the user-platform interaction as simple and effective as possible. A resource file is incorporated within the executable for ease of portability without separate downloads.
Simplicity in coding and their maintenance is realized through the use of definitions, where they are initially defined and later removed, avoiding unnecessary repeated declarations.
Inheritance plays a pivotal role in allowing the C_...
Read more...
Huge strides have been made in creating a structured analysis of the key aspects in forex trading - Historical Levels. Being the most recurring prices over the lifetime of a trading symbol, they directly reflect the economic conditions of a financial environment and often act as pivotal boundaries impacting price/rate movements.
Scientific analyses have documented the strong correlation of these Historical Levels to financial phases, creating a compelling case for their incorporation into a trader's market analyses toolkit. The observation that price behavior around these levels significantly influences candle shape has been exploited to predict potential price jumps.
In light of this insight, two rules have been derived, both revolving around the 'Jump Factor'. A bullish candle at the support level qualifies if 'close-low' increments beyond the jump figure. Similarly, at the resi...
Read more...
Scientific analyses have documented the strong correlation of these Historical Levels to financial phases, creating a compelling case for their incorporation into a trader's market analyses toolkit. The observation that price behavior around these levels significantly influences candle shape has been exploited to predict potential price jumps.
In light of this insight, two rules have been derived, both revolving around the 'Jump Factor'. A bullish candle at the support level qualifies if 'close-low' increments beyond the jump figure. Similarly, at the resi...
Read more...
π10π2π2π1
Gain insightful understanding of Fourier transform, a method invaluable in decomposing a wave into its possible component parts. A tool that initially was the brainchild of Joseph Fourier, its uses have been extended to an array of applications beneficial to traders.
By integrating over an array of frequencies, the Fourier transform delivers a spectrum of components, each corresponding to a distinct frequency. The frequencies, in practice, are efficiently predetermined to a manageable number, rendering the transform formula manageable.
The modern Fourier application encapsulates n components, each with varying wave values at distinct times. The aim is to establish the components' f(t), constituting both real and imaginary parts. With this setup, it redefines any function f(t) within the interval 0 to 2 pi with complex numbers as an βinfinite sumβ.
In practical terms, Fourier Tra...
Read more...
By integrating over an array of frequencies, the Fourier transform delivers a spectrum of components, each corresponding to a distinct frequency. The frequencies, in practice, are efficiently predetermined to a manageable number, rendering the transform formula manageable.
The modern Fourier application encapsulates n components, each with varying wave values at distinct times. The aim is to establish the components' f(t), constituting both real and imaginary parts. With this setup, it redefines any function f(t) within the interval 0 to 2 pi with complex numbers as an βinfinite sumβ.
In practical terms, Fourier Tra...
Read more...
π6π2
In the realm of MQL5 and algo trading, there exists a simple yet powerful code that can be utilized for understanding volume trends. This piece of code enables the setting of two distinct groups of volume for comparison.
Take the example of a one-minute chart. Set group 1 to have 20 bars, this would present the average of the last 20 bars' volume. For group 2, set the range to accommodate the 21st to the 60th bar, providing an average over those bars. Note that setting it to 60 would equate to having 40 bars, for 60 bars, the setting should be at 80.
The next step would be the comparison process. By subtracting the average of the last 20 bars and the average of the 21st to 60th bar, the difference in volumes can be identified. To get more insight into volume increase, divide GROUP 1's average by GROUP 2's average.
This strategy offers a remarkable tool for trading breakouts or tre...
Read more...
Take the example of a one-minute chart. Set group 1 to have 20 bars, this would present the average of the last 20 bars' volume. For group 2, set the range to accommodate the 21st to the 60th bar, providing an average over those bars. Note that setting it to 60 would equate to having 40 bars, for 60 bars, the setting should be at 80.
The next step would be the comparison process. By subtracting the average of the last 20 bars and the average of the 21st to 60th bar, the difference in volumes can be identified. To get more insight into volume increase, divide GROUP 1's average by GROUP 2's average.
This strategy offers a remarkable tool for trading breakouts or tre...
Read more...
π7β€2β1
The ElectroMagnetism-like (EM) algorithm, a metaheuristic search algorithm, simulates the behaviour of electromagnetic particles to solve non-linear optimization problems. Guided by electromagnetism theory, EM uses attraction-repulsion mechanisms to attain global optimal solutions. The algorithm primarily involves forming solution populations, calculating electromagnetic forces between solutions, updating solution populations, and establishing stop conditions. Despite its potential, EM showed subpar performance in tests but outperformed some powerful algorithms on the Rastrigin function test with 1000 parameters.
Read more...
Read more...
π1
Trading experts understand the significance of setting the Take Profit (TP) and Stop Loss (SL) parameters in the course of their activities. Our advanced tool innovation brings an extra layer of strategic implementation in setting these parameters.
The Expert, keyed into this concept, operates such that TP is set based on the SL pre-determined manually. This is made possible through an input multiplier allowing the configuration to be 2, 3, 4 times and so forth the original SL set.
This systematic approach to trading approach substantiates the importance of strategic TP and SL setting in the face of unpredictable market dynamics, offering seasoned traders an additional avenue to optimize their trading strategy. Maintain market edge and viability with this innovative tool, as it continues to redefine trading execution in this era where details matter.
Read more...
The Expert, keyed into this concept, operates such that TP is set based on the SL pre-determined manually. This is made possible through an input multiplier allowing the configuration to be 2, 3, 4 times and so forth the original SL set.
This systematic approach to trading approach substantiates the importance of strategic TP and SL setting in the face of unpredictable market dynamics, offering seasoned traders an additional avenue to optimize their trading strategy. Maintain market edge and viability with this innovative tool, as it continues to redefine trading execution in this era where details matter.
Read more...
π9β€1
Revisiting the previous focus on Decision Transformer methods and autoregressive models, the performance of the model tends to decrease following initial profitability. This drawback could potentially be mitigated through periodic additional training; however, this inherently complex method would benefit from online model training.
February 2022 saw the introduction of the Online Decision Transformer, a derivative of the classic Decision Transformer. Noteworthy is the fact that the ODT is capable of competing with benchmark performances and even improving during fine-tuning. Its algorithm is influenced by the K hyperparameter that defines the context length and the interplay between exploration and exploitation.
Several distinct features mark out the ODT's algorithmic architecture, including the probability of the maximization of trajectory repeats and an auto-regressional model of...
Read more...
February 2022 saw the introduction of the Online Decision Transformer, a derivative of the classic Decision Transformer. Noteworthy is the fact that the ODT is capable of competing with benchmark performances and even improving during fine-tuning. Its algorithm is influenced by the K hyperparameter that defines the context length and the interplay between exploration and exploitation.
Several distinct features mark out the ODT's algorithmic architecture, including the probability of the maximization of trajectory repeats and an auto-regressional model of...
Read more...
β€1
In an effort to enhance code comprehension, notably for beginners, itβs key to bring programming closer to natural language. Offering detailed context on the evolution of coding languages from binary to assembly languages and now to higher-level languages, this journey has incrementally pushed machine language closer to human language. One such example of the latter is MQL5, bearing similarities to C/C++.
Undeniably programming for other programmers simplifies the process, ensuring easier maintainability and upgradeability especially as codes become increasingly complex. A more readable and understandable code will inevitably reduce errors and amplify efficiency. A key amplification of this principle is the Defines.mqh file. It encapsulates definitions within syntax enabling a more human-readable code, even allowing programming enthusiasts to grasp basic ideas without fully understan...
Read more...
Undeniably programming for other programmers simplifies the process, ensuring easier maintainability and upgradeability especially as codes become increasingly complex. A more readable and understandable code will inevitably reduce errors and amplify efficiency. A key amplification of this principle is the Defines.mqh file. It encapsulates definitions within syntax enabling a more human-readable code, even allowing programming enthusiasts to grasp basic ideas without fully understan...
Read more...
β€2π1
Circulating among the digital spheres is a video link worth taking a look at. The video is a well-detailed and insightful demonstration of modern coding techniques and practices. Its contents revolve around the implementation of user-friendly software applications, backed by versatile coding languages and rock-solid data security.
The digital landscape is continually changing, and staying updated is a necessity, not a choice. This material provides an excellent opportunity for developers and programmers to stay abreast of the latest trends and technological advancements in the field.
The video promises to share methodologies that streamline time-consuming tasks. It effectively demonstrates how to approach complex programming needs and construct powerful applications for today's demanding users.
A note for interested viewers: Extracting the maximum value from the video requires focu...
Read more...
The digital landscape is continually changing, and staying updated is a necessity, not a choice. This material provides an excellent opportunity for developers and programmers to stay abreast of the latest trends and technological advancements in the field.
The video promises to share methodologies that streamline time-consuming tasks. It effectively demonstrates how to approach complex programming needs and construct powerful applications for today's demanding users.
A note for interested viewers: Extracting the maximum value from the video requires focu...
Read more...
π4β€2