In the world of programming, methods to display values play a crucial role. A situation arises when there is a requirement for the formatted output of a value or property that is not very often in demand. In such cases, developers do not want to spend time searching for solutions, rather, they desire a ready-made collection of recipes for presenting all kinds of information. In this context, an exploration of the PrintFormat function provided by the MetaTrader 5 terminal could be beneficial.
The PrintFormat function allows developers to send their desired data to the log in a formatted easy-to-understand way. It can be customized to format and print sets of characters and values into the EA journal according to a specified format. A developer can set its own output format for each value, thereby creating versatile solutions for even the most obscure demands.
In reality, the applica...
Read More
The PrintFormat function allows developers to send their desired data to the log in a formatted easy-to-understand way. It can be customized to format and print sets of characters and values into the EA journal according to a specified format. A developer can set its own output format for each value, thereby creating versatile solutions for even the most obscure demands.
In reality, the applica...
Read More
π38β€26π€4β2π2π1
Understanding the Double Bollinger Band Strategy: This strategy utilises two Bollinger Bands to filter entries and exits within the forex market. The primary aim is to enter Buy (Sell) trades when the price fluctuates above (below) 3Ο (2 standard deviations). It also accommodates the 2Ο (2 standard deviations) in Bollinger Bands for making informed trade selections.
Incidentally, the default parameters are as follows:
- 2Ο Bollinger Bands (20,2) refers to the simple moving average (20) coupled with the number of standard deviations (2).
- 3Ο Bollinger Bands (20,3) collectively denotes the simple moving average (20) and the number of standard deviations (3).
For Long Entry, a Buy order opens if two conditions are satisfied: the Ask price overtakes the 3Ο upper Bollinger Band and the current price is within the 2Ο upper and lower Bollinger Bands. For Sell entry, a Sell order opens whe...
Read More
Incidentally, the default parameters are as follows:
- 2Ο Bollinger Bands (20,2) refers to the simple moving average (20) coupled with the number of standard deviations (2).
- 3Ο Bollinger Bands (20,3) collectively denotes the simple moving average (20) and the number of standard deviations (3).
For Long Entry, a Buy order opens if two conditions are satisfied: the Ask price overtakes the 3Ο upper Bollinger Band and the current price is within the 2Ο upper and lower Bollinger Bands. For Sell entry, a Sell order opens whe...
Read More
π15β€3β1
Introducing the Multi-Currency Expert Advisor, a dynamic trading robot capable of managing orders for 30 different currency pairs from a single chart symbol. It is powered by the robust MQL5 capabilities and relies on the use of the Parabolic SAR or iSAR Indicator across multiple timeframes from PERIOD_M15 to PERIOD_D1.
The Expert Advisor operates with common pairs typically used by brokers, making it highly compatible. An extensive spectrum is covered, spanning from Forex pairs such as EURUSD, GBPUSD, AUDUSD etc., all the way to metal pairs like XAUUSD (Gold) and XAGUSD (Silver).
Unlike conventional Expert Advisors, the Multi-Currency system doesn't confine calculations of indicator signals to a fixed timeframe. It remains effectively operational, whether it's calculating signals across timeframes ranging from PERIOD_M15, PERIOD_M30, PERIOD_H1, PERIOD_H4 to PERIOD_D1.
The Expert A...
Read More
The Expert Advisor operates with common pairs typically used by brokers, making it highly compatible. An extensive spectrum is covered, spanning from Forex pairs such as EURUSD, GBPUSD, AUDUSD etc., all the way to metal pairs like XAUUSD (Gold) and XAGUSD (Silver).
Unlike conventional Expert Advisors, the Multi-Currency system doesn't confine calculations of indicator signals to a fixed timeframe. It remains effectively operational, whether it's calculating signals across timeframes ranging from PERIOD_M15, PERIOD_M30, PERIOD_H1, PERIOD_H4 to PERIOD_D1.
The Expert A...
Read More
π10β€1π€1
An effective edit of the Mod_ATR_Trailing_Stop, a reliable algorithm initially crafted by Scriptor, has recently been completed. By tweaking the code, the number of buffers has been successfully reduced from two to one, resulting in a single line output. This modification aligns this iteration of code more closely with Bruce Hellstrom's original MT4-LevelStop-Reverse.v2, known for its efficiency and utilizing just one buffer.
With the ripple effects of this edit extending across platforms, a drumroll seems to be in order for MT5 users. Thanks to these revisions, this version of the indicator might be the closest MT5 users can get to incorporate an indicator akin to Bruce Hellstrom's MT4-LevelStop-Reverse.v2.
Those seeking to brush up their skills or just satisfy their curiosity should head towards https://www.mql5.com/en/code/20423 to grasp the intricacies of the original code. It ...
Read More
With the ripple effects of this edit extending across platforms, a drumroll seems to be in order for MT5 users. Thanks to these revisions, this version of the indicator might be the closest MT5 users can get to incorporate an indicator akin to Bruce Hellstrom's MT4-LevelStop-Reverse.v2.
Those seeking to brush up their skills or just satisfy their curiosity should head towards https://www.mql5.com/en/code/20423 to grasp the intricacies of the original code. It ...
Read More
π9π€2β€1
Developing a GUI library in the context of MetaTrader 5 is no minor feat, and it's certainly not the first task typically associated with this platform. However, it can be a rewarding challenge, paving the way for enhanced control over projects, customised capabilities, and valuable learning experiences.
GUI libraries enable tracking and modifying object properties, such as triggering events like movements or color changes. This is usually organised in a tree structure often manage through a 'program class', a placeholder coordinating operations that avoid unnecessary repetition and ensure children are created timely.
The fundamental building block of any GUI library is the 'element class', taking care of the crucial information about position, size, and relations with other elements. Handling the relations between objects involves defining functions for adding child elements and se...
Read More
GUI libraries enable tracking and modifying object properties, such as triggering events like movements or color changes. This is usually organised in a tree structure often manage through a 'program class', a placeholder coordinating operations that avoid unnecessary repetition and ensure children are created timely.
The fundamental building block of any GUI library is the 'element class', taking care of the crucial information about position, size, and relations with other elements. Handling the relations between objects involves defining functions for adding child elements and se...
Read More
π7β€2π¨βπ»1
In the realm of programming, the intricacy of setting the maximum rollback size is critical. To address this, simply locate the upper-left corner of the chart for the specific window. This action triggers the indicator to promptly display the proximate reversal levels as well as their corresponding probability. Such process bolsters the understanding between developers and their tools, hence, ultimately crafted for efficiency and functionality. The aforementioned method exemplifies the harmony between user control and technological sophistication, a key aspect in this field of work.
Read More
Read More
π5β€1π€1
The application of category theory to finance, particularly its adaptation for valuation and portfolio allocation, is yet unexplored terrain; especially in the realm of stock valuation where key stock metrics are viewed as objects in a category. This theoretical approach could provide unique insights into financial trends and risk evaluation.
In time series forecasting, moving averages are key. While occasionally overlooked for being too simplistic, their foundational role in other indicators, such as Bollinger Bands and Moving Average convergence divergence (MACD), makes them indispensable. Less volatile view of price actions presented by moving averages can dim double-edged sword of market white noise.
Natural transformations in category theory bridge the gap between related data sets of varying dimensions. These enable the comparison of 'simple' series of raw prices with 'compoun...
Read More
In time series forecasting, moving averages are key. While occasionally overlooked for being too simplistic, their foundational role in other indicators, such as Bollinger Bands and Moving Average convergence divergence (MACD), makes them indispensable. Less volatile view of price actions presented by moving averages can dim double-edged sword of market white noise.
Natural transformations in category theory bridge the gap between related data sets of varying dimensions. These enable the comparison of 'simple' series of raw prices with 'compoun...
Read More
π5π€1
In today's technical discussion, a closer look is taken at the robust indicator tool based mainly on analyses of pricing channels and asset volatility. Functioning as a trend predictor, this tool excels in generating accurate signals embodied in arrow form.
These signals serve as pivotal markers for traders, hinting at trend reversals. In turn, practitioners can base their strategic trading decisions upon these timely cues. The confluence of price channel dynamics and asset volatility analysis gives this indicator its potency, making it an essential instrument in any trader's analytical toolbox.
An enhanced understanding of market trend shifts can be the determining factor between successful and unfruitful trading outcomes. Using reliable signal generators such as this, traders gain a valuable edge in forecasting and strategizing actions in the dynamic trading landscape.
Read More
These signals serve as pivotal markers for traders, hinting at trend reversals. In turn, practitioners can base their strategic trading decisions upon these timely cues. The confluence of price channel dynamics and asset volatility analysis gives this indicator its potency, making it an essential instrument in any trader's analytical toolbox.
An enhanced understanding of market trend shifts can be the determining factor between successful and unfruitful trading outcomes. Using reliable signal generators such as this, traders gain a valuable edge in forecasting and strategizing actions in the dynamic trading landscape.
Read More
π7β€1π1
The Go-Explore algorithm introduces a leading-edge approach to reinforcement learning problem-solving. Distinctively focusing on finding relevant states and actions within the state space, rather than directly tackling the target problem, this method promotes efficient learning by allowing for the revisitation and remembering of promising state spaces. Building and testing separate Expert Advisors sequentially, each performing a unique algorithm task with a common objective of policy learning constitutes the structure of the process. Collected data results from the short-term strategy tester reveals promising outcomes, demonstrating exceptional balance sheet growth metrics, and trade profitability. However, extensive testing and training over a longer timeline are necessary before deployment into real-world account use.
Read More
Read More
π7
Unveiling the "Martin Gale Breakout" strategy in Forex trading landscape. This Expert Advisor (EA) ingeniously couples a breakout trading approach with Martin Gale's money management elements, significantly optimizing trading performance.
Key input parameters include TakeProfPointsβ setting a Take Profit level in points for each trade, BalancePercentageAvailable which defines the percentage of the account balance used for trading, and TP_Percentage_of_Balance and SL_Percentage_of_Balance for determining the account balance percentages allocated for Take Profit and Stop Loss respectively. The Start_The_Recovery feature regulates the activation of recovery measures. With TP_Points_Multiplier, creating flexible profit-taking strategies becomes seamless. The unique identifier MagicNumber allows the EA to manage its trades independently.
The strategy offers numerous advantages. Its mast...
Read More
Key input parameters include TakeProfPointsβ setting a Take Profit level in points for each trade, BalancePercentageAvailable which defines the percentage of the account balance used for trading, and TP_Percentage_of_Balance and SL_Percentage_of_Balance for determining the account balance percentages allocated for Take Profit and Stop Loss respectively. The Start_The_Recovery feature regulates the activation of recovery measures. With TP_Points_Multiplier, creating flexible profit-taking strategies becomes seamless. The unique identifier MagicNumber allows the EA to manage its trades independently.
The strategy offers numerous advantages. Its mast...
Read More
π4