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

Trade Copier – Open Source – Multiplatform – Transmitter Side – script MetaTrader 5

Trade Copier - Open Source - Multiplatform - Transmitter Side - script for MetaTrader 5
Each individual trade request is written to “TradeRequest.csv” file in real time. This file will become long with all trade information and will have its name updated automatically every day, using current date on the name, to keep files small enough to be handled. 1 Trade request file will be created on common folder each

Using Moving Averages with an EA (Sample Source Code) – EA MetaTrader 4

Using Moving Averages with an EA (Sample Source Code) - expert for MetaTrader 4
1. ENTRY RULE Long Entry: We will enter long positions on the Golden Cross. The value of the previous moving average is higher than the shorter-term moving average. The value of the moving average two periods ago is lower than the shorter-term moving average. The value of the moving average two periods ago is lower

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

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,

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

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