Kun Li / Profile
![Kun Li](https://c.mql5.com/avatar/avatar_na2.png)
![Matrices and vectors in MQL5](https://c.mql5.com/2/44/matrix.png)
By using special data types 'matrix' and 'vector', it is possible to create code which is very close to mathematical notation. With these methods, you can avoid the need to create nested loops or to mind correct indexing of arrays in calculations. Therefore, the use of matrix and vector methods increases the reliability and speed in developing complex programs.
![Kun Li](https://c.mql5.com/avatar/avatar_na2.png)
![Introduction to the Empirical Mode Decomposition Method](https://c.mql5.com/2/0/Empirical_Mode_Decomposition_MQL5.png)
This article serves to familiarize the reader with the empirical mode decomposition (EMD) method. It is the fundamental part of the Hilbert–Huang transform and is intended for analyzing data from nonstationary and nonlinear processes. This article also features a possible software implementation of this method along with a brief consideration of its peculiarities and gives some simple examples of its use.
![Kun Li](https://c.mql5.com/avatar/avatar_na2.png)
![The Price Histogram (Market Profile) and its implementation in MQL5](https://c.mql5.com/2/0/price__1.png)
The Market Profile was developed by trully brilliant thinker Peter Steidlmayer. He suggested to use the alternative representation of information about "horizontal" and "vertical" market movements that leads to completely different set of models. He assumed that there is an underlying pulse of the market or a fundamental pattern called the cycle of equilibrium and disequilibrium. In this article I will consider Price Histogram — a simplified model of Market Profile, and will describe its implementation in MQL5.
![Kun Li](https://c.mql5.com/avatar/avatar_na2.png)
![Guide to writing a DLL for MQL5 in Delphi](https://c.mql5.com/2/0/delphi_DLL_MQL5__1.png)
The article examines the mechanism of creating a DLL module, using the popular programming language of ObjectPascal, within a Delphi programming environment. The materials, provided in this article, are designed to primarily target beginner programmers, who are working with problems, which breach the boundaries of the embedded programming language of MQL5, by connecting the outside DLL modules.
![Kun Li](https://c.mql5.com/avatar/avatar_na2.png)
![Kun Li](https://c.mql5.com/avatar/avatar_na2.png)
![MQL5 Cookbook: ОСО Orders](https://c.mql5.com/2/17/OCO-Orders-MetaTrader5.png)
Any trader's trading activity involves various mechanisms and interrelationships including relations among orders. This article suggests a solution of OCO orders processing. Standard library classes are extensively involved, as well as new data types are created herein.
![Kun Li](https://c.mql5.com/avatar/avatar_na2.png)
![Plotting trend lines based on fractals using MQL4 and MQL5](https://c.mql5.com/2/18/TrendLines_Fractals_Based.png)
The article describes the automation of trend lines plotting based on the Fractals indicator using MQL4 and MQL5. The article structure provides a comparative view of the solution for two languages. Trend lines are plotted using two last known fractals.
![Kun Li](https://c.mql5.com/avatar/avatar_na2.png)
![Random Forests Predict Trends](https://c.mql5.com/2/11/Random_Forest_MetaTrader5.png)
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.
![Kun Li](https://c.mql5.com/avatar/avatar_na2.png)
![Kun Li](https://c.mql5.com/avatar/avatar_na2.png)
![Controlling the Slope of Balance Curve During Work of an Expert Advisor](https://c.mql5.com/2/0/Balance_Angle_Control_MQL5.png)
Finding rules for a trade system and programming them in an Expert Advisor is a half of the job. Somehow, you need to correct the operation of the Expert Advisor as it accumulates the results of trading. This article describes one of approaches, which allows improving performance of an Expert Advisor through creation of a feedback that measures slope of the balance curve.
![Kun Li](https://c.mql5.com/avatar/avatar_na2.png)
![CCI indicator. Upgrade and new features](https://c.mql5.com/2/47/new_oscillator.png)
In this article, I will consider the possibility of upgrading the CCI indicator. Besides, I will present a modification of the indicator.
![Kun Li](https://c.mql5.com/avatar/avatar_na2.png)
![Data Science and Machine Learning (Part 05): Decision Trees](https://c.mql5.com/2/48/tree_decision__1.png)
Decision trees imitate the way humans think to classify data. Let's see how to build trees and use them to classify and predict some data. The main goal of the decision trees algorithm is to separate the data with impurity and into pure or close to nodes.
![Kun Li](https://c.mql5.com/avatar/avatar_na2.png)
![Kun Li](https://c.mql5.com/avatar/avatar_na2.png)
![Yousufkhodja Sultonov](https://c.mql5.com/avatar/2011/2/4D5C0B78-C78A.jpg)
![Kun Li](https://c.mql5.com/avatar/avatar_na2.png)
![Yousufkhodja Sultonov](https://c.mql5.com/avatar/2011/2/4D5C0B78-C78A.jpg)
![Теория Чарльза Доу](https://c.mql5.com/3/342/2147430794926.png)
![Kun Li](https://c.mql5.com/avatar/avatar_na2.png)
![Yousufkhodja Sultonov](https://c.mql5.com/avatar/2011/2/4D5C0B78-C78A.jpg)
![Kun Li](https://c.mql5.com/avatar/avatar_na2.png)
![Programming a Deep Neural Network from Scratch using MQL Language](https://c.mql5.com/2/43/mql5-neural-network-from-scratch.png)
This article aims to teach the reader how to make a Deep Neural Network from scratch using the MQL4/5 language.
![Kun Li](https://c.mql5.com/avatar/avatar_na2.png)
![Yousufkhodja Sultonov](https://c.mql5.com/avatar/2011/2/4D5C0B78-C78A.jpg)
![Kun Li](https://c.mql5.com/avatar/avatar_na2.png)
![What you can do with Moving Averages](https://c.mql5.com/2/45/moving_averages.png)
The article considers several methods of applying the Moving Average indicator. Each method involving a curve analysis is accompanied by indicators visualizing the idea. In most cases, the ideas shown here belong to their respected authors. My sole task was to bring them together to let you see the main approaches and, hopefully, make more reasonable trading decisions. MQL5 proficiency level — basic.