Struggles with making the Expert Advisor autonomously detect open orders are not uncommon among novice developers. The established OrdersTotal() function does not distinguish whether an order was generated manually or by an Expert Advisor, merely returning an aggregate count of open orders. A simple workaround code has been shared demonstrating the Check_Open_Orders function at work in real time. This code uses the Comment() function for this demonstration. Detailed explanatory notes accompany the codes further offering support in understanding the application. This code is intended to be beneficial for beginner developers faced with similar problems.
Read more...
Read more...
π7β€3β1π1
Grasping the elusive concept of dimensionality reduction in machine learning? Understand it better with an intelligent discussion on High Dimensional Data, Curse of Dimensionality, Truncated SVD, and NMF. This dissection makes it easier to understand the advantages, trade-offs, and challenges of using these techniques in different scenarios. SVD or NMF? Inside, find a comprehensive comparison between Truncated SVD and NMF, followed by discussions on their respective advantages, limitations, and computational efficiencies. Whether it's for improving the generalization of ML algorithms or simplifying the visualization of high-dimensional data sets, this study is a valuable resource for both seasoned developers and emerging talents in the tech world.
Read more...
Read more...
π6π1
This post includes an overview of two simple functions - pivothigh(source, leftbars, rightbars) and pivotlow(source, leftbars, rightbars), calculated based on Pine Script V4. These snippets are ideal for use in conversion projects from the TradingView platform to MQL4. Note that the pivot indicators implementation could be lagging within the TradingView platform. Click here to access the MQL4 version. By understanding these functions, developers can gain a comprehensive understanding of pivot indicators implementation.
Read more...
Read more...
π5β€2π€2
Recent advancements in category theory application have been closely tethered to successful trading systems development. This discussion uncovers the potential of category theory graphs in the versatile trade system development framework, MQL5. Graphs can significantly improve modeling of intricate systems and enrich our understanding of relationships within.
Fronting categories for vertices and arrows with homomorphism functions provides an engaging way to define such systems. This method allows for detailed investigation of complex systems and examination of their components' relationships.
Two case studies have been utilized for this examination. The first study shows how changing graphs inform predictions about price changes, while the second study highlights the effects of different processes resulting from modifications in trading systems. The application and potential of the...
Read more...
Fronting categories for vertices and arrows with homomorphism functions provides an engaging way to define such systems. This method allows for detailed investigation of complex systems and examination of their components' relationships.
Two case studies have been utilized for this examination. The first study shows how changing graphs inform predictions about price changes, while the second study highlights the effects of different processes resulting from modifications in trading systems. The application and potential of the...
Read more...
π5π2
Expanding on standard market indicators, a newly devised strategy removes reliance on delayed data inputs, patterns, and price action projections, aiming to enhance trading efficacy.
The strategy employs an expert advisor (EA), utilizing a Progressive and Fibonacci system that has undergone rigorous testing for over three years. The EA operates independently of timeframe restrictions, making it adaptable across various trading windows.
Backtests have been conducted on pairs including GBPUSD and EURUSD from 2020.12.22 to 2023.12.22 with an initial deposit of 1000 USD, showcasing a reasonable degree of success. However, this EA is not meant for trending pairs like GBPJPY, USDJPY.
Key parameters for successful trading include specific initial lot size, defining maximum buy and sell orders, overall buy and sell profits, slippage control, and the distance between pips before triggering...
Read more...
The strategy employs an expert advisor (EA), utilizing a Progressive and Fibonacci system that has undergone rigorous testing for over three years. The EA operates independently of timeframe restrictions, making it adaptable across various trading windows.
Backtests have been conducted on pairs including GBPUSD and EURUSD from 2020.12.22 to 2023.12.22 with an initial deposit of 1000 USD, showcasing a reasonable degree of success. However, this EA is not meant for trending pairs like GBPJPY, USDJPY.
Key parameters for successful trading include specific initial lot size, defining maximum buy and sell orders, overall buy and sell profits, slippage control, and the distance between pips before triggering...
Read more...
π4π3
Continuous improvement lies at the core of all technological advancements. For scores of tech enthusiasts, the Automated System in the EA is nothing short of a prized tidbit. The latest article offers insight into the C_Automaton class application with just three models. Let's demystify all myths about the automation process.
Reinforcing the essentials from prior posts, this article intends to showcase the nuances of the adaptation process through practical examples. The focus is on how to tailor the C_Automaton class to suit your model. Examples include the 9-period exponential moving average, usage of RSI or IFR, and Moving Average crossover. Proceeding with the excursus, one can grasp several advanced concepts, such as how to add multiple indicators to the C_Automaton class.
Diving into details, the system utilizes the 9-period exponential moving average indicator based on the c...
Read more...
Reinforcing the essentials from prior posts, this article intends to showcase the nuances of the adaptation process through practical examples. The focus is on how to tailor the C_Automaton class to suit your model. Examples include the 9-period exponential moving average, usage of RSI or IFR, and Moving Average crossover. Proceeding with the excursus, one can grasp several advanced concepts, such as how to add multiple indicators to the C_Automaton class.
Diving into details, the system utilizes the 9-period exponential moving average indicator based on the c...
Read more...
π2β€1
A comprehensive guide to incorporating sound alerts into technical systems is now available. The process involves utilising wav files and storing them in the MQL5\Files\Sounds folder. Specific code has been provided along with a comprehensive explanation.
Further, the ready-to-use EA Utility file has been made available to ease the integration process. However, it's essential to note that some lines in the code are commented out due to limitations posed by the use of which restricts file uploads.
This technique represents a simple but effective way of improving system interaction to notify users of connection status changes. Incorporating sound alerts not only improves user experience but also contributes to efficient system operations. Implementing these presented steps can assist developers in introducing more responsive and interactive systems.
However, additional tweaks in the...
Read more...
Further, the ready-to-use EA Utility file has been made available to ease the integration process. However, it's essential to note that some lines in the code are commented out due to limitations posed by the use of which restricts file uploads.
This technique represents a simple but effective way of improving system interaction to notify users of connection status changes. Incorporating sound alerts not only improves user experience but also contributes to efficient system operations. Implementing these presented steps can assist developers in introducing more responsive and interactive systems.
However, additional tweaks in the...
Read more...
π₯3β€2
Understanding the foundational aspects of scripting is crucial for seasoned developers. Here's an insight into the Pine Script V4 function with application in calculating Pivotshigh and Pivotslow based on Pine Script. These functions are straightforward, enabling seamless copy-paste for conversion projects from the TradingView platform. An important point to highlight is the lagging nature of the pivots indicators as implemented in the TradingView platform. Knowledge sharing is key to innovation in our field, ensuring we constantly improve and advance.
Read more...
Read more...
π10
The article sheds light on the enhancement of the CArima class, which is used for implementing ARIMA models, making it more accessible for forecasting. Delving into the intricate aspects of ARIMA models such as the importance of input data, how error series values impact predictions, and the influence of non-contiguous lags, the paper stresses the need for keen observation and precise calculations.
Further, it incorporates the complexities that arise due to differencing and the challenges faced when predicting far into the future. It introduces the feature of saving and loading the ARIMA models in Mql5 program for later usage. The added BIC and AIC methods allow for model selection by balancing goodness of fit and complexity, preventing overfitting.
The paper concludes with the implementation of predictions and suggests best practices for building effective autoregressive models i...
Read more...
Further, it incorporates the complexities that arise due to differencing and the challenges faced when predicting far into the future. It introduces the feature of saving and loading the ARIMA models in Mql5 program for later usage. The added BIC and AIC methods allow for model selection by balancing goodness of fit and complexity, preventing overfitting.
The paper concludes with the implementation of predictions and suggests best practices for building effective autoregressive models i...
Read more...
π3π1
In an industry dominated by technological advancements, innovation becomes a necessity. Understanding this, the latest Expert Advisor software update now offers a symbiotic chart synchronization feature. This unique advantage enables every chart symbol to adapt to the symbol of the chart to which the EA is currently linked, providing unparalleled synchronization and unified workflow for users.
Erasing the hindrance of having to manually adjust each symbol according to the chart, the EA upgrade provides a more streamlined and efficient process. By eliminating scattered data and conflicting information, it eliminates confusion, promoting focus and increased efficiency.
Mastering complex charting mechanisms with this intuitive function offers an enhanced data management experience. This update not only fosters productivity but also bolsters the overall potential of the shared workspace...
Read more...
Erasing the hindrance of having to manually adjust each symbol according to the chart, the EA upgrade provides a more streamlined and efficient process. By eliminating scattered data and conflicting information, it eliminates confusion, promoting focus and increased efficiency.
Mastering complex charting mechanisms with this intuitive function offers an enhanced data management experience. This update not only fosters productivity but also bolsters the overall potential of the shared workspace...
Read more...
π2π1
The updated MT5 custom indicator, "wd.Multi_ClockPrice lite!" serves to supply a visual display of MT5 terminal server time and bid price on charts. Designed for continuous synchronization with PC time, it maintains accurate updates even during periods of MT5 going offline. The OnTimer() event function enables steady clock display, which is unaffected by tick prices.
A key feature of this indicator includes 'server clock & bid price' labels placement in user-specified Sub-Window. Users can place them on the main chart or sub-window and adjust label distances as required. For placements on main chart, '0' should be input in 'Sub-Window placement' properties. For placements in a Sub-Window input '1, 2, 3', etc. The attachment of the indicator βwd.Multi_SubWindowβ is necessary for this function.
Synchronization between MT5 terminal and server time display might necessitate occasional a...
Read more...
A key feature of this indicator includes 'server clock & bid price' labels placement in user-specified Sub-Window. Users can place them on the main chart or sub-window and adjust label distances as required. For placements on main chart, '0' should be input in 'Sub-Window placement' properties. For placements in a Sub-Window input '1, 2, 3', etc. The attachment of the indicator βwd.Multi_SubWindowβ is necessary for this function.
Synchronization between MT5 terminal and server time display might necessitate occasional a...
Read more...
π4β€2
Dive into the realm of MetaTrader with a focus on its compatibility with Python and R for constructing comprehensive algorithmic trading advisors. Using creative programming solutions, the limitations of individual packages can be overcome and even exploited for better monitoring and forecasting in your trades. Participation in this discussion assumes proficient knowledge of the R language and basic understanding of MQL5 programming. Be sure not to miss out on this wealth of information, perfect for honing your trading strategies. This walkthrough promises to meet advanced requirements with a seasoned approach followed by professionals in the field.
Read more...
Read more...
π3π2β€1
A deeper look into the dimensions of Neural Networks: An in-depth exploration of Restrictive Boltzmann Machines (RBMs). As simple as their structure may be, these networks are acclaimed for revealing hidden attributes and aspects in datasets.
RMBs use a two-layered approach comprising, typically, of a visible layer and a hidden layer, where every neuron in the visible layer connects to each neuron in the hidden layer β a method known as the positive phase.
Moreover, implementing the negative phase, RBMs strive to restore the input data to its initial state. An additional phase follows each cycle, adjusting the weights to bring the reconstructed output closer to the input data. The ultimate goal is to reach neuron weights that, when applied to input data, reveal intuitive neuron values in the hidden layer, also referred to as the probability distribution of the input data.
This e...
Read more...
RMBs use a two-layered approach comprising, typically, of a visible layer and a hidden layer, where every neuron in the visible layer connects to each neuron in the hidden layer β a method known as the positive phase.
Moreover, implementing the negative phase, RBMs strive to restore the input data to its initial state. An additional phase follows each cycle, adjusting the weights to bring the reconstructed output closer to the input data. The ultimate goal is to reach neuron weights that, when applied to input data, reveal intuitive neuron values in the hidden layer, also referred to as the probability distribution of the input data.
This e...
Read more...
π3π₯1
A review of oscillator indicators and their applications is being extended, providing a comprehensive guide on technical variables like input parameters, initialization, and deinitialization. Attention is placed on the oscillator category, examining variables, indicator handle creation, and data extraction.
The intricacies of these indicators are explained, including line state characterization (upward/downward direction & reversal, stop, undefined state) and its relative level. Concepts are paired with procedure, ensuring an understanding of their functions and ways to incorporate them in Expert Advisors (EAs).
The enumeration of line state provides a simple and effective tool to assess figure-shape patterns. The article then delves into the Average True Range indicator, a versatile tool featuring in many trading systems. The indicator's customization, initialization, and deinitial...
Read more...
The intricacies of these indicators are explained, including line state characterization (upward/downward direction & reversal, stop, undefined state) and its relative level. Concepts are paired with procedure, ensuring an understanding of their functions and ways to incorporate them in Expert Advisors (EAs).
The enumeration of line state provides a simple and effective tool to assess figure-shape patterns. The article then delves into the Average True Range indicator, a versatile tool featuring in many trading systems. The indicator's customization, initialization, and deinitial...
Read more...
π6π1
The core logic for initiating a trade is executed through a specific function. It calculates the opening price alongside take-profit and stop-loss levels by referring to symbol information and parameters given by the user. Primary details such as symbol, volume, deviation, order type, magic number, etc., are prepared in a trade request, more formally known as MqlTradeRequest.
A function called OrderSend is invoked to send this request and then obtain the result.
Another critical function to consider is the SetTypeFillingBySymbol function. This function is responsible for identifying the order fill type. It can be Fill or Kill, Immediate or Cancel, or Return, and the selection depends upon the policy of the symbol's filling.
The GetMinTradeLevel function has its significance as it calculates the minimum trading level. It keeps in mind the freeze level and symbol stops level in th...
Read more...
A function called OrderSend is invoked to send this request and then obtain the result.
Another critical function to consider is the SetTypeFillingBySymbol function. This function is responsible for identifying the order fill type. It can be Fill or Kill, Immediate or Cancel, or Return, and the selection depends upon the policy of the symbol's filling.
The GetMinTradeLevel function has its significance as it calculates the minimum trading level. It keeps in mind the freeze level and symbol stops level in th...
Read more...
π4π1
Upon execution, the system proceeds to produce an informative report concerning the trades active during the specific input time. This comprehensive data comes in valuable for monitoring trade progress and understanding market patterns more precisely. Tracking open trades at given times allows for a more efficient assessment of trade performances, providing strategic insights for real-time and future course of action.
Read more...
Read more...
π₯2
Uncover new potential in technical market tracking with the sophisticated SSH Multi-TF tool. This tool, based on the underlying SSH indicator, utilises moving average high and low prices to create two intersecting lines. The point of intersection between these lines is utilised as a buy or sell signal.
Not only does it offer the convenience of illustrating higher Time-Frames (TFs) within a lower one but it also prepares higher TF of this indicator in lower TFs, enhancing your market oversight capabilities. Furthermore, it provides the ease of selecting a higher TF from an embedded panel without the need to access the indicator input.
It's worth noting, when changing time frames, an automatic adjustment occurs in the sequence of time-frame buttons, eliminating any need for lower time frame button selections.
Additionally, the code furnishes a panel, readily adaptable for any indica...
Read more...
Not only does it offer the convenience of illustrating higher Time-Frames (TFs) within a lower one but it also prepares higher TF of this indicator in lower TFs, enhancing your market oversight capabilities. Furthermore, it provides the ease of selecting a higher TF from an embedded panel without the need to access the indicator input.
It's worth noting, when changing time frames, an automatic adjustment occurs in the sequence of time-frame buttons, eliminating any need for lower time frame button selections.
Additionally, the code furnishes a panel, readily adaptable for any indica...
Read more...
β€3π1
The realm of machine learning is often steeped in trade-offs that may compromise one performance metric over another. As more complex models continue to evolve, understanding and debugging them proves to be a formidable task. This article seeks to clarify important elements such as crucial features, single feature impact, and collective feature influence, which can guide supervised model behaviour and reduce potential malfunction risks.
Debugging bears great significance, enabling developers to carefully track elements that may disrupt the harmony of real-world models. Furthermore, an understanding of feature engineering can heighten forecasting accuracy, leading the way through challenging terrains and facilitating the effectiveness of newly introduced features. An affinity with historical data can drive future data collection efforts, offering new data types to improve model behav...
Read more...
Debugging bears great significance, enabling developers to carefully track elements that may disrupt the harmony of real-world models. Furthermore, an understanding of feature engineering can heighten forecasting accuracy, leading the way through challenging terrains and facilitating the effectiveness of newly introduced features. An affinity with historical data can drive future data collection efforts, offering new data types to improve model behav...
Read more...
π3β€1π1
Progressing in our journey of creating a Modified Grid-Hedge EA, the focus turns to the classic grid strategy. Lay aside the optimization of the classic hedge strategy for a moment and concentrate on automating the grid strategy using an Expert Advisor (EA).
This strategy commences with a buy position at a specific price and then scans for price increments or drops. Profit turns real when the take-profit level is hit. However, when the price lessens, the classic grid strategy provides a cover to ensure profits.
The price's decrease of a set quantity prompts another buy order, located at the initial price minus the set amount. Here, the lot size gets inflated, applying a lot size multiplier. These actions spark off two possibilities: an upward price movement that generates gains or a downward slide that calls for repetition of the process.
The golden moment arrives when the net pro...
Read more...
This strategy commences with a buy position at a specific price and then scans for price increments or drops. Profit turns real when the take-profit level is hit. However, when the price lessens, the classic grid strategy provides a cover to ensure profits.
The price's decrease of a set quantity prompts another buy order, located at the initial price minus the set amount. Here, the lot size gets inflated, applying a lot size multiplier. These actions spark off two possibilities: an upward price movement that generates gains or a downward slide that calls for repetition of the process.
The golden moment arrives when the net pro...
Read more...
β€3
Insightful findings on expert initialization functions can significantly aid in the development process. The first step focuses on providing the input parameter, which is essential in framing a model or algorithm. The second step focuses on the crucial role of local variables initialization. This involves setting the initial value for a variable, critical for any program to function correctly.
Main code development, an elemental stage comprising the initialization of expert function and tick function, further enhances the process. Precise calculation of signal to send orders underpins successful transaction execution. The importance of calculating the volume cannot be overstressed, as it reflects the total number of shares or contracts traded within a specified timeframe adding a dynamic perspective to the analysis.
Another remarkable feature is the 'trailing Stop' function. The S...
Read more...
Main code development, an elemental stage comprising the initialization of expert function and tick function, further enhances the process. Precise calculation of signal to send orders underpins successful transaction execution. The importance of calculating the volume cannot be overstressed, as it reflects the total number of shares or contracts traded within a specified timeframe adding a dynamic perspective to the analysis.
Another remarkable feature is the 'trailing Stop' function. The S...
Read more...
π5