Discussing the article: "Master MQL5 from Beginner to Pro (Part VI): Basics of Developing Expert Advisors"

 

Check out the new article: Master MQL5 from Beginner to Pro (Part VI): Basics of Developing Expert Advisors.

This article continues the series for beginners. Here we will discuss the basic principles of developing Expert Advisors (EAs). We will create two EAs: the first one will trade without indicators, using pending orders, and the second one will be based on the standard MA indicator, opening deals at the current price. Here I assume that you are no longer a complete beginner and have a relatively good command of the material from the previous articles.

At last, we've reached the stage of creating Expert Advisors (EAs). In a way, we've crossed the Rubicon.

To make the most of this article, you should already be comfortable with the following concepts:

  • Variables (local and global), 
  • Functions and their parameters (both by reference and by value), 
  • Arrays (including a basic understanding of series arrays),
  • Core operators, including logical, arithmetic, conditional (if, switch, ternary), and loop operators (primarily 'for', but familiarity with 'while' and 'do...while' is also useful).

From a programmer's perspective, Expert Advisors aren't much more complex than indicators which we discussed in the previous article of this series. Trading logic similarly involves checking for certain conditions and, if those conditions are met, performing an action (typically sending a trade order to the server). The key is understanding the structure of trade orders, knowing the functions for sending those orders, and being able to access the necessary data for trading.


Author: Oleh Fedorov

 
Thank you so much for your hard work! A lot of things became clear and easy.
 

excellent clear article and a lot of things are explained - thank you very much. Especially at the end how to use indicators through classes! Cool! I will consider to test prototypes in my development of simple TS.

 
Cheers! Glad it helped.
 

Thank you so much!

We are looking forward to your next part.

 
Just wanted to say thank you for these tutorials. They are very helpful.