Studying MQL: Your First Martingale Expert Advisor
Author: Sergey aka xbms

Hello, gentlemen traders!
We continue our MQL4 lessons. And this time we will write an expert advisor that will work on the Martingale system (among traders such robots are simply called "Martingales"). This will be a very simple expert that can serve you as a basis for further research and the development of your own "Holy Grail".
Homework

Using the knowledge that you acquired after this lesson, I ask you to improve the expert advisor as follows:
- Add an external parameter MaxOrders and modify the expert advisor so that it does not open more orders than specified in this variable.
- Add a parameter MaxLoss, which will be responsible for the maximum permissible loss in points for the expert advisor (be sure to take volumes into account). If this happens, close all open orders.
P.S. If you have just joined us, start by watching the previous lessons:
- Introduction to MQL
- Loops, functions and orders in an expert advisor.
- Writing an expert advisor on an external indicator
Forum thread
Best regards, Sergey aka xbms TradeLikeaPro.ru
#mql#video
We continue our MQL4 lessons, and this time we will write an expert advisor that will work on the Martingale system.