Dmitry Fedoseev / Profile
- Information
|
15+ years
experience
|
60
products
|
59
demo versions
|
|
125
jobs
|
0
signals
|
0
subscribers
|
Учебник MQL5 (электронная версия): https://play.google.com/store/books/details?id=M0oREAAAQBAJ
Учебник MQL5 (электронная и бумажная версии): https://ridero.ru/books/programmirovanie_na_yazyke_mql5_ot_osnov_do_indikatorov_i_ekspertov
This article covers general principles of development of graphical controls. We are going to prepare tools for a quick and convenient work with graphical objects, analyze an example of creation of a simple control for entering text or numeric data as well as the ways of using it.
The basic rule of trader - let profit to grow, cut off losses! This article considers one of the basic techniques, allowing to follow this rule - moving the protective stop level (Stop loss level) after increasing position profit, i.e. - Trailing Stop level. You'll find the step by step procedure to create a class for trailing stop on SAR and NRTR indicators. Everyone will be able to insert this trailing stop into their experts or use it independently to control positions in their accounts.
The problem of calculation of the total position volume of the specified symbol and magic number is considered in this article. The proposed method requests only the minimum necessary part of the history of deals, finds the closest time when the total position was equal to zero, and performs the calculations with the recent deals. Working with global variables of the client terminal is also considered.