MQL Articels

468 bookmarks
Custom sorting
The checks a trading robot must pass before publication in the Market - MQL5 Articles
The checks a trading robot must pass before publication in the Market - MQL5 Articles
Before any product is published in the Market, it must undergo compulsory preliminary checks in order to ensure a uniform quality standard. This article considers the most frequent errors made by developers in their technical indicators and trading robots. An also shows how to self-test a product before sending it to the Market.
·mql5.com·
The checks a trading robot must pass before publication in the Market - MQL5 Articles
LifeHack for Traders: Indicators of Balance, Drawdown, Load and Ticks during Testing - MQL5 Articles
LifeHack for Traders: Indicators of Balance, Drawdown, Load and Ticks during Testing - MQL5 Articles
How to make the testing process more visual? The answer is simple: you need to use one or more indicators in the Strategy Tester, including a tick indicator, an indicator of balance and equity, an indicator of drawdown and deposit load. This solution will help you visually track the nature of ticks, balance and equity changes, as well as drawdown and deposit load.
·mql5.com·
LifeHack for Traders: Indicators of Balance, Drawdown, Load and Ticks during Testing - MQL5 Articles
MQL5 Cookbook: Writing the History of Deals to a File and Creating Balance Charts for Each Symbol in Excel - MQL5 Articles
MQL5 Cookbook: Writing the History of Deals to a File and Creating Balance Charts for Each Symbol in Excel - MQL5 Articles
When communicating in various forums, I often used examples of my test results displayed as screenshots of Microsoft Excel charts. I have many times been asked to explain how such charts can be created. Finally, I now have some time to explain it all in this article.
·mql5.com·
MQL5 Cookbook: Writing the History of Deals to a File and Creating Balance Charts for Each Symbol in Excel - MQL5 Articles
MQL5 Cookbook: Reducing the Effect of Overfitting and Handling the Lack of Quotes - MQL5 Articles
MQL5 Cookbook: Reducing the Effect of Overfitting and Handling the Lack of Quotes - MQL5 Articles
Whatever trading strategy you use, there will always be a question of what parameters to choose to ensure future profits. This article gives an example of an Expert Advisor with a possibility to optimize multiple symbol parameters at the same time. This method is intended to reduce the effect of overfitting parameters and handle situations where data from a single symbol are not enough for the study.
·mql5.com·
MQL5 Cookbook: Reducing the Effect of Overfitting and Handling the Lack of Quotes - MQL5 Articles
MQL5 Cookbook: Saving Optimization Results of an Expert Advisor Based on Specified Criteria - MQL5 Articles
MQL5 Cookbook: Saving Optimization Results of an Expert Advisor Based on Specified Criteria - MQL5 Articles
We continue the series of articles on MQL5 programming. This time we will see how to get results of each optimization pass right during the Expert Advisor parameter optimization. The implementation will be done so as to ensure that if the conditions specified in the external parameters are met, the corresponding pass values will be written to a file. In addition to test values, we will also save the parameters that brought about such results.
·mql5.com·
MQL5 Cookbook: Saving Optimization Results of an Expert Advisor Based on Specified Criteria - MQL5 Articles
MQL5 Cookbook: Developing a Multi-Currency Expert Advisor with Unlimited Number of Parameters - MQL5 Articles
MQL5 Cookbook: Developing a Multi-Currency Expert Advisor with Unlimited Number of Parameters - MQL5 Articles
In this article, we will create a pattern that uses a single set of parameters for optimization of a trading system, while allowing for unlimited number of parameters. The list of symbols will be created in a standard text file (*.txt). Input parameters for each symbol will also be stored in files. This way we will be able to circumvent the restriction of the terminal on the number of input parameters of an Expert Advisor.
·mql5.com·
MQL5 Cookbook: Developing a Multi-Currency Expert Advisor with Unlimited Number of Parameters - MQL5 Articles
MQL5 Cookbook: Multi-Currency Expert Advisor - Simple, Neat and Quick Approach - MQL5 Articles
MQL5 Cookbook: Multi-Currency Expert Advisor - Simple, Neat and Quick Approach - MQL5 Articles
This article will describe an implementation of a simple approach suitable for a multi-currency Expert Advisor. This means that you will be able to set up the Expert Advisor for testing/trading under identical conditions but with different parameters for each symbol. As an example, we will create a pattern for two symbols but in such a way so as to be able to add additional symbols, if necessary, by making small changes to the code.
·mql5.com·
MQL5 Cookbook: Multi-Currency Expert Advisor - Simple, Neat and Quick Approach - MQL5 Articles
MQL5 Cookbook: Developing a Framework for a Trading System Based on the Triple Screen Strategy - MQL5 Articles
MQL5 Cookbook: Developing a Framework for a Trading System Based on the Triple Screen Strategy - MQL5 Articles
In this article, we will develop a framework for a trading system based on the Triple Screen strategy in MQL5. The Expert Advisor will not be developed from scratch. Instead, we will simply modify the program from the previous article "MQL5 Cookbook: Using Indicators to Set Trading Conditions in Expert Advisors" which already substantially serves our purpose. So the article will also demonstrate how you can easily modify patterns of ready-made programs.
·mql5.com·
MQL5 Cookbook: Developing a Framework for a Trading System Based on the Triple Screen Strategy - MQL5 Articles
Debugging MQL5 Programs - MQL5 Articles
Debugging MQL5 Programs - MQL5 Articles
This article is intended primarily for the programmers who have already learned the language but have not fully mastered the program development yet. It reveals some debugging techniques and presents a combined experience of the author and many other programmers.
·mql5.com·
Debugging MQL5 Programs - MQL5 Articles
MQL5 Cookbook: The History of Deals And Function Library for Getting Position Properties - MQL5 Articles
MQL5 Cookbook: The History of Deals And Function Library for Getting Position Properties - MQL5 Articles
It is time to briefly summarize the information provided in the previous articles on position properties. In this article, we will create a few additional functions to get the properties that can only be obtained after accessing the history of deals. We will also get familiar with data structures that will allow us to access position and symbol properties in a more convenient way.
·mql5.com·
MQL5 Cookbook: The History of Deals And Function Library for Getting Position Properties - MQL5 Articles
MQL5 Cookbook: Using Indicators to Set Trading Conditions in Expert Advisors - MQL5 Articles
MQL5 Cookbook: Using Indicators to Set Trading Conditions in Expert Advisors - MQL5 Articles
In this article, we will continue to modify the Expert Advisor we have been working on throughout the preceding articles of the MQL5 Cookbook series. This time, the Expert Advisor will be enhanced with indicators whose values will be used to check position opening conditions. To spice it up, we will create a drop-down list in the external parameters to be able to select one out of three trading indicators.
·mql5.com·
MQL5 Cookbook: Using Indicators to Set Trading Conditions in Expert Advisors - MQL5 Articles
MQL5 Cookbook: How to Avoid Errors When Setting/Modifying Trade Levels - MQL5 Articles
MQL5 Cookbook: How to Avoid Errors When Setting/Modifying Trade Levels - MQL5 Articles
In continuation of our work on the Expert Advisor from the previous article of the series called "MQL5 Cookbook: Analyzing Position Properties in the MetaTrader 5 Strategy Tester", we will enhance it with a whole lot of useful functions, as well as improve and optimize the existing ones. The Expert Advisor will this time have external parameters that can be optimized in the MetaTrader 5 Strategy Tester and will in some ways resemble a simple trading system.
·mql5.com·
MQL5 Cookbook: How to Avoid Errors When Setting/Modifying Trade Levels - MQL5 Articles
MQL5 Cloud Network: Are You Still Calculating? - MQL5 Articles
MQL5 Cloud Network: Are You Still Calculating? - MQL5 Articles
It will soon be a year and a half since the MQL5 Cloud Network has been launched. This leading edge event ushered in a new era of algorithmic trading - now with a couple of clicks, traders can have hundreds and thousands of computing cores at their disposal for the optimization of their trading strategies.
·mql5.com·
MQL5 Cloud Network: Are You Still Calculating? - MQL5 Articles
MQL5 Cookbook: Analyzing Position Properties in the MetaTrader 5 Strategy Tester - MQL5 Articles
MQL5 Cookbook: Analyzing Position Properties in the MetaTrader 5 Strategy Tester - MQL5 Articles
We will present a modified version of the Expert Advisor from the previous article "MQL5 Cookbook: Position Properties on the Custom Info Panel". Some of the issues we will address include getting data from bars, checking for new bar events on the current symbol, including a trade class of the Standard Library to a file, creating a function to search for trading signals and a function for executing trading operations, as well as determining trade events in the OnTrade() function.
·mql5.com·
MQL5 Cookbook: Analyzing Position Properties in the MetaTrader 5 Strategy Tester - MQL5 Articles
Fast Dive into MQL5 - MQL5 Articles
Fast Dive into MQL5 - MQL5 Articles
You have decided to study MQL5 trading strategies' programming language, but you know nothing about it? We have tried to examine MQL5 and MetaTrader 5 terminal from the newcomers' point of view and have written this short introductory article. In this article, you can find a brief idea of the possibilities of the language, as well as some tips on working with MetaEditor 5 and the terminal.
·mql5.com·
Fast Dive into MQL5 - MQL5 Articles
Limitless Opportunities with MetaTrader 5 and MQL5 - MQL5 Articles
Limitless Opportunities with MetaTrader 5 and MQL5 - MQL5 Articles
In this article, I would like to give an example of what a trader's program can be like as well as what results can be achieved in 9 months, having started to learn MQL5 from scratch. This example will also show how multi-functional and informative such a program can be for a trader while taking minimum space on the price chart. And we will be able to see just how colorful, bright and intuitively clear to the user trade information panels can get. As well as many other features...
·mql5.com·
Limitless Opportunities with MetaTrader 5 and MQL5 - MQL5 Articles
The Fundamentals of Testing in MetaTrader 5 - MQL5 Articles
The Fundamentals of Testing in MetaTrader 5 - MQL5 Articles
What are the differences between the three modes of testing in MetaTrader 5, and what should be particularly looked for? How does the testing of an EA, trading simultaneously on multiple instruments, take place? When and how are the indicator values calculated during testing, and how are the events handled? How to synchronize the bars from different instruments during testing in an "open prices only" mode? This article aims to provide answers to these and many other questions.
·mql5.com·
The Fundamentals of Testing in MetaTrader 5 - MQL5 Articles
Speed Up Calculations with the MQL5 Cloud Network
Speed Up Calculations with the MQL5 Cloud Network
How many cores do you have on your home computer? How many computers can you use to optimize a trading strategy? We show here how to use the MQL5 Cloud Network to accelerate calculations by receiving the computing power across the globe with the click of a mouse. The phrase "Time is money" becomes even more topical with each passing year, and we cannot afford to wait for important computations for tens of hours or even days.
·mql5.com·
Speed Up Calculations with the MQL5 Cloud Network
Creating Multi-Expert Advisors on the basis of Trading Models
Creating Multi-Expert Advisors on the basis of Trading Models
Using the object-oriented approach in MQL5 greatly simplifies the creation of multi-currency/multi-system /multi-time-frame Expert Advisors. Just imagine, your single EA trades on several dozens of trading strategies, on all of the available instruments, and on all of the possible time frames! In addition, the EA is easily tested in the tester, and for all of the strategies, included in its composition, it has one or several working systems of money management.
·mql5.com·
Creating Multi-Expert Advisors on the basis of Trading Models
Guide to Testing and Optimizing of Expert Advisors in MQL5
Guide to Testing and Optimizing of Expert Advisors in MQL5
This article explains the step by step process of identifying and resolving code errors as well as the steps in testing and optimizing of the Expert Advisor input parameters. You will learn how to use Strategy Tester of MetaTrader 5 client terminal to find the best symbol and set of input parameters for your Expert Advisor.
·mql5.com·
Guide to Testing and Optimizing of Expert Advisors in MQL5
The Algorithm of Ticks' Generation within the Strategy Tester of the MetaTrader 5 Terminal
The Algorithm of Ticks' Generation within the Strategy Tester of the MetaTrader 5 Terminal
MetaTrader 5 allows us to simulate automatic trading, within an embedded strategy tester, by using Expert Advisors and the MQL5 language. This type of simulation is called testing of Expert Advisors, and can be implemented using multithreaded optimization, as well as simultaneously on a number of instruments. In order to provide a thorough testing, a generation of ticks based on the available minute history, needs to be performed. This article provides a detailed description of the algorithm, by which the ticks are generated for the historical testing in the MetaTrader 5 client terminal.
·mql5.com·
The Algorithm of Ticks' Generation within the Strategy Tester of the MetaTrader 5 Terminal
Using the TesterWithdrawal() Function for Modeling the Withdrawals of Profit
Using the TesterWithdrawal() Function for Modeling the Withdrawals of Profit
This article describes the usage of the TesterWithDrawal() function for estimating risks in trade systems which imply the withdrawing of a certain part of assets during their operation. In addition, it describes the effect of this function on the algorithm of calculation of the drawdown of equity in the strategy tester. This function is useful when optimizing parameter of your Expert Advisors.
·mql5.com·
Using the TesterWithdrawal() Function for Modeling the Withdrawals of Profit
Evaluation of Trade Systems - the Effectiveness of Entering, Exiting and Trades in General
Evaluation of Trade Systems - the Effectiveness of Entering, Exiting and Trades in General
There are a lot of measures that allow determining the effectiveness and profitability of a trade system. However, traders are always ready to put any system to a new crash test. The article tells how the statistics based on measures of effectiveness can be used for the MetaTrader 5 platform. It includes the class for transformation of the interpretation of statistics by deals to the one that doesn't contradict the description given in the "Statistika dlya traderov" ("Statistics for Traders") book by S.V. Bulashev. It also includes an example of custom function for optimization.
·mql5.com·
Evaluation of Trade Systems - the Effectiveness of Entering, Exiting and Trades in General
Finding Errors and Logging
Finding Errors and Logging
MetaEditor 5 has the debugging feature. But when you write your MQL5 programs, you often want to display not the individual values, but all messages that appear during testing and online work. When the log file contents have large size, it is obvious to automate quick and easy retrieval of required message. In this article we will consider ways of finding errors in MQL5 programs and methods of logging. Also we will simplify logging into files and will get to know a simple program LogMon for comfortable viewing of logs.
·mql5.com·
Finding Errors and Logging
Learn how to design a trading system by Bull's Power - MQL5 Articles
Learn how to design a trading system by Bull's Power - MQL5 Articles
Welcome to a new article in our series about learning how to design a trading system by the most popular technical indicator as we will learn in this article about a new technical indicator and how we can design a trading system by it and this indicator is the Bull's Power indicator.
·mql5.com·
Learn how to design a trading system by Bull's Power - MQL5 Articles
Learn how to design a trading system by Bear's Power - MQL5 Articles
Learn how to design a trading system by Bear's Power - MQL5 Articles
Welcome to a new article in our series about learning how to design a trading system by the most popular technical indicator here is a new article about learning how to design a trading system by Bear's Power technical indicator.
·mql5.com·
Learn how to design a trading system by Bear's Power - MQL5 Articles