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