Working on a Sunday isn't rare in the realm of software development. The highlight of todayβs work is the 'Awesome Oscillator' that's now available in the open-source codebase, in addition to the 'Adaptive Moving Average' and the 'Alligator'. This new embodiment of the iAO function provides better flexibility by offering increased adjustment parameters on moving averages.
Breaking the barriers of a single-function tool, the revamped iAO function now takes into account periods, methods, and application. The aim is to present you with a code that is simple, clear, and effectively embodies basic concepts. The additional bonus is its potential to be a perfect starting point for customizing it further based on individual requirements.
Feel free to reach out for detailed understanding or for suggesting ideas for free development. There's also a collection of free indicator codes designed ...
Read More
Breaking the barriers of a single-function tool, the revamped iAO function now takes into account periods, methods, and application. The aim is to present you with a code that is simple, clear, and effectively embodies basic concepts. The additional bonus is its potential to be a perfect starting point for customizing it further based on individual requirements.
Feel free to reach out for detailed understanding or for suggesting ideas for free development. There's also a collection of free indicator codes designed ...
Read More
π5
Creating profitable automated trading systems requires careful consideration and analysis. Even if a strategy appears profitable during testing, there are still questions about its performance in live trading and its potential returns compared to other investment opportunities. In this article, we will explore statistical techniques to estimate the future performance of automated trading systems using out-of-sample tests.
When testing a trading system, we gather various performance metrics to assess its profit potential. However, relying solely on intuition may not be enough, as a strategy that performs well during testing may not generate stellar returns in live trading. Statistical methods can provide a better understanding of whether the observed performance will continue and how it may vary. These methods are not meant to provide accurate estimations, but rather to identify strat...
Read More
When testing a trading system, we gather various performance metrics to assess its profit potential. However, relying solely on intuition may not be enough, as a strategy that performs well during testing may not generate stellar returns in live trading. Statistical methods can provide a better understanding of whether the observed performance will continue and how it may vary. These methods are not meant to provide accurate estimations, but rather to identify strat...
Read More
π3
Key Update: Version 2 boasts added settings for personalized use, including new methods to compute Lot size and the ability to enable various trailing stop strategies. This has been incorporated to tailor-fit your account and trading strategies.
The version is a breakthrough in the Donchian Channel Strategy breakout EA, delivering its best enactment at H1. A complete explanation of the strategy and input parameters are comprehensively relayed in the associated video.
The optimized utility extends over multiple pairs. It is recommended to:
1. Execute optimizations on as many pairs as feasible within the past 6 months.
2. Reset the optimizations on a monthly basis.
3. Attach all profitable sets to the charts to optimize profits and distribute risk.
Currently, these sets are operating on an account balance of 500β¬. The optimization process follows the approach documented in the linke...
Read More
The version is a breakthrough in the Donchian Channel Strategy breakout EA, delivering its best enactment at H1. A complete explanation of the strategy and input parameters are comprehensively relayed in the associated video.
The optimized utility extends over multiple pairs. It is recommended to:
1. Execute optimizations on as many pairs as feasible within the past 6 months.
2. Reset the optimizations on a monthly basis.
3. Attach all profitable sets to the charts to optimize profits and distribute risk.
Currently, these sets are operating on an account balance of 500β¬. The optimization process follows the approach documented in the linke...
Read More
π4
The task of predicting a real value from an unlabeled example is known as regression. For instance, estimating the value of a diamond based on its characteristics such as size, weight, color, clarity, etc. The accuracy of regression model predictions is assessed using regression metrics. Not to be confused with similar loss functions, these metrics are semantically different. They usually depend not only on the model parameters but also on the predicted values.
MQL5 language features several key metrics such as Mean Absolute Error (MAE), Mean Squared Error (MSE), Root Mean Squared Error (RMSE), R-squared (R2), Mean Absolute Percentage Error (MAPE), Mean Squared Percentage Error (MSPE) and Root Mean Squared Logarithmic Error (RMSLE). More are expected to be introduced.
To simplify, MAE measures the deviation of the predicted number from the actual number while RMSE further emphasizes...
Read More
MQL5 language features several key metrics such as Mean Absolute Error (MAE), Mean Squared Error (MSE), Root Mean Squared Error (RMSE), R-squared (R2), Mean Absolute Percentage Error (MAPE), Mean Squared Percentage Error (MSPE) and Root Mean Squared Logarithmic Error (RMSLE). More are expected to be introduced.
To simplify, MAE measures the deviation of the predicted number from the actual number while RMSE further emphasizes...
Read More
π3
Profoundly regarded among technical traders, the Marubozo, stemming from the Japanese term for 'close-cropped', denotes a notable candlestick construction in charting. It features an elongated body with an absence of shadows, signifying a stern trading period with dramatic price variations. The core principle behind these intriguing configurations revolves around the comparison of opening and closing prices within an isolated trading day.
Candlestick charts, vital to the realm of technical analysts, provide insightful market clues hidden within the price movements. These diagrams envisage potential market trends, serving as a key that unlocks investor sentiment and market dynamics.
Grasping the concept of Marubozo could offer significant advantage to traders, enhancing their decision-making capacity in this high-stakes financial play. It is, therefore, critical to understand these c...
Read More
Candlestick charts, vital to the realm of technical analysts, provide insightful market clues hidden within the price movements. These diagrams envisage potential market trends, serving as a key that unlocks investor sentiment and market dynamics.
Grasping the concept of Marubozo could offer significant advantage to traders, enhancing their decision-making capacity in this high-stakes financial play. It is, therefore, critical to understand these c...
Read More
π5β€1π1
Utilizing trading robots or signal subscriptions often ultimately leads to the demand for a 24/7 hosting server. The recommendation here is the use of MetaTrader VPS due to various factors. Notably, subscription management becomes a breeze through an MQL5.community account. This allows for a seamless migration of the platform to the cloud.
Offering you a selection of the closest server and an approximation of the reduced delay incomparable to your current connection, the MetaTrader VPS offers optimal trading execution. This includes minimization of slippage and reduced probability of a requote.
It's important to note that before a payment plan is chosen, it's beneficial to check if your broker provides MetaTrader 5 virtual hosting free of cost. If your broker participates in the recently introduced Sponsored VPS program, virtual hosting might be provided as a bonus with some conditi...
Read More
Offering you a selection of the closest server and an approximation of the reduced delay incomparable to your current connection, the MetaTrader VPS offers optimal trading execution. This includes minimization of slippage and reduced probability of a requote.
It's important to note that before a payment plan is chosen, it's beneficial to check if your broker provides MetaTrader 5 virtual hosting free of cost. If your broker participates in the recently introduced Sponsored VPS program, virtual hosting might be provided as a bonus with some conditi...
Read More
π5
The power and reach of Artificial Intelligence (AI) have undeniably permeated various aspects of daily life, spanning from finance and arts to education and beyond. A vital new development is the ability to export and import AI models in Open Neural Network Exchange (ONNX) format. This feature notably optimizes the development process, significantly saving time and resources when integrating AI into disparate language ecosystems.
The growing support for ONNX in MQL5 presents an exciting possibility. It allows for the creation and implementation of AI models in popular programming languages like Python, followed by their conversion into ONNX format for use within MQL5 programs.
ONNX streamlines the machine learning process, allowing models trained in a particular learning framework to be ported to alternate frameworks or platforms with minimal modifications. This functionality dramat...
Read More
The growing support for ONNX in MQL5 presents an exciting possibility. It allows for the creation and implementation of AI models in popular programming languages like Python, followed by their conversion into ONNX format for use within MQL5 programs.
ONNX streamlines the machine learning process, allowing models trained in a particular learning framework to be ported to alternate frameworks or platforms with minimal modifications. This functionality dramat...
Read More
π6β€1
In programming, logging neatly organized, formatted information can grant higher efficiency. StringFormat() function can be quite handy in such cases. It helps to format data, displaying it in the terminal journal and further using it in the program.
Creating templates for displaying symbol properties in the journal can involve two functions. The first one formats the string into the form required for printing, and the second one prints the string received by the first into the journal. This approach ensures uniform formatting.
Various properties have been explained in detail, ranging from data latency, economic sector, price for building bars, spread, Bid price, to Ask price. The focus has been on creating two functions for each property for a comprehensive understanding. Various examples have been included for every symbol property to ensure clear understanding for the user. Sub...
Read More
Creating templates for displaying symbol properties in the journal can involve two functions. The first one formats the string into the form required for printing, and the second one prints the string received by the first into the journal. This approach ensures uniform formatting.
Various properties have been explained in detail, ranging from data latency, economic sector, price for building bars, spread, Bid price, to Ask price. The focus has been on creating two functions for each property for a comprehensive understanding. Various examples have been included for every symbol property to ensure clear understanding for the user. Sub...
Read More
π4
Understanding the official documentation of code and functions can be daunting, therefore, there is now an initiative to simplify these codes for better comprehension and reusability. No matter the level of coding expertise, from beginners to those who want to evolve quickly, these simplified versions should be of assistance.
Opinions are sought on the user experience of the basic codes provided compared to those provided in the official documentation. Engagement with these codes, through comments and rating, is encouraged to enhance their visibility.
There is a host of codes available, specifically geared towards beginners, in the Mql5 iFunctions. These include ADX, Alligator, AMA - Adaptive Moving Average, ATR - Average True Range, Bands Bollinger, Ichimoku, MACDr, Momentum, Moving Average, RSI, and Stochastic.
For those looking for a bit more advancement in their coding, two ...
Read More
Opinions are sought on the user experience of the basic codes provided compared to those provided in the official documentation. Engagement with these codes, through comments and rating, is encouraged to enhance their visibility.
There is a host of codes available, specifically geared towards beginners, in the Mql5 iFunctions. These include ADX, Alligator, AMA - Adaptive Moving Average, ATR - Average True Range, Bands Bollinger, Ichimoku, MACDr, Momentum, Moving Average, RSI, and Stochastic.
For those looking for a bit more advancement in their coding, two ...
Read More
π5
Discrete Hartley Transform (DHT), first proposed in 1942 by Ralph Hartley, had a discrete version introduced in 1983 by Ronald Bracewell. DHT is used in signal analysis and processing of discrete time series - it converts signals from the time domain to the frequency domain, using real numbers only. This makes its application results more visually comprehensible and convenient for practical implementation.
This transformative technique allows the evaluation of the influence of specific harmonic in the original signal. Moreover, the Inverse Hartley transform aids in shifting from the frequency domain back to the time realm.
The practical usability of DHT is exemplified by taking the spectrum of Open prices as a signal, applying the inverse Hartley transform to an altered signal, or using it for signal smoothing. Furthermore, spectrum processing can involve nullifying or attenuating...
Read More
This transformative technique allows the evaluation of the influence of specific harmonic in the original signal. Moreover, the Inverse Hartley transform aids in shifting from the frequency domain back to the time realm.
The practical usability of DHT is exemplified by taking the spectrum of Open prices as a signal, applying the inverse Hartley transform to an altered signal, or using it for signal smoothing. Furthermore, spectrum processing can involve nullifying or attenuating...
Read More
π5
Examine the practical details of economically deploying large language models (LLMs) locally, fine-tuned to specific needs. This discourse covers essential aspects, including hardware and software configurations, to build a basic deployment environment for LLMs. Grasp the requirements for deploying these fundamental models that apply deep learning to natural language processing and natural language generation tasks.
Understand why LLMs are a preferred choice for algorithmic trading due to their strong logical comprehension and reasoning capabilities. The article also discusses the benefits of local deployments, such as data protection, optimized performance, personalized data fine-tuning, and real-time response.
Considerations for hardware configuration include CPU, GPU, memory, and storage devices that ensure efficient model performance. The software environment configuration reve...
Read More
Understand why LLMs are a preferred choice for algorithmic trading due to their strong logical comprehension and reasoning capabilities. The article also discusses the benefits of local deployments, such as data protection, optimized performance, personalized data fine-tuning, and real-time response.
Considerations for hardware configuration include CPU, GPU, memory, and storage devices that ensure efficient model performance. The software environment configuration reve...
Read More
π7
Lessons from an experienced developer:
Achieving efficient programming in financial markets goes beyond the elementary mastery of codes - it's about getting the full grasp of the essence of time. With the MQL5 (MetaQuotes Language 5), significant strides in handling date and time in financial trading has been actualized.
This knowledge is a weapon for both traders and developers, and today, the focus would be on highlighting the comprehensive scope of this important subject. Key topics include: datetime type, MqlDateTime structure, OnTimer event, and potential applications such as NewBar, Time Filter, and tradeAtTime.
The datetime variable type, fundamental to MQL5, helps comprehend Unix time i.e., seconds elapsed since January 1, 1970. From comparisons and manipulations to conversions, a deep understanding of datetime opens up limitless possibilities in the trading arena.
Ensui...
Read More
Achieving efficient programming in financial markets goes beyond the elementary mastery of codes - it's about getting the full grasp of the essence of time. With the MQL5 (MetaQuotes Language 5), significant strides in handling date and time in financial trading has been actualized.
This knowledge is a weapon for both traders and developers, and today, the focus would be on highlighting the comprehensive scope of this important subject. Key topics include: datetime type, MqlDateTime structure, OnTimer event, and potential applications such as NewBar, Time Filter, and tradeAtTime.
The datetime variable type, fundamental to MQL5, helps comprehend Unix time i.e., seconds elapsed since January 1, 1970. From comparisons and manipulations to conversions, a deep understanding of datetime opens up limitless possibilities in the trading arena.
Ensui...
Read More
π4π3β€1
Delving into the complex world of coding can be demanding, especially for beginners. For those seeking examples of codes and functions, they can be found within the official documentation. Simplified versions of codes have been crafted for ease of use and rapid progression - crucial tools for beginners and seasoned programmers looking to refine their skills.
Educational codes provided cover a wide variety of topics, ranging from the basics to more advanced concepts. For instance, beginners can learn about the codes of Adaptive Moving Average or Average True Range. This knowledge base also includes topics like Bands Bollinger, Ichimoku, and Momentum. Advanced users can further their understanding with codes illustrating calculations for specific indicators without using the Mql5 iFunction.
The aim is efficient reusability and a learning journey that is as smooth as possible. Program...
Read More
Educational codes provided cover a wide variety of topics, ranging from the basics to more advanced concepts. For instance, beginners can learn about the codes of Adaptive Moving Average or Average True Range. This knowledge base also includes topics like Bands Bollinger, Ichimoku, and Momentum. Advanced users can further their understanding with codes illustrating calculations for specific indicators without using the Mql5 iFunction.
The aim is efficient reusability and a learning journey that is as smooth as possible. Program...
Read More
π6π€1
Recently, attention has turned towards the potential involvement of category theory & natural transformations in the Generative Pretrained Transformer (GPT) algorithms deployed by Open AI, particularly chatGPT. The speculation stems from the 'transform' in transformer neural networks, which have demonstrated impressive capabilities in tasks such as language translations.
The Transformer model, as presented in 'Attention Is All You Need,β proposed Self-Attention as a revolutionary approach. It's important to note that the AI platforms currently in use owe a significant portion of their genesis to this development.
While the exact algorithm used by Open AI remains undisclosed, the understanding is that it employs Word-Embedding, Positional Encoding, Self-Attention, and a Feed-Forward network. Concerning language translation, which is crucial considering most input in chatGPT is te...
Read more...
The Transformer model, as presented in 'Attention Is All You Need,β proposed Self-Attention as a revolutionary approach. It's important to note that the AI platforms currently in use owe a significant portion of their genesis to this development.
While the exact algorithm used by Open AI remains undisclosed, the understanding is that it employs Word-Embedding, Positional Encoding, Self-Attention, and a Feed-Forward network. Concerning language translation, which is crucial considering most input in chatGPT is te...
Read more...
π2
Get acquainted with the winning strategy Expert Advisor (EA) which is grounded on the Super Scalper EMAs indicator. This algorithmic trading tool offers maximum profit potential with minimal risk involved. Its robust design ensures that the strategies are executed with precision and speed, leaving little to chance during operational hours. Take the guesswork out of intensive market speculation and exercise a high level of control over trading activities. Ideal for seasoned traders and beginners alike, this EA paves the way for more efficient, streamlined trading processes.
Moreover, this EA is equipped with mechanisms that minimize exposure to unanticipated market fluctuations. The unique intersection of low risk, high-profit promise might seem elusive in the volatile realms of Forex trading, but with this EA - gaining a competitive edge is anything but out of reach. Balance risk an...
Read more...
Moreover, this EA is equipped with mechanisms that minimize exposure to unanticipated market fluctuations. The unique intersection of low risk, high-profit promise might seem elusive in the volatile realms of Forex trading, but with this EA - gaining a competitive edge is anything but out of reach. Balance risk an...
Read more...
π3π2
In a recent exploration of MQTT, a versatile pub/sub messaging protocol, it was discovered that MQTT is beneficial across various industries where an agnostic message-sharing protocol is needed. The protocol also proved useful in the context of trading applications.
Upon embarking on the challenge of integrating a native MQL5 client for MQTT into the code base and utilizing Mosquitto open-source MQTT broker running on WSL, some initial hurdles arose. An attempt to connect with a local Mosquitto broker received an immediate reset due to Protocol Error.
However, following a Test-Driven Development approach, a connect packet builder was constructed considering various metadata, which cleared this error. This method of development, which entails writing a test prior to developing the code, can be beneficial for aligning with project requirements and setting clear development goals.
...
Read more...
Upon embarking on the challenge of integrating a native MQL5 client for MQTT into the code base and utilizing Mosquitto open-source MQTT broker running on WSL, some initial hurdles arose. An attempt to connect with a local Mosquitto broker received an immediate reset due to Protocol Error.
However, following a Test-Driven Development approach, a connect packet builder was constructed considering various metadata, which cleared this error. This method of development, which entails writing a test prior to developing the code, can be beneficial for aligning with project requirements and setting clear development goals.
...
Read more...
π2
In order to enhance comprehension and make the best use of the submitted codes, certain guidelines need to be adhered to. Recognising the underlying principles upon which the code is built and interpreting the indications is vital for precise understanding.
If submitting an Expert Advisor, it would be beneficial to mention a suitable symbol and timeframe. Should the submission be an include file, its purpose needs to be articulated, such as its use in trailing, or calculating the size of a position to be opened.
Images incorporated must be of a small size, preferably not exceeding 750x500 pixels. Charts with indicators or graphical objects should follow a black and white color scheme, allowing easy printing from screen.
Naming the attached code using Latin letters and in English language is essential for uniform understanding. For instance, research.mq5 is preferable over issledo...
Read more...
If submitting an Expert Advisor, it would be beneficial to mention a suitable symbol and timeframe. Should the submission be an include file, its purpose needs to be articulated, such as its use in trailing, or calculating the size of a position to be opened.
Images incorporated must be of a small size, preferably not exceeding 750x500 pixels. Charts with indicators or graphical objects should follow a black and white color scheme, allowing easy printing from screen.
Naming the attached code using Latin letters and in English language is essential for uniform understanding. For instance, research.mq5 is preferable over issledo...
Read more...
π2π1
The importance of using Python's massive library for reducing the development cycle in data processing is significant. The availability of vast libraries offered by Python facilitates development while saving developers time. In order to further delve into the subject, Python libraries related to different architectures, trading, and backtesting will be discussed. These include but aren't limited to libraries for labeled data that users can study further.
The convenience of processing data obtained from the MT5 client using the MetaTrader5 library is emphasized. Installation of necessary libraries, creation of Python files, connection to the client, and data acquisition processes are discussed step-by-step. However, careful attention is required in converting the obtained data into a suitable format.
The use of the pytrendseries library is favored due to its advantages in data proc...
Read more...
The convenience of processing data obtained from the MT5 client using the MetaTrader5 library is emphasized. Installation of necessary libraries, creation of Python files, connection to the client, and data acquisition processes are discussed step-by-step. However, careful attention is required in converting the obtained data into a suitable format.
The use of the pytrendseries library is favored due to its advantages in data proc...
Read more...
π4
The week presents an opportunity to comprehend the inner workings of the Rsi() function. Recreating it, developers could gain significant insight into crucial concepts and codes applicable in forthcoming projects.
Key areas to focus on include path limitation within the oncalculate function, FOR loops, and static variables. Further, the exercise imparts knowledge on writing and documenting functions as well as flags.
Additional information can be accessed directly at the following link: https://www.mql5.com/fr/users/william210.
For those with innovative ideas for development, they can be suggested at https://www.mql5.com/en/forum/453288.
Links to beneficial free indicator codes for beginners in Mql5 development have also been provided. These include those for Rsi, MACDr, Momentum, the Moving average, Bands Bollinger, Ichimoku, Adx, and Stochastic functions.
The primary aim is...
Read more...
Key areas to focus on include path limitation within the oncalculate function, FOR loops, and static variables. Further, the exercise imparts knowledge on writing and documenting functions as well as flags.
Additional information can be accessed directly at the following link: https://www.mql5.com/fr/users/william210.
For those with innovative ideas for development, they can be suggested at https://www.mql5.com/en/forum/453288.
Links to beneficial free indicator codes for beginners in Mql5 development have also been provided. These include those for Rsi, MACDr, Momentum, the Moving average, Bands Bollinger, Ichimoku, Adx, and Stochastic functions.
The primary aim is...
Read more...
β€3π₯1
Sifting through and optimizing the Go-Explore algorithm for agent training yields promising results for tackling substantial training periods. In this exploration, the effectiveness of the Go-Explore algorithm in data modeling is considered over a four-month stretch of training data.
Initially, the model is scrutinized for shortcomings. Fixed constant values are adjusted to suit large-scale training periods, and data sorted is excluded due to inefficiency. The collective actions are then constrained on volume to avoid accumulation of negative or positive constructs.
Several additional tools were adopted to further improve and regulate the modelβs performance. For risk control, a maximum limit is implemented on the duration an open position can be held. This regulation protects against outsized losses. To improve the quality of forecasting, the training set is divided into smaller s...
Read more...
Initially, the model is scrutinized for shortcomings. Fixed constant values are adjusted to suit large-scale training periods, and data sorted is excluded due to inefficiency. The collective actions are then constrained on volume to avoid accumulation of negative or positive constructs.
Several additional tools were adopted to further improve and regulate the modelβs performance. For risk control, a maximum limit is implemented on the duration an open position can be held. This regulation protects against outsized losses. To improve the quality of forecasting, the training set is divided into smaller s...
Read more...
π2