![Machine learning in Grid and Martingale trading systems. Would you bet on it?](https://c.mql5.com/2/49/8826_ml_grid_martingale_600x314.jpg)
Machine learning in Grid and Martingale trading systems. Would you bet on it?
This article describes the machine learning technique applied to grid and martingale trading. Surprisingly, this approach has little to no coverage in the global network. After reading the article, you will be able to create your own trading bots.
![Cross-Platform Expert Advisor: Time Filters](https://c.mql5.com/2/28/Cross_Platform_Expert_Advisor__3.png)
![Cross-Platform Expert Advisor: Time Filters](https://c.mql5.com/i/articles/overlay.png)
Cross-Platform Expert Advisor: Time Filters
This article discusses the implementation of various methods of time filtering a cross-platform expert advisor. The time filter classes are responsible for checking whether or not a given time falls under a certain time configuration setting.
![How to analyze the trades of the Signal selected in the chart](https://c.mql5.com/2/32/bv8-az2zxypg7t6xs-7r9h1l-nlm87q3q35-vvyg13n-gv-dcau99f.png)
![How to analyze the trades of the Signal selected in the chart](https://c.mql5.com/i/articles/overlay.png)
How to analyze the trades of the Signal selected in the chart
The trade Signals service develops in leaps and bounds. Trusting our funds to a signal provider, we would like to minimize the risk of losing our deposit. So how to puzzle out in this forest of trade signals? How to find the one that would produce profits? This paper proposes to create a tool for visually analyzing the history of trades on trade signals in a symbol chart.
![Creating an Expert Advisor, which Trades on a Number of Instruments](https://c.mql5.com/2/0/multi_assets_EA_MQL5__1.png)
![Creating an Expert Advisor, which Trades on a Number of Instruments](https://c.mql5.com/i/articles/overlay.png)
Creating an Expert Advisor, which Trades on a Number of Instruments
The concept of diversification of assets on financial markets is quiet old, and has always attracted beginner traders. In this article, the author proposes a maximally simple approach to a construction of a multi-currency Expert Advisor, for an initial introduction to this direction of trading strategies.
![Better Programmer (Part 02): Stop doing these 5 things to become a successful MQL5 programmer](https://c.mql5.com/2/43/Article_image.png)
![Better Programmer (Part 02): Stop doing these 5 things to become a successful MQL5 programmer](https://c.mql5.com/i/articles/overlay.png)
Better Programmer (Part 02): Stop doing these 5 things to become a successful MQL5 programmer
This is the must read article for anyone wanting to improve their programming career. This article series is aimed at making you the best programmer you can possibly be, no matter how experienced you are. The discussed ideas work for MQL5 programming newbies as well as professionals.
![MQL5 Wizard: Placing Orders, Stop-Losses and Take Profits on Calculated Prices. Standard Library Extension](https://c.mql5.com/2/10/ava.png)
![MQL5 Wizard: Placing Orders, Stop-Losses and Take Profits on Calculated Prices. Standard Library Extension](https://c.mql5.com/i/articles/overlay.png)
MQL5 Wizard: Placing Orders, Stop-Losses and Take Profits on Calculated Prices. Standard Library Extension
This article describes the MQL5 Standard Library extension, which allows to create Expert Advisors, place orders, Stop Losses and Take Profits using the MQL5 Wizard by the prices received from included modules. This approach does not apply any additional restrictions on the number of modules and does not cause conflicts in their joint work.
![Universal Expert Advisor: Custom Strategies and Auxiliary Trade Classes (Part 3)](https://c.mql5.com/2/21/02fe0hhenus_a0y2.png)
![Universal Expert Advisor: Custom Strategies and Auxiliary Trade Classes (Part 3)](https://c.mql5.com/i/articles/overlay.png)
Universal Expert Advisor: Custom Strategies and Auxiliary Trade Classes (Part 3)
In this article, we will continue analyzing the algorithms of the CStrategy trading engine. The third part of the series contains the detailed analysis of examples of how to develop specific trading strategies using this approach. Special attention is paid to auxiliary algorithms — Expert Advisor logging system and data access using a conventional indexer (Close[1], Open[0] etc.)
![Library for easy and quick development of MetaTrader programs (part XVIII): Interactivity of account and any other library objects](https://c.mql5.com/2/37/MQL5-avatar-doeasy.png)
![Library for easy and quick development of MetaTrader programs (part XVIII): Interactivity of account and any other library objects](https://c.mql5.com/i/articles/overlay.png)
Library for easy and quick development of MetaTrader programs (part XVIII): Interactivity of account and any other library objects
The article arranges the work of an account object on a new base object of all library objects, improves the CBaseObj base object and tests setting tracked parameters, as well as receiving events for any library objects.
![Graphical Interfaces IV: the Multi-Window Mode and System of Priorities (Chapter 2)](https://c.mql5.com/2/22/iv-avatar__1.png)
![Graphical Interfaces IV: the Multi-Window Mode and System of Priorities (Chapter 2)](https://c.mql5.com/i/articles/overlay.png)
Graphical Interfaces IV: the Multi-Window Mode and System of Priorities (Chapter 2)
In this chapter, we will extend the library implementation to the possibility of creating multi-window interfaces for the MQL applications. We will also develop a system of priorities for left mouse clicking on graphical objects. This is required to avoid problems when elements do not respond to the user's actions.
![Timeseries in DoEasy library (part 39): Library-based indicators - preparing data and timeseries events](https://c.mql5.com/2/38/MQL5-avatar-doeasy-library__4.png)
![Timeseries in DoEasy library (part 39): Library-based indicators - preparing data and timeseries events](https://c.mql5.com/i/articles/overlay.png)
Timeseries in DoEasy library (part 39): Library-based indicators - preparing data and timeseries events
The article deals with applying DoEasy library for creating multi-symbol multi-period indicators. We are going to prepare the library classes to work within indicators and test creating timeseries to be used as data sources in indicators. We will also implement creating and sending timeseries events.
![Mathematics in trading: Sharpe and Sortino ratios](https://c.mql5.com/2/49/mathematics_sharpe_sortino_ratios_600x314.jpg)
Mathematics in trading: Sharpe and Sortino ratios
Return on investments is the most obvious indicator which investors and novice traders use for the analysis of trading efficiency. Professional traders use more reliable tools to analyze strategies, such as Sharpe and Sortino ratios, among others.
![Better Programmer (Part 07): Notes on becoming a successful freelance developer](https://c.mql5.com/2/43/How-to-Become-a-Freelancer-in-the-Hospitality-Industry.png)
![Better Programmer (Part 07): Notes on becoming a successful freelance developer](https://c.mql5.com/i/articles/overlay.png)
Better Programmer (Part 07): Notes on becoming a successful freelance developer
Do you wish to become a successful Freelance developer on MQL5? If the answer is yes, this article is right for you.
![Parallel Calculations in MetaTrader 5](https://c.mql5.com/2/0/parallel.png)
![Parallel Calculations in MetaTrader 5](https://c.mql5.com/i/articles/overlay.png)
Parallel Calculations in MetaTrader 5
Time has been a great value throughout the history of mankind, and we strive not to waste it unnecessarily. This article will tell you how to accelerate the work of your Expert Advisor if your computer has a multi-core processor. Moreover, the implementation of the proposed method does not require the knowledge of any other languages besides MQL5.
![Trading DiNapoli levels](https://c.mql5.com/2/30/MQL5-avatar-DiNapoli-001.png)
![Trading DiNapoli levels](https://c.mql5.com/i/articles/overlay.png)
Trading DiNapoli levels
The article considers one of the variants for Expert Advisor practical realization to trade DiNapoli levels using MQL5 standard tools. Its performance is tested and conclusions are made.
![SQL and MQL5: Working with SQLite Database](https://c.mql5.com/2/0/MQL5_SQLite_avatar.png)
![SQL and MQL5: Working with SQLite Database](https://c.mql5.com/i/articles/overlay.png)
SQL and MQL5: Working with SQLite Database
This article is intended for developers who would be interested in using SQL in their projects. It explains the functionality and advantages of SQLite. The article does not require special knowledge of SQLite functions, yet minimum understanding of SQL would be beneficial.
![Better Programmer (Part 01): You must stop doing these 5 things to become a successful MQL5 programmer](https://c.mql5.com/2/42/Article_image.png)
![Better Programmer (Part 01): You must stop doing these 5 things to become a successful MQL5 programmer](https://c.mql5.com/i/articles/overlay.png)
Better Programmer (Part 01): You must stop doing these 5 things to become a successful MQL5 programmer
There are a lot of bad habits that newbies and even advanced programmers are doing that are keeping them from becoming the best they can be to their coding career. We are going to discuss and address them in this article. This article is a must read for everyone who wants to become successful developer in MQL5.
![Dealing with Time (Part 1): The Basics](https://c.mql5.com/2/49/Dealing-with-Time-hPart-1q-The-Basics_600x314.jpg)
Dealing with Time (Part 1): The Basics
Functions and code snippets that simplify and clarify the handling of time, broker offset, and the changes to summer or winter time. Accurate timing may be a crucial element in trading. At the current hour, is the stock exchange in London or New York already open or not yet open, when does the trading time for Forex trading start and end? For a trader who trades manually and live, this is not a big problem.
![Universal Expert Advisor: Accessing Symbol Properties (Part 8)](https://c.mql5.com/2/28/1tjuu2qd9po_i8o2.png)
![Universal Expert Advisor: Accessing Symbol Properties (Part 8)](https://c.mql5.com/i/articles/overlay.png)
Universal Expert Advisor: Accessing Symbol Properties (Part 8)
The eighth part of the article features the description of the CSymbol class, which is a special object that provides access to any trading instrument. When used inside an Expert Advisor, the class provides a wide set of symbol properties, while allowing to simplify Expert Advisor programming and to expand its functionality.
![Practical application of neural networks in trading](https://c.mql5.com/2/37/neural_DLL.png)
![Practical application of neural networks in trading](https://c.mql5.com/i/articles/overlay.png)
Practical application of neural networks in trading
In this article, we will consider the main aspects of integration of neural networks and the trading terminal, with the purpose of creating a fully featured trading robot.
![Multicurrency monitoring of trading signals (Part 1): Developing the application structure](https://c.mql5.com/2/37/Article_Logo__2.png)
![Multicurrency monitoring of trading signals (Part 1): Developing the application structure](https://c.mql5.com/i/articles/overlay.png)
Multicurrency monitoring of trading signals (Part 1): Developing the application structure
In this article, we will discuss the idea of creating a multicurrency monitor of trading signals and will develop a future application structure along with its prototype, as well as create its framework for further operation. The article presents a step-by-step creation of a flexible multicurrency application which will enable the generation of trading signals and which will assist traders in finding the desired signals.
![Using indicators for optimizing Expert Advisors in real time](https://c.mql5.com/2/34/indicator_RealTime_optimaze.png)
![Using indicators for optimizing Expert Advisors in real time](https://c.mql5.com/i/articles/overlay.png)
Using indicators for optimizing Expert Advisors in real time
Efficiency of any trading robot depends on the correct selection of its parameters (optimization). However, parameters that are considered optimal for one time interval may not retain their effectiveness in another period of trading history. Besides, EAs showing profit during tests turn out to be loss-making in real time. The issue of continuous optimization comes to the fore here. When facing plenty of routine work, humans always look for ways to automate it. In this article, I propose a non-standard approach to solving this issue.
![Optimization management (Part I): Creating a GUI](https://c.mql5.com/2/36/mql5-avatar-opt_control.png)
![Optimization management (Part I): Creating a GUI](https://c.mql5.com/i/articles/overlay.png)
Optimization management (Part I): Creating a GUI
This article describes the process of creating an extension for the MetaTrader terminal. The solution discussed helps to automate the optimization process by running optimizations in other terminals. A few more articles will be written concerning this topic. The extension has been developed using the C# language and design patterns, which additionally demonstrates the ability to expand the terminal capabilities by developing custom modules, as well as the ability to create custom graphical user interfaces using the functionality of a preferred programming language.
![MQL5.com Freelance: Developers' Source of Income (Infographic)](https://c.mql5.com/2/10/avatar_infographics.png)
![MQL5.com Freelance: Developers' Source of Income (Infographic)](https://c.mql5.com/i/articles/overlay.png)
MQL5.com Freelance: Developers' Source of Income (Infographic)
On the occasion of the MQL5 Freelance Service fourth birthday, we have prepared an info-graphic demonstrating the service results for the entire time of its existence. The figures speak for themselves: more than 10 000 orders worth about $600,000 in total have been executed to date, while 3 000 customers and 300 developers have already used the service.
![Quick Manual Trading Toolkit: Basic Functionality](https://c.mql5.com/2/39/Frame_1.png)
![Quick Manual Trading Toolkit: Basic Functionality](https://c.mql5.com/i/articles/overlay.png)
Quick Manual Trading Toolkit: Basic Functionality
Today, many traders switch to automated trading systems which can require additional setup or can be fully automated and ready to use. However, there is a considerable part of traders who prefer trading manually, in the old fashioned way. In this article, we will create toolkit for quick manual trading, using hotkeys, and for performing typical trading actions in one click.
![Regular expressions for traders](https://c.mql5.com/2/23/ava.png)
![Regular expressions for traders](https://c.mql5.com/i/articles/overlay.png)
Regular expressions for traders
A regular expression is a special language for handling texts by applying a specified rule, also called a regex or regexp for short. In this article, we are going to show how to handle a trade report with the RegularExpressions library for MQL5, and will also demonstrate the optimization results after using it.
![Creating an EA that works automatically (Part 01): Concepts and structures](https://c.mql5.com/2/49/Aprendendo-a-construindo__600x314.jpg)
Creating an EA that works automatically (Part 01): Concepts and structures
Today we'll see how to create an Expert Advisor that simply and safely works in automatic mode.
![Cluster analysis (Part I): Mastering the slope of indicator lines](https://c.mql5.com/2/49/Cluster_analysis_001_600x314.jpg)
Cluster analysis (Part I): Mastering the slope of indicator lines
Cluster analysis is one of the most important elements of artificial intelligence. In this article, I attempt applying the cluster analysis of the indicator slope to get threshold values for determining whether a market is flat or following a trend.
![Random Walk and the Trend Indicator](https://c.mql5.com/2/0/coin_course.png)
![Random Walk and the Trend Indicator](https://c.mql5.com/i/articles/overlay.png)
Random Walk and the Trend Indicator
Random Walk looks very similar to the real market data, but it has some significant features. In this article we will consider the properties of Random Walk, simulated using the coin-tossing game. To study the properties of the data, the trendiness indicator is developed.
![Data Exchange between Indicators: It's Easy](https://c.mql5.com/2/0/v5__1.png)
![Data Exchange between Indicators: It's Easy](https://c.mql5.com/i/articles/overlay.png)
Data Exchange between Indicators: It's Easy
We want to create such an environment, which would provide access to data of indicators attached to a chart, and would have the following properties: absence of data copying; minimal modification of the code of available methods, if we need to use them; MQL code is preferable (of course, we have to use DLL, but we will use just a dozen of strings of C++ code). The article describes an easy method to develop a program environment for the MetaTrader terminal, that would provide means for accessing indicator buffers from other MQL programs.
![LifeHack for trader: "Quiet" optimization or Plotting trade distributions](https://c.mql5.com/2/24/avaf2i.png)
![LifeHack for trader: "Quiet" optimization or Plotting trade distributions](https://c.mql5.com/i/articles/overlay.png)
LifeHack for trader: "Quiet" optimization or Plotting trade distributions
Analysis of the trade history and plotting distribution charts of trading results in HTML depending on position entry time. The charts are displayed in three sections - by hours, by days of the week and by months.
![TradeObjects: Automation of trading based on MetaTrader graphical objects](https://c.mql5.com/2/29/MQL5_TradeObjects__1.png)
![TradeObjects: Automation of trading based on MetaTrader graphical objects](https://c.mql5.com/i/articles/overlay.png)
TradeObjects: Automation of trading based on MetaTrader graphical objects
The article deals with a simple approach to creating an automated trading system based on the chart linear markup and offers a ready-made Expert Advisor using the standard properties of the MetaTrader 4 and 5 objects and supporting the main trading operations.
![The power of ZigZag (part I). Developing the base class of the indicator](https://c.mql5.com/2/35/MQL5-avatar-zigzag_head.png)
![The power of ZigZag (part I). Developing the base class of the indicator](https://c.mql5.com/i/articles/overlay.png)
The power of ZigZag (part I). Developing the base class of the indicator
Many researchers do not pay enough attention to determining the price behavior. At the same time, complex methods are used, which very often are simply “black boxes”, such as machine learning or neural networks. The most important question arising in that case is what data to submit for training a particular model.
![Extracting structured data from HTML pages using CSS selectors](https://c.mql5.com/2/35/MQL5-CSS_selectors.png)
![Extracting structured data from HTML pages using CSS selectors](https://c.mql5.com/i/articles/overlay.png)
Extracting structured data from HTML pages using CSS selectors
The article provides a description of a universal method for analyzing and converting data from HTML documents based on CSS selectors. Trading reports, tester reports, your favorite economic calendars, public signals, account monitoring and additional online quote sources will become available straight from MQL.
![Random Forests Predict Trends](https://c.mql5.com/2/11/Random_Forest_MetaTrader5.png)
![Random Forests Predict Trends](https://c.mql5.com/i/articles/overlay.png)
Random Forests Predict Trends
This article considers using the Rattle package for automatic search of patterns for predicting long and short positions of currency pairs on Forex. This article can be useful both for novice and experienced traders.
![Practical Implementation of Digital Filters in MQL5 for Beginners](https://c.mql5.com/2/0/Filter.png)
![Practical Implementation of Digital Filters in MQL5 for Beginners](https://c.mql5.com/i/articles/overlay.png)
Practical Implementation of Digital Filters in MQL5 for Beginners
The idea of digital signal filtering has been widely discussed on forum topics about building trading systems. And it would be imprudent not to create a standard code of digital filters in MQL5. In this article the author describes the transformation of simple SMA indicator's code from his article "Custom Indicators in MQL5 for Newbies" into code of more complicated and universal digital filter. This article is a logical sequel to the previous article. It also tells how to replace text in code and how to correct programming errors.
![Applying network functions, or MySQL without DLL: Part II - Program for monitoring changes in signal properties](https://c.mql5.com/2/37/kisspng-computer-icons-application-programming-interface-c-database-administrator-icon-free-download__1.png)
![Applying network functions, or MySQL without DLL: Part II - Program for monitoring changes in signal properties](https://c.mql5.com/i/articles/overlay.png)
Applying network functions, or MySQL without DLL: Part II - Program for monitoring changes in signal properties
In the previous part, we considered the implementation of the MySQL connector. In this article, we will consider its application by implementing the service for collecting signal properties and the program for viewing their changes over time. The implemented example has practical sense if users need to observe changes in properties that are not displayed on the signal's web page.
![Finding Errors and Logging](https://c.mql5.com/2/0/filter_Log_MQL5.png)
![Finding Errors and Logging](https://c.mql5.com/i/articles/overlay.png)
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.
![Useful and exotic techniques for automated trading](https://c.mql5.com/2/49/exotic_techniques_automated_trading_600x314.jpg)
Useful and exotic techniques for automated trading
In this article I will demonstrate some very interesting and useful techniques for automated trading. Some of them may be familiar to you. I will try to cover the most interesting methods and will explain why they are worth using. Furthermore, I will show what these techniques are apt to in practice. We will create Expert Advisors and test all the described techniques using historic quotes.
![The price movement model and its main provisions (Part 1): The simplest model version and its applications](https://c.mql5.com/2/49/simplest_model_001_600x314.jpg)
The price movement model and its main provisions (Part 1): The simplest model version and its applications
The article provides the foundations of a mathematically rigorous price movement and market functioning theory. Up to the present, we have not had any mathematically rigorous price movement theory. Instead, we have had to deal with experience-based assumptions stating that the price moves in a certain way after a certain pattern. Of course, these assumptions have been supported neither by statistics, nor by theory.
![The NRTR indicator and trading modules based on NRTR for the MQL5 Wizard](https://c.mql5.com/2/30/qatis21ft_NRTR_2.png)
![The NRTR indicator and trading modules based on NRTR for the MQL5 Wizard](https://c.mql5.com/i/articles/overlay.png)
The NRTR indicator and trading modules based on NRTR for the MQL5 Wizard
In this article we are going to analyze the NRTR indicator and create a trading system based on this indicator. We are going to develop a module of trading signals that can be used in creating strategies based on a combination of NRTR with additional trend confirmation indicators.