Questions from Beginners MQL5 MT5 MetaTrader 5 - page 840

 
Hi. Please tell me how to add CTrailingFixedPips class to any simple Expert Advisor to set fixed trailing in pips
 
gastinets:
Hi. Could you please tell me how to add CTrailingFixedPips class to any simple Expert Advisor to set fixed trailing in pips

Actually, the CTrailingFixedPips class and other classes in the branch are designed for Expert Advisors generated by MQL5 Wizard. Are you sure you need theCTrailingFixedPips CLASS?

 

I need a fixed trailing in pips, so I thought that CTrailingFixedPips class will help, but it was not there, I guess)

I would not like to write a long code, but to use standard library for trailing

 
gastinets:

I thought the CTrailingFixedPips class would help, but I guess it didn't happen)

I would not like to write a long code, but to use the standard library for trailing

Generate an EA in MQL5 Wizard and you won't need to write anything at all :)

 

the Expert Advisor itself is not needed in MQL5 Wizard

can we get an example of how to take a part of code from MQL5 Wizard related to trailing (fixed in pips) and put it into another EA

 
gastinets:

the Expert Advisor itself is not needed in the MQL5 Wizard

Can we get an example of how to take a part of code from MQL5 Wizard related to trailing stop (fixed in pips) and put it into another EA?

Why not? Of course you can.

 

We will take a bow and ask the guru to post an example)

as an option, for the EA from this article https://www.mql5.com/ru/articles/496 (could be considered as a continuation of the tutorial article) *

* at your discretion of course

Быстрый старт или краткий курс для начинающих
Быстрый старт или краткий курс для начинающих
  • 2012.09.14
  • Dmitriy Parfenovich
  • www.mql5.com
Здравствуй дорогой читатель. В данной статье я попробую рассказать и покажу как можно просто и быстро освоить принципы построения торговых советников, работу с индикаторами и т.д. Эта статья ориентирована на новичков, в ней не будет сложных и трудных для понимания примеров. Скорей всего, она не будет интересной и познавательной для тех, кто уже...
 
Vladimir Karputov:

Why can't you? Of course you can.

I was in a hurry, obviously. The CTrailingFixedPips class is only good for Expert Advisors generated by MQL5 Wizard. This class will not work for self-written EAs.

 
What I don't like about MT5 is the limited options on
https://www.mql5.com/ru/docs/predefined
compared to:
https://docs.mql4.com/ru/predefined
also:
https://www.mql5.com/ru/docs/dateandtime
compared to:
https://docs.mql4.com/ru/dateandtime

In this regard, I have a question.
Does anyone know of a library for MT5 that calculates the missing functions
From "Date and time" and "Predefined variables" in MT5,
To have them as they are in MT4
Документация по MQL5: Предопределенные переменные
Документация по MQL5: Предопределенные переменные
  • www.mql5.com
Для каждой выполняющейся mql5-программы поддерживается ряд предопределенных переменных, которые отражают состояние текущего ценового графика на момент запуска программы - эксперта, скрипта или пользовательского индикатора. Значение предопределенным переменным устанавливает клиентский терминал перед запуском mql5-программы на выполнение...
 
Stefan Stoyanov:
What I don't like about MT5 is the limited features on
https://www.mql5.com/ru/docs/predefined
compared to:
https://docs.mql4.com/ru/predefined
also:
https://www.mql5.com/ru/docs/dateandtime
compared to:
https://docs.mql4.com/ru/dateandtime

In this regard, I have a question.
Does anyone know of a library for MT5 that calculates the missing functions
From "Date and time" and "Predefined variables" in MT5,
To have them as they are in MT4

The kodobase is full of libraries and there is an article

Переход с MQL4 на MQL5
Переход с MQL4 на MQL5
  • 2010.05.11
  • Sergey Pavlov
  • www.mql5.com
Данная статья, построенная в форме справочника по функциям MQL4, призвана помочь переходу с MQL4 на MQL5. Для каждой функции языка MQL4 приведено описание и представлен способ ее реализации на MQL5, что позволит вам значительно ускорить перевод своих программ с MQL4 на MQL5. Для удобства функции разбиты на группы, как в документации по MQL4.
Reason: