Learning MQL: Trailing Stop

How to Insert a Trailing Stop into an Expert Advisor

Good day, young Padawan programmers!

We continue the series of MQL4 lessons. At your request, which was voiced on the forum, today we will write a trailing stop for expert advisors. In this lesson, we will look at several variants of a trailing stop and, perhaps, you will successfully apply one of them in practice when creating your trading expert.

Homework Assignment

PUBLISHED by catsmob.com

Using the knowledge that you acquired after this video lesson, I ask you to write a trailing stop based on:

  • fractals (Fractals);
  • the parabolic indicator (Parabolic SAR).

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 using an external indicator
  • Your first Martingale expert advisor

Forum Topic

Best regards, Sergey aka xbms TradeLikeaPro.ru

We continue the series of MQL4 lessons and today we will write a trailing stop for expert advisors.