The Relative Moving Average (RMA) presents a deviation from the widely adopted Exponential Moving Average, boasting a unique calculating factor of 1/cycle. Characterized by a singular input variable, the calculation period, customization takes the shape of line type and color alternations. This can be easily accomplished within the accessible Parameters or Color tab. Once the necessary adjustments are finalized and the loading process is complete, the ensuing graphical representation lends itself to valuable analysis. No need to be overwhelmed by esoteric quantitative methods. The simplicity and efficiency of RMA put powerful analytical tools within the reach of every developer. Insights await.
Read more...
Read more...
❤6👍3👏1
The shift from manual mode to automatic operation using the Expert EA isn't a task for the faint-hearted. This article sheds light on the transformation process. A key component that facilitates such shifts is the creation of the C_Automaton class. The primary focus here is on the interconnection of this class with the EA and the C_Manager class. These elements replace the trader in executing trading commands.
Importantly, no alterations should be made to an existing, functioning system to incorporate the C_Automaton class. It's advisable to take the system offline, restore C_Mouse, and test after effecting modifications. Once the performance is satisfactory, the C_Automaton class can be reintroduced to the system.
The C_Automaton class in itself is a feature-heavy entity. It maintains its uniqueness across different EAs by depending on specific methods. This ability ensures the fle...
Read more...
Importantly, no alterations should be made to an existing, functioning system to incorporate the C_Automaton class. It's advisable to take the system offline, restore C_Mouse, and test after effecting modifications. Once the performance is satisfactory, the C_Automaton class can be reintroduced to the system.
The C_Automaton class in itself is a feature-heavy entity. It maintains its uniqueness across different EAs by depending on specific methods. This ability ensures the fle...
Read more...
👍2👏1
Delve into the realm of algorithmic trading with the advanced Expert Advisor (EA) crafted for strategic money management. This EA embraces the dynamism of martingale strategies and accentuates it with a multiplier feature.
A straightforward method is recommended for harnessing the full potential of the 'MartingaleEA-5Levels'. Ensure the EA is up and running ahead of initiating any trading positions. This condition optimizes the algorithmic intelligence for superior results.
In the settings, it's crucial to activate the 'Martingale Mode' by setting it to 'true'. The user is required to input the preferred trading symbols, for instance, EURUSD or GBPUSD.
Further customize the trading strategy by selecting a martingale multiplier. This value is set in the 'Martingale Volume Multiplier', which influences the volume of trading positions. An input of '2' would mean that a subsequent po...
Read more...
A straightforward method is recommended for harnessing the full potential of the 'MartingaleEA-5Levels'. Ensure the EA is up and running ahead of initiating any trading positions. This condition optimizes the algorithmic intelligence for superior results.
In the settings, it's crucial to activate the 'Martingale Mode' by setting it to 'true'. The user is required to input the preferred trading symbols, for instance, EURUSD or GBPUSD.
Further customize the trading strategy by selecting a martingale multiplier. This value is set in the 'Martingale Volume Multiplier', which influences the volume of trading positions. An input of '2' would mean that a subsequent po...
Read more...
👍5❤1👏1
Forex trading, with its daily turnover of $6 trillion, offers substantial profit opportunities, but also carries commensurate risk. A crucial differentiating factor resides in the ability to identify good entry points, structure profit and loss boundaries, and maintain discipline. The aim is to secure a share of the vast daily forex turnover, one that is distributed to an extensive subscriber base.
A critical tool in successful forex trading is understanding the context provided by MQL5.com. The platform offers a market for various experts, indicators or utility aids for trading, and valuable free tools within its Codebase. It also presents a section dedicated to signals that can provide guidance for creating your own.
Studying other successful signal providers is an essential step in creating a reliable signal. Understanding their approaches, work processes and methodologies can pr...
Read more...
A critical tool in successful forex trading is understanding the context provided by MQL5.com. The platform offers a market for various experts, indicators or utility aids for trading, and valuable free tools within its Codebase. It also presents a section dedicated to signals that can provide guidance for creating your own.
Studying other successful signal providers is an essential step in creating a reliable signal. Understanding their approaches, work processes and methodologies can pr...
Read more...
👍5❤4⚡2
Presenting an indicator capable of reading both the balance and equity from trading accounts and visualizing them on a standalone chart. Extremely simple to use and exceptionally beneficial for accurate backtesting.
What it showcases: The projection of balance over time is represented by a blue line, whereas equity fluctuations over time are demonstrated by a green line.
This tool, however, comes with certain limitations. Due to the usage of the AccountInfoDouble() method for reading balance and equity, it is unable to capture data prior to being attached to a chart. It only exhibits the dynamics of balance and equity from the exact time it is attached.
This limitation, ironically, makes it an even more valuable asset for backtests. The tool offers a close-up view on drawdown analysis with a zoom-in and zoom-out features, in parallel with the chart. Although it doesn't provide hi...
Read more...
What it showcases: The projection of balance over time is represented by a blue line, whereas equity fluctuations over time are demonstrated by a green line.
This tool, however, comes with certain limitations. Due to the usage of the AccountInfoDouble() method for reading balance and equity, it is unable to capture data prior to being attached to a chart. It only exhibits the dynamics of balance and equity from the exact time it is attached.
This limitation, ironically, makes it an even more valuable asset for backtests. The tool offers a close-up view on drawdown analysis with a zoom-in and zoom-out features, in parallel with the chart. Although it doesn't provide hi...
Read more...
❤2👍2👏2
The Numerical Analysis Library or ALGLIB, is a high-performance library designed for numerical methods and data analysis algorithms, a perfect assistant in analyzing complex financial markets. ALGLIB is recognized among the top libraries due to its compatibility with several programming languages and operating systems. Using ALGLIB, linear algebra, solving equations, interpolation, and optimization can be achieved with efficiency and simplicity, opening new possibilities in market trends prediction. Portability and ease of use, coupled with its open-source nature make ALGLIB an excellent choice for both scientific research and commercial projects.
ALGLIB, first adapted for use in the MQL5 language in 2012, over the years, has gained recognition among developers. With more than 70 changes made to improve the library, its versatility benefits numerous financial processes. However, use...
Read more...
ALGLIB, first adapted for use in the MQL5 language in 2012, over the years, has gained recognition among developers. With more than 70 changes made to improve the library, its versatility benefits numerous financial processes. However, use...
Read more...
👍3❤1🔥1
Presenting a robust Multi-currency Expert Advisor, designed to manage and trade across 30 pairs, driven by Fast and Slow RSI indicators. Equipped with multiple trading strategies, this Algorithmic Trading system caters to both novice and seasoned traders. It's built with a foundation in MQL5, offering reliable features and flexibility.
The trading pairs include 28 forex pairs and 2 metal pairs accounting for versatility. The Expert Advisor also natively handles forex and metal symbol pairs with prefixes and/or suffixes in MetaTrader 5. Single and multi-currency trading options provide additional customization.
RSI indicators strategically analyses market trends and signals, enabling informed decisions. The multi-currency expert advisor manages stop loss orders, take profit orders, trailing stops, trailing take profit and manual orders. Also accessible are multiple manual button cl...
Read more...
The trading pairs include 28 forex pairs and 2 metal pairs accounting for versatility. The Expert Advisor also natively handles forex and metal symbol pairs with prefixes and/or suffixes in MetaTrader 5. Single and multi-currency trading options provide additional customization.
RSI indicators strategically analyses market trends and signals, enabling informed decisions. The multi-currency expert advisor manages stop loss orders, take profit orders, trailing stops, trailing take profit and manual orders. Also accessible are multiple manual button cl...
Read more...
❤2👍2👏1
Leveraging the 15-minute timeframe on EURUSD, this Expert Advisor (EA) utilizing MetaTrader 4 provides valuable assistance for savvy traders. Operating on the basis of price movements relative to the Moving Average, it advises when to execute buying or selling trades.
Key functionalities include the option to preset time range for trading as per server time. In addition, parameters for stop loss, profit targets, lot size, and unique magic number can be manually configured by the users, thereby providing flexibility to accommodate varying trading strategies.
Furthering its efficiency, customization of Moving Average settings can enhance adaptability to market volatility. Such versatility and comprehensiveness make it a robust tool for automated forex trading strategies.
Read more...
Key functionalities include the option to preset time range for trading as per server time. In addition, parameters for stop loss, profit targets, lot size, and unique magic number can be manually configured by the users, thereby providing flexibility to accommodate varying trading strategies.
Furthering its efficiency, customization of Moving Average settings can enhance adaptability to market volatility. Such versatility and comprehensiveness make it a robust tool for automated forex trading strategies.
Read more...
👍4❤1👏1
Among the tools to leverage machine learning models, this study brings forth a novel messaging system. Synchronously exchanging messages between the server side (Python) and client side (MQL5) helps overcome the lack of network functions during tests and restriction on network functions. This solution is adaptive to both regression and classification models.
The Inter-Process-Communication (IPC) deploys this architecture. Starting with a server initialized to expect a client's initialization message, data from the client, such as the environment in which it runs, is processed and stored. Post this, the server confirms initialization to the client. Depending on whether it is a production or a test thread, the server will use connections via sockets or messaging with CSV files, respectively.
The CSV format aids in developing a standardized system for data exchange. While CSV writing/r...
Read more...
The Inter-Process-Communication (IPC) deploys this architecture. Starting with a server initialized to expect a client's initialization message, data from the client, such as the environment in which it runs, is processed and stored. Post this, the server confirms initialization to the client. Depending on whether it is a production or a test thread, the server will use connections via sockets or messaging with CSV files, respectively.
The CSV format aids in developing a standardized system for data exchange. While CSV writing/r...
Read more...
👍4✍2👏1
Unleash the power within programming platforms by mastering the techniques of modern software development. Grasp the fundamental principles and best practices to write clean, concise, and efficient code. The efficacy of software development hinges not only on an intricate understanding of programming languages, but also on the seamless integration of software tools and methodologies.
Deepen the understanding about the design and architecture of software systems. Stay current by continually updating knowledge about rapidly evolving tech and market trends. A proficient developer innovates, integrates, and optimizes. The art of programming demands unwavering commitment, sharp intellect, and meticulous attention to detail.
Understanding programming constructs, data structures, and algorithms in an intimately technical manner is key. Programming is more than writing code; it's about prob...
Read more...
Deepen the understanding about the design and architecture of software systems. Stay current by continually updating knowledge about rapidly evolving tech and market trends. A proficient developer innovates, integrates, and optimizes. The art of programming demands unwavering commitment, sharp intellect, and meticulous attention to detail.
Understanding programming constructs, data structures, and algorithms in an intimately technical manner is key. Programming is more than writing code; it's about prob...
Read more...
👍8👏1👌1
The article discussed indicator implementation in EAs and how to connect and utilize volume and Bill Williams' indicators. Data received from these indicators can be visualized on a dashboard, significantly enhanced from its original version.
For volume indicators, the discussion centered on Accumulation/Distribution, Money Flow Index, On Balance Volume, and Volumes. Each indicator's parameters, initialization, deinitialization, and data retrieval was carefully outlined with accompanying codes for an understanding that's practical and applicable.
Turning attention to Bill Williams' indicators, the Accelerator Oscillator existence was examined. As an indicator that measures the acceleration and deceleration of current market forces, it works as an early warning sign, signaling upcoming changes in price ahead of time. Like other indicators, parameters, initialization, deinitialization...
Read more...
For volume indicators, the discussion centered on Accumulation/Distribution, Money Flow Index, On Balance Volume, and Volumes. Each indicator's parameters, initialization, deinitialization, and data retrieval was carefully outlined with accompanying codes for an understanding that's practical and applicable.
Turning attention to Bill Williams' indicators, the Accelerator Oscillator existence was examined. As an indicator that measures the acceleration and deceleration of current market forces, it works as an early warning sign, signaling upcoming changes in price ahead of time. Like other indicators, parameters, initialization, deinitialization...
Read more...
❤3👍2🔥1
Adaptive Boosting, widely known as AdaBoost, is a machine learning model known for combining weak classifiers into one strong classifier. The cause behind its effectiveness is the approach of assigning weights to instances based on their accurate or inaccurate classification. By the end of the training procedure, it introduces a definitive strong learner as a linear combination of weak learners with certain weights.
This model's superiority is highlighted by its provision of numerous benefits- improved precision by integrating various weak model predictions, higher resistance to overfitting by allocating weights to wrongly classified inputs, efficient handling of imbalanced data, and enhanced interpretability by dissecting the model decision process into various procedures.
Further, illustrating the concept of a Decision Stump, it is a simplified machine learning model mainly utiliz...
Read more...
This model's superiority is highlighted by its provision of numerous benefits- improved precision by integrating various weak model predictions, higher resistance to overfitting by allocating weights to wrongly classified inputs, efficient handling of imbalanced data, and enhanced interpretability by dissecting the model decision process into various procedures.
Further, illustrating the concept of a Decision Stump, it is a simplified machine learning model mainly utiliz...
Read more...
👍1🔥1👏1
Chapter 3 of the MQL5 journey has arrived, offering an in-depth examination of fundamental elements including arrays, custom functions, preprocessors, and event handling. With an emphasis on creating an inclusive learning space, the tutorials simplify complex coding concepts by providing detailed explanations of every code line. By ensuring all readers comprehend the theoretical knowledge, everyone is equipped to apply these concepts in practical applications.
The main topics covered include Arrays (how to store and organize multiple data pipelines), Custom Functions (how to streamline common tasks and computations in trading strategies), and Preprocessors (how to control the behavior, structure, and characteristics of resulting program). Aspiring algorithmic traders and developers will gain valuable insights into efficient coding practices, allowing for more precise and efficient tr...
Read more...
The main topics covered include Arrays (how to store and organize multiple data pipelines), Custom Functions (how to streamline common tasks and computations in trading strategies), and Preprocessors (how to control the behavior, structure, and characteristics of resulting program). Aspiring algorithmic traders and developers will gain valuable insights into efficient coding practices, allowing for more precise and efficient tr...
Read more...
❤2👍1
Presenting a well-crafted risk management strategy compatible with MetaTrader Expert Advisor. This strategy oversees ongoing trades influenced by input parameters, specifically focusing on trade conclusions when profit or loss criteria have been met. What sets it apart is a trailing stop loss that solidifies profits as the trader operates in a profitable environment.
The code structure & functionality:
1. Necessary header files included for the trade and symbol information classes.
2. Input parameters organized for successful risk percentage determination, profit percentage, and trailing stop points.
3. Global variables identified for trade and symbol information objects.
Key functions explained:
1. The OnInit function: Initializes the symbol information object, systematically checks for errors.
2. The OnDeinit function: Remains inactive.
3. The OnTick function: Activated with each ...
Read more...
The code structure & functionality:
1. Necessary header files included for the trade and symbol information classes.
2. Input parameters organized for successful risk percentage determination, profit percentage, and trailing stop points.
3. Global variables identified for trade and symbol information objects.
Key functions explained:
1. The OnInit function: Initializes the symbol information object, systematically checks for errors.
2. The OnDeinit function: Remains inactive.
3. The OnTick function: Activated with each ...
Read more...
👍3
Unravel the potential of MQL5 by learning to craft movable GUIs; a skill to upgrade any trading strategy. Start with grasping the rudiments of chart events, the key drivers of our GUI's interactivity. Once you understand how to create your first movable GUI, proceed to build multiple GUIs with efficiency, customizing them to suit specific requirements.
First, decode the concept of chart events. Current EA code appears to be basic; however, don't derive conclusions based on it. Use OnChartEvent to compare it with other predefined functions. Examples include OnInit(), which runs on initialization, OnTick(), and OnDeinit().
OnChartEvent gets executed when certain events unfold, covering nine predefined events such as CHARTEVENT_KEYDOWN, CHARTEVENT_MOUSE_MOVE, CHARTEVENT_CLICK and more.
Next, create your first movable GUI. Start with a basic rectangle label of 200x200 at the distanc...
Read more...
First, decode the concept of chart events. Current EA code appears to be basic; however, don't derive conclusions based on it. Use OnChartEvent to compare it with other predefined functions. Examples include OnInit(), which runs on initialization, OnTick(), and OnDeinit().
OnChartEvent gets executed when certain events unfold, covering nine predefined events such as CHARTEVENT_KEYDOWN, CHARTEVENT_MOUSE_MOVE, CHARTEVENT_CLICK and more.
Next, create your first movable GUI. Start with a basic rectangle label of 200x200 at the distanc...
Read more...
❤3
Despite the limited drawing methods of MT4, the MT4 version of the original indicator is accessible here: https://www.mql5.com/en/code/22576. Unlike other versions, this does not feature colour zones, however, their boundaries remain present.
The RSI indicator is commonly utilized in trading decisions paired with level-checking. These checks aim to highlight whether there is an overbought or oversold condition in the market. A critical consideration often overlooked is that market adjustment to price changes may result in indicators misrepresenting overbought or oversold conditions, even when the market has already adjusted itself.
To address this, the revised version uses the RSI and constructs high and low neutral zones using a simple EMA lag. This lag is critical as it prevents false breakouts from occurring. A 'real overbought' or 'oversold condition' is considered to be happe...
Read more...
The RSI indicator is commonly utilized in trading decisions paired with level-checking. These checks aim to highlight whether there is an overbought or oversold condition in the market. A critical consideration often overlooked is that market adjustment to price changes may result in indicators misrepresenting overbought or oversold conditions, even when the market has already adjusted itself.
To address this, the revised version uses the RSI and constructs high and low neutral zones using a simple EMA lag. This lag is critical as it prevents false breakouts from occurring. A 'real overbought' or 'oversold condition' is considered to be happe...
Read more...
❤3👍1
Insights into the grid trading approach and how to effectively apply it have been shared. This unique trading method entails entering the market using numerous orders rather than focusing on precise entry and exit points. Particularly popular among new traders, this strategy does require a basic understanding of the primary trend. The grid's parameters will be determined by factors such as its width and step, both calculated in points.
Trading with this strategy offers multiple benefits, including a method of entering and exiting the market without much technical analysis, the ability to trade with minimal skills, risk management capabilities, and adaptability to varying market conditions.
However, this approach also carries some risks to bear in mind. For instance, unprofitable situations may arise with strong reverse fluctuations. To improve trading strategies, traders can consi...
Read more...
Trading with this strategy offers multiple benefits, including a method of entering and exiting the market without much technical analysis, the ability to trade with minimal skills, risk management capabilities, and adaptability to varying market conditions.
However, this approach also carries some risks to bear in mind. For instance, unprofitable situations may arise with strong reverse fluctuations. To improve trading strategies, traders can consi...
Read more...
❤3👍1
Introducing a revolutionary Expert Advisor (EA) for MetaTrader 5 (MT5), which demonstrates superior operational functionality by opening multiple buy and sell orders based on predefined user input parameters. These parameters govern the number of buy and sell orders, the risk percentage per trade, stop loss, take profit, and slippage.
Prominently featuring a supremely convenient user interface, the EA includes Buy and Sell buttons that, when clicked, efficiently set in motion the complex process of opening multiple buy and sell orders. The ingenuity of this EA lies in its ability to precisely calculate lot sizes based on risk percentages and stop-loss parameters provided by the user.
Carefully designed checks on spreads in relation to the configured slippage ensures orders aren't made recklessly, reinforcing the EA's multifaceted efficiency. Furthermore, it promptly opens buy orders...
Read more...
Prominently featuring a supremely convenient user interface, the EA includes Buy and Sell buttons that, when clicked, efficiently set in motion the complex process of opening multiple buy and sell orders. The ingenuity of this EA lies in its ability to precisely calculate lot sizes based on risk percentages and stop-loss parameters provided by the user.
Carefully designed checks on spreads in relation to the configured slippage ensures orders aren't made recklessly, reinforcing the EA's multifaceted efficiency. Furthermore, it promptly opens buy orders...
Read more...
❤3👏2👍1
In the realm of trading, risk and profit often walk hand-in-hand. The desire to minimize risk while securing small, yet stable profits led to the birth of pair trading, proposed originally in the paradigm of statistical arbitrage by Jerry Bamberger in the 1980s. This market-neutral strategy leverages the principle that intertwined financial tools will return to their average statistical relationship after a momentary discrepancy.
Pair trading, though seemingly simple, demands a rigid adherence to trading strategy and risk management rules. Market dynamics are in constant flux and statistical relationships can follow suit. An unexpected price fluctuation can bring about substantial losses.
A common basis for pair trading strategies is the correlation of two financial instruments. When two symbols display correlated movements, whether in the same or opposite directions, it signifies ...
Read more...
Pair trading, though seemingly simple, demands a rigid adherence to trading strategy and risk management rules. Market dynamics are in constant flux and statistical relationships can follow suit. An unexpected price fluctuation can bring about substantial losses.
A common basis for pair trading strategies is the correlation of two financial instruments. When two symbols display correlated movements, whether in the same or opposite directions, it signifies ...
Read more...
👍2
In the realm of securing WebSockets, a crucial step involves generating a random, 16-byte value. This specific value, aptly known as the Sec-WebSocket-Key is an essential factor in ensuring the integrity and security of a WebSocket connection. As mandated by the protocol defined in rfc6455 this key must be Base64-encoded. This provision can be referenced at Datatracker IETF’s site. The application of this code not only enhances the security but also optimizes the overall performance of web-based applications. In the ever-evolving world of IT and programming, adhering to such principles builds a firm foundation for more secure and efficient digital architecture.
Read more...
Read more...
❤5👍2