MQL5 Algo Trading
393K subscribers
2.59K photos
2.59K links
The best publications of the largest community of algotraders.

Subscribe to stay up-to-date with modern technologies and trading programs development.
Download Telegram
Understanding the application of ONNX (Open Neural Network Exchange) and how it aligns with different machine learning models and frameworks is crucial for developers. The ONNX format does have its limitations. For instance, while it accepts various input data types, it always yields the tensor(float) type as output. Model conversion or use of different data types can lead to accuracy losses - the clang in the gear often falls on the converter. Though some models overcome these limitations, ensuring full portability of ONNX models and allowing double precision work without accuracy loss.

Scikit-learn, a popular library for machine learning in Python, offers numerous algorithms and a user-friendly interface. This article attempts to understand the use of Scikit-learn's regression models, their parameters' computation with double precision for the test data set, and their conversion to...

Read more...
πŸ‘3
Official documentation provides illustrative examples for all code and functions, offering a valuable resource for quick progress, whether that be for the beginner coder or the seasoned developer in need of a rudimentary template. In pursuit of a simplified, reusable version of the code, any comments or feedback from industry peers would be valued.

Several examples of optimized code for beginner programmers, modified from the MQL5 iFunctions, are on offer. A range of functions like ADX, Alligator, AMA - Adaptive Moving Average, ATR - Average True Range, Bands Bollinger, Ichimoku, MACDr, Momentum, Moving averages, RSI, and Stochastic have been simplified.

In addition, there are also advanced codes that demonstrate indicator calculations without the use of MQL5 iFunctions, namely AO - Awesome Oscillator and RSI for beginners. These examples serve to make coding more tangible and com...

Read more...
πŸ‘3
Recently, several traders brought up difficulties in using the Multi-Currency Expert Advisor (EA), particularly integrating trading time zones and accommodating broker symbols with prefixes or suffixes. To address these issues, enhancements have been implemented in the EA, including an automatic detection function for symbol names, enhancements for trading time zones, and new feature for trading specific currency pairs.

As previously noted, this Multi-Currency EA operates on 30 symbol pairs, 28 forex pairs, and 2 metal pairs. Issues arise with broker symbols that include prefixes or suffixes, a detail which single-currency EAs sidestep. For the convenience of many coders and traders, an automatic handling function has been added to tackle these special symbol names.

Please note however, this function will not work on custom symbols and indexes in MT5, it only functions on forex and ...

Read more...
πŸ‘4πŸ‘€1
Capturing market movements using sophisticated algorithms, the Multi-Colored Trend Indicator offers a unique approach to trend analysis. The utilitarian model leverages dual moving averages to gauge trend direction, offering an intuitive color-marking system. Uptrends appear green, downtrends correspondingly, red.

Simple in its application, yet potent in its delivery, the model ensures ease of comprehension across varying user strategies, amplifying its universal appeal. Solely contrived for educational enhancement, the indicator will provide a foundational grasp of how multi-colored indicators function in real-world conditions. Navigating data intuitively, translates complex investment metrics into visual simplicity.

Utilize this model to bolster current strategies and streamline future decisions, with the understanding that knowledge gain is perpetually expansive. Harnessing the ...

Read more...
πŸ‘3❀1
The intertwining of data analysis from the Awesome Oscillator and the ensuing course of the candles compared to the preceding range unveils insightful perspectives within programming and IT. It exemplifies the synchronous power of information evaluation in making cogent decisions during task execution processes.

These symbiotic relationships between various factors are what seasoned developers continually study, putting theories into practice whilst fine-tuning outputs. Analyzing patterns, drawing conclusions, and leveraging opportunities for growth and advancement is precisely the essence of our field.

By synchronizing data from different channels, it's possible to achieve more accurate and reliable outcomes. Developers and IT specialists alike should remain attentive to such cogent combinations for better results. All in all, maintaining a flexible approach in drawing conclusions...

Read more...
πŸ‘9
The previous article explored initiating custom events and their impact on indicator-service interaction. The paramount advice is to record and preserve each traded asset's value. Discrepancies occur when comparing bar data with traded ticks' data, causing possible confusion among those less familiar with market mechanics. The reality can be distorted by factors like earnings announcements, asset splits or grouping, bond issuance, or asset expiration, altering the current value of 1-minute bars. Henceforth, the adaptation of a replay/simulation system that solely uses traded tick files.

In terms of code development, the configuration file used during replay/simulation bears critical virtue. The replay and simulation service has introduced flexible functionality for the user to incorporate comments within the file. Yet the dilemma of using tick files as preview bars without the system...

Read more...
πŸ‘1
Stay informed with recent developments in technical analysis tools. The latest indicator in discussion is designed to systemically identify and highlight the previous highs and lows of a given timeframe. By using this, analysts can keep track of vital information such as the highest and lowest prices during the prior period and hence increase overall market understanding and strategy precision.

The default setting is designed to cater to those looking to monitor daily price changes, however, it offers ample flexibility. By fine-tuning the period in the inputs, users can customize it to track on an hourly basis or even in intervals as short as 30 minutes.

