Studying MQL: Scripts
Author: Sergey aka xbms

Hello, gentlemen forex programmers!
The series of MQL4 lessons continues. Today we will figure out what a forex script is and what it is used for... This time we will recall several functions of the Metatrader terminal and apply them in practice. And it is quite possible that you will constantly use one of these scripts when working with the terminal.
Homework

Using the knowledge that you acquired after this video lesson, I ask you to write:
- a script for placing protective pending orders (BuyStop/SellStop) for already open positions (the order volume must be twice as large as the existing ones);
- a script for reversing positions, that is, the existing orders must be closed, and instead open orders in the opposite direction;
- when writing the first script, an error was deliberately made in this video lesson that can lead to its incorrect operation. Find it and propose your own solution.
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
- Your first Martingale expert advisor
- Studying MQL: Trailing stop
Forum thread
Best regards, Sergey aka xbms TradeLikeaPro.ru
#mql#video
The series of MQL4 lessons continues. Today we will figure out what a forex script is and what it is used for.