Developing a multi-currency Expert Advisor — source codes from a series of articles – library MetaTrader 5

Developing a multi-currency Expert Advisor — source codes from a series of articles - library for MetaTrader 5
This series of articles is in the process of being written. As we move forward, source codes from new articles will be added to this library. It is recommended to review the code in the order of publication of articles in order to better monitor the development and changes made. At this stage, the general … Read more

MQL5 Programming for Traders – Source Codes from the Book. Part 1 – EA MetaTrader 5

Editing, Compiling, and Running Programs
Part 1. Introduction to MQL5 and development environment The first book part entitled “Introduction to MQL5 and development environment” describes the basics of the MQL5 languages and development environment. One of the new features introduced in the MQL5 language compared to MQL4 (MetaTrader 4 language) is support for object-oriented programming (OOP), which makes it similar … Read more

MQL5 Programming for Traders – Source Codes from the Book. Part 2 – EA MetaTrader 5

Fundamentals of MQL5 programming
Part 2. Fundamentals of MQL5 programming “Part 2. MQL5 programming fundamentals” is an introduction to the key concepts of this programming language. Like any other language, MQL5 is based on several fundamental concepts that serve as building blocks for creating complex programs. This part of the book is devoted to data types, identifiers, variables, expressions, … Read more

MQL5 Programming for Traders – Source Codes from the Book. Part 3 – EA MetaTrader 5

Object Oriented Programming in MQL5
Part 3. Object Oriented Programming in MQL5 “Part 3. “Object Oriented Programming in MQL5” offers an immersion into the world of object-oriented programming (OOP) in the MQL5 language. Software development often involves the complexity related to the management of multiple entities, requiring advanced technology to improve programming convenience, productivity, and quality. The OOP technology is … Read more

MQL5 Programming for Traders – Source Codes from the Book. Part 4 – EA MetaTrader 5

Built-in MQL5 functions
Part 4. Common MQL5 APIs In the previous sections of the book, we delved into the basics of the MQL5 programming language and studied its syntax, rules of use, and key concepts. However, to write real-life programs employing data processing and automated trading, you should use many built-in functions to interact with the MetaTrader 5 … Read more

MQL5 Programming for Traders – Source Codes from the Book. Part 5 – EA MetaTrader 5

Application programs in MQL5
Part 5. Creating application programs in MQL5 In “Part 5. Creating application programs” of the MQL5 Programming for Traders book, we’ll delve deeper into the APIs associated with algorithmic trading, including financial data analysis and processing, chart visualization, automation, and user interactions. We will start with the general principles of creating MQL programs and will … Read more

MQL5 Programming for Traders – Source Codes from the Book. Part 6 – EA MetaTrader 5

Trading automation
Part 6. Trading automation In “Part 6. Trading automation” of the “MQL5 Programming for Traders”, we will study a key component of the MQL5 language. We will start with a description of the fundamental entities, such as financial instrument specifications and trading account settings. These are prerequisites for creating properly operating Expert Advisors. Then we … Read more

MQL5 Programming for Traders – Source Codes from the Book. Part 7 – EA MetaTrader 5

Advanced MQL5 tools
Part 7. Advanced MQL5 tools “Part 7. Advanced MQL5 tools” of the “MQL5 Programming for Traders” book discusses the advanced capabilities of the MQL5 API, which will be useful when developing programs for MetaTrader 5. These include custom financial symbols, built-in economic calendar events, and general-purpose technologies such as networking, databases, and cryptography. This part … Read more