Chang Suk Chung / Profile
- Information
9+ years
experience
|
1
products
|
659
demo versions
|
0
jobs
|
0
signals
|
0
subscribers
|
![Chang Suk Chung](https://c.mql5.com/avatar/2018/2/5A7BABE7-9BF2.png)
![The Prototype of a Trading Robot](https://c.mql5.com/2/0/Prototype_Expert_Advisor_MQL5.png)
This article summarizes and systematizes the principles of creating algorithms and elements of trading systems. The article considers designing of expert algorithm. As an example the CExpertAdvisor class is considered, which can be used for quick and easy development of trading systems.
![Chang Suk Chung](https://c.mql5.com/avatar/2018/2/5A7BABE7-9BF2.png)
![Processing of trade events in Expert Advisor using the OnTrade() function](https://c.mql5.com/2/0/function_ontrade_MQL5.png)
MQL5 gave a mass of innovations, including work with events of various types (timer events, trade events, custom events, etc.). Ability to handle events allows you to create completely new type of programs for automatic and semi-automatic trading. In this article we will consider trade events and write some code for the OnTrade() function, that will process the Trade event.
![Chang Suk Chung](https://c.mql5.com/avatar/2018/2/5A7BABE7-9BF2.png)
![Chang Suk Chung](https://c.mql5.com/avatar/2018/2/5A7BABE7-9BF2.png)
![](https://c.mql5.com/6/748/splash-675539.png)
![](https://c.mql5.com/6/748/splash-675539.png)
![Chang Suk Chung](https://c.mql5.com/avatar/2018/2/5A7BABE7-9BF2.png)
![Chang Suk Chung](https://c.mql5.com/avatar/2018/2/5A7BABE7-9BF2.png)
![](https://c.mql5.com/6/748/splash-675465.png)
![](https://c.mql5.com/6/748/splash-675465.png)
![Chang Suk Chung](https://c.mql5.com/avatar/2018/2/5A7BABE7-9BF2.png)
![An Example of a Trading System Based on a Heiken-Ashi Indicator](https://c.mql5.com/2/0/Heikin_Ashi_MQL5.png)
In this article we look into the question of using a Heiken-Ashi indicator in trading. Based on this indicator, a simple trading system is considered and an MQL5 Expert Advisor is written. Trading operations are implemented on the bases of classes of the Standard class library. The testing results of the reviewed trading strategy, are based on the history, and obtained using the built-in MetaTrader 5 strategy tester, are provided in the article.
![](https://c.mql5.com/6/748/splash-675403.png)
![](https://c.mql5.com/6/748/splash-675029.png)
![Chang Suk Chung](https://c.mql5.com/avatar/2018/2/5A7BABE7-9BF2.png)
You can't miss it.
![Step-By-Step Guide to writing an Expert Advisor in MQL5 for Beginners](https://c.mql5.com/2/0/create_EA_step_by_step_MQL5.png)
The Expert Advisors programming in MQL5 is simple, and you can learn it easy. In this step by step guide, you will see the basic steps required in writing a simple Expert Advisor based on a developed trading strategy. The structure of an Expert Advisor, the use of built-in technical indicators and trading functions, the details of the Debug mode and use of the Strategy Tester are presented.
![](https://c.mql5.com/6/724/splash-665892.png)