In an exciting update to the tool, along with prices, the indicator is now also capable of presenting the open and close values for the preceding candle of the chosen period. A valuable addition for those who closely monitor candle...

Read more...
πŸ‘3
Grasp a broader understanding of a proficient Multi-Currency Expert Advisor. This mechanism trades on over 28 currency pairs and 2 metal pairs starting with just one chart symbol. Backed up by the robust capabilities of MQL5, the EA signifies an efficient tool for programmers.

Prominent features include two signal indicators for enhanced precision: 1) the Average Directional Movement (ADX) period 7, acting as a principal signal; and 2) Parabolic SAR indicator, serving as the confirmation signal for trend direction.

The EA's efficient design offers trading management options to tailor according to the trader's preference. These options range from the ability to select traditional stop loss orders, to trailing stop loss/take profit. Additionally, the EA boasts an easy-to-use button panel for manual order management and chart modification.

Tests on the MetaTrader 5 Strategy tester sh...

Read more...
❀2πŸ‘1
In the realm of technical development, a useful function exists. This function translates the (x, y) pixel value into the corresponding price visible on the Y-axis. The function is activated via an OnChartEvent click interaction.

The above method makes it simpler to map pixel values to actual values on the chart. It gives the developers the power to convert pixel values into real price values using a single click. The ease and precision of this method enable developers to create more accurate and faster applications.

It is essential to understand that this function opens up a new perspective in analyzing and computing data, moving a step forward in the complex world of technology. This innovation gives developers a new tool to work with while creating applications that require charting capabilities.

In conclusion, the realm of technical development continues to evolve, bringing for...

Read more...
❀4πŸ‘3
In the latest update for the MetaTrader 5 trading terminal, a new order filling policy - Passive/Book or Cancel - has been implemented, and MQL5 has added new runtime error codes. In this post, we'll discuss how these additions will be integrated into the library.

Since the update, the library's example files and articles have ceased to compile due to inaccessibility of private methods from derived classes in the CTrading class. To solve this, private methods will be moved into a protected section, making them available in the inherited class.

This update also introduces descriptions of the new order execution policy and runtime error codes into the library's arrays of text messages. Note that newly implemented error codes in MQL5, from 4020 to 4025, will be added to the runtime error messages array.

The CMessage class is now capable of displaying library messages stored in mess...

Read more...
πŸ‘2❀1
Introducing Multi_BreakEven, a refined script file intended for setting multiple entry positions to breakeven. This functionality enhances trading strategies by allowing the positioning of trades at breakeven when the market moves in a favorable direction.

A crucial part of any trading strategy is the preservation of the initial investment and Multi_BreakEven facilitates this by ensuring trades either meet their profit target or exit at the breakeven point. The option of employing the Pips method, set by default at 100 points for a 5-digit broker, provides a straightforward approach to attaining breakeven.

Alternatively, a trader can opt for the target price method, another technique for achieving breakeven. It's essential to note the exclusivity of each method. Namely, the activation of the pips method makes the target price method inactive, and the same rule applies in reverse. Th...

Read more...
πŸ‘1
Introducing the feature Multi_BreakEven on our platform: a tool that adds versatility to trading strategies by enabling multiple entry positions to reach breakeven when a trade turns in their favor. This functionality is designed to guard investments by providing an either/or scenario - either the trade meets the profit goal, or the system exits at the breakeven point.

Two methodologies are available with this component: the 'Pips' method, which is set as a default preference at 100 points for a 5-digit broker, and the 'Target Price' method. Both methods are distinct and using one results in the other becoming inactive. The selection of either the Pips or Target Price method is dependent on the trader's strategy, furnishing flexibility for implementing calculated trading decisions.

Remember, careful decision-making enhances the potential for profitable trading. Be informed, remain p...

Read more...
πŸ‘3
The transformation of traded tickets into bars has been a key aspect of the system insofar. This involved converting traded tickets into 1-minute bars on the MetaTrader 5 platform, using real data. However, the task at hand is more complex - bar conversion into tickets for simulation purposes.

Bar conversion may sound straightforward, but it requires a deep understanding of how tickets behave for a 1-minute bar. To achieve a real-life-like visualization, it’s necessary to create a movement that mirrors the real one as closely as possible. The process involves creating an 'inner zigzag' with a minimum of 9 movements, always starting at the bar opening and ending at the close.

The system is set to handle just the replay/simulation and does not have to respect the length of a 1-minute bar, a strategy employed by MetaTrader 5 for its tester. The objective here is to treat 1-minute bar...

Read more...
πŸ‘3
The latest indicator, a derivative of the Heiken Ashi, sees its origin in the MetaQuotes publication. Crafted to enhance precision in statistical analytics, this tool works to provide insightful data and detailed pattern detection. With the Heiken Ashi's robust foundation, the new indicator aims to offer a more advantageous analysis environment for developers. Explore the intricacies of the data universe with the new indicator from MetaQuotes. Crucial parameters help to ensure enhanced accuracy in market trends and behaviour analysis. Experience superior data perception with this cutting-edge technological tool.

Read more...
πŸ‘1
Introducing the "wd.Range_DailyAvg.mq5", a new MT5 custom indicator developed with inspiration from MT4's 'TSR_Ranges.mq4' by Ogeimais. This powerful tool employs a 20-day historical spectrum of upper and lower prices, aiming to delineate the Average Daily Range (ADR) with precision.

The indicator's objective is twofold: projecting potential monetary conduits for the day based on past price tangents and assisting traders in pinpointing potential profit opportunities. The workings of the indicator are bifurcated into a series of input parameters.

The first control permits the display of Average Range Information, specifically in the upper left chart region. The second control users are granted is over the color symbolizing the projected price region for the day. Moreover, the rectangle outline representing this area can be custom-styled by users in terms of width and style.

Another ...

Read more...
πŸ‘4
Support Vector Machine algorithms are a potent option for technical tasks such as linear or nonlinear classification, regression, and even outlier detection. SVMs distinguish themselves by deploying sophisticated mathematical operations, diverging from logistic regression or Bayesian classification techniques which typically adopt simpler models. The objective? An optimal hyperplane that distinguishes data in an N-dimensional space, ideal for classification tasks.

The SVM, in essence, seeks to discover a hyperplane that maintains the maximum margin and minimizes classification error. The hyperplane's basic properties include its dimensionality, equation, margin, separation capabilities, and classification utility. Once the hyperplane is identified, it serves as the line of demarcation, accurately classifying new data points.

Dive deeper into SVM and find two essential types: Linear ...

Read more...
πŸ‘2
In the pursuit for an even more authentic market simulator, leveraging random number generation can enhance unpredictability, hence rendering the simulation more intriguing. By following given coding tips, the generation of pseudorandom numbers is possible with minimal complexity. The inception of this is in tweaking the pivot point, which is still created the same, however, the changes will make it unclear whether the bar is ascending due to an already reached minimum or descending due to an already reached maximum.

Moreover, a change in quantity of segments between the opening and closing of the bar is achievable with a small piece of code, turning usual 9 segments into 11 segments. Although it appears simple, this alteration greatly diversifies the complexity we introduce in forming a bar. One should tacitly note that the definition should not be set to zero lest a division by zer...

Read more...
πŸ‘1
In elaborate programming procedures, numeric values often need to be input into an array. Today, we take a look at how a string array can be employed to streamline this process. The focus will be on a 2-dimensional array, yet the measures shared can be extended to an array of any dimension. It offers an elegant solution for managing numeric values and potentially simplifies more complex coding structures. Join the discussion on array manipulation and gain some new insights to enhance the development process.

Read more...
πŸ™4πŸ‘2❀1
A cohesive analysis has been developed covering the interpreting price dynamics and their direct application in trading. This analysis extrapolates a new engineering discipline and outlines its utility in deriving practical conclusions from observed price dynamics. The engineering approaches and algorithms utilized herein are aimed at providing sustainable profits.

Focusing on factors such as the moving average change rate, the normalized price speed, and the probabilities of upward and downward price movement, the analysis draws a comprehensive examination of how price dynamics are calculated and manipulated for trading.

Insights provided aim for the creation of a solid foundation for understanding the intrinsic mechanics of price dynamics and the determination of optimal take profit and stop loss values. The outlined method assists in the prediction of price probability distribut...

Read more...
πŸ‘4
Presenting the 'wd.Range_MACD' indicator, sourced predominantly from the original in-built 'MACD.mq5' in the MT5 terminal, with its copyright belonging to MetaQuotes Ltd. This distinctive tool calculates both the range difference between 'Signal lines and MACD' and the range of 'the last two MACD bars.' Offering additional array of information, it can accurately measure price cross-points, resistance/support levels, and trend transitions.

A quick glance into its mechanism: the direction of the 'MACD bar' (either upward or downward) indicates the trend of the current timeframe. A no difference scenario in the current 'MACD bar' compared to the prior one delineates a new resistance/support level. For example, a difference in range of 'Signal-MACD' of 12 pips and a range of the 'last two MACD bars' of 0 pips imply a resistance/support level based on the 'last two MACD bars' put at a pr...

Read more...
πŸ‘5
Analysis of the healthcare ETF (Exchange Traded Fund) XLV reveals varying factors possibly influencing its momentum and direction. A detailed scrutiny of related datasets, utilized via a multi-layer perceptron model, intends to predict some potential dynamics in the upcoming quarters.

Two noteworthy factors contributing to recent XLV performance include the conclusion of the COVID-19 health crisis, and the Federal Reserve's increasingly bearish stance, both inducing a sell-off pressure across market sectors. As these factors waned, a resulting impact on the healthcare sector and in turn XLV's performance was evident.

Diverse datasets are considered, including U.S. government websites, government agency websites, and third-party research data. Timeframes vary from daily to annual and weekly based on the source.

Examples of data sets under consideration include historical XLV perfo...

Read more...
❀3πŸ‘2