Cómo armo mi asesor por ensayo y error - página 40

 

la opción de arrastre y stop loss es una sola función

input string   t2="------ Obj:Trailing Line     --- ";  // Trailing Obj:Line
input ushort   InpObjTrailingStop      = 0;             // Obj: Trailing Stop or Stop Loss (0 = false)
input ushort   InpObjTrailingStep      = 9;             // Obj: Trailing Step, in pips (1.00045-1.00055=1 pips)

si - 0 no pasará nada

o establecer la distancia - entonces en la apertura de la posición, la línea horizontal se establecerá y a medida que el precio se aleja - la línea horizontal se levantará detrás del precio

 

opción - cómo utilizar un indicador para la pesca de arrastre

input string   t9="------ Auto trading ------";         // Авто Торговля от Индикатора
input bool     OpenedStop              = false;         // Вкл. Opened Buy/Sell
input bool     ClosedStop              = false;         // Вкл. Closed Buy/Sell
input bool     OpenedStopObj           = false;         // Вкл. Horizontal Line(true)
input bool     Revers                  = false;         // Indicator: Revers
//---

Elija un indicador y establezca (true) el indicador por defecto #recurso "\\N-Indicadores\N-Ejemplos\N-de-ZigzagColor.ex5" aquí

input bool ClosedStop = false; // Compra/Venta cerrada. Compra/Venta cerrada

------------------------

También es posible tener una línea horizontal a una distancia determinada del indicador sin abrir una posición - con el siguiente comando

//+------------------------------------------------------------------+
//| Enum TRADE_COMMAND                                               |
//+------------------------------------------------------------------+
enum ENUM_TRADE_COMMAND
  {
   close_buys=0,     // Close All Buy's
   close_sells=1,    // Close All Sell's
   close_all=2,      // Close All Buy's and Sell's
   open_buy=3,       // Open Buy
   open_sell=4,      // Open Sell
   open_buy_sell=5,  // Open Buy and Sell
  };
//+------------------------------------------------------------------+
Документация по MQL5: Константы, перечисления и структуры / Константы объектов / Типы объектов
Документация по MQL5: Константы, перечисления и структуры / Константы объектов / Типы объектов
  • www.mql5.com
При создании графического объекта функцией ObjectCreate() необходимо указать тип создаваемого объекта, который может принимать одно из значений перечисления ENUM_OBJECT. Дальнейшие уточнения свойств созданного объекта возможно с помощью функций по работе с графическими объектами.
 
Explica claramente cómo ganar dinero aquí
 
Дамир Сариев:
Explica claramente cómo ganar dinero aquí

4. Cómo ganar dinero en MQL5.community

Puede aumentar su saldo en el sitio web MQL5.community no sólo depositando, sino también trabajando. Los usuarios de nuestro recurso pueden hacerlo mediante los siguientes servicios.

  • Por cuenta propia. Si eres programador y te sientes capaz de escribir en MQL5 por encargo, puedes encontrar un trabajo por concurso en la sección correspondiente. Una característica distintiva del servicio Freelance es su seguridad. El cliente y el contratista están protegidos de las prácticas desleales de la parte contraria a lo largo de su trabajo conjunto, y si surge algún conflicto, la administración del servicio está preparada para actuar como árbitro.

  • Artículos. Puede publicar artículos sobre diversos temas relacionados con MQL5 y los sistemas de trading automático por iniciativa propia. Las tarifas de los artículos comienzan en 200 dólares, y el coste final dependerá del interés que tenga su artículo para los miembros de la comunidad, según los editores. Puede encontrar todos los detalles en el tema Escribir y ganar dinero en MQL5 en nuestro foro.

  • Elmercado. Aquí puedes vender tus propias aplicaciones escritas en MQL4 y MQL5 a otros miembros de MQL5.community. El Mercado funciona de forma similar a los mercados de aplicaciones móviles. Para poder vender su solicitud en el mercado, debe registrarse como vendedor y publicar su solicitud en el mercado.

  • Señales. ¿Tiene una estrategia de negociación probada? No puede vender un Asesor Experto en sí mismo, sino las señales de trading que genera. Así, puede ajustarlo constantemente a los cambios del mercado, sin revelar todas las sutilezas.

  • Red en la nube MQL5. La mayor parte del tiempo del procesador se pierde, pero se puede alquilar por una pequeña cantidad. Todo lo que necesita es instalar agentes probadores remotos y permitirles participar en la red MQL5 Cloud Network. Puedes retirar el dinero ganado o gastarlo en el Mercado, suscribirte a las Señales y colocar órdenes en Freelance.

Торговые приложения для MetaTrader 5 на заказ
Торговые приложения для MetaTrader 5 на заказ
  • www.mql5.com
Модификация индикатора Boa_ZigZag_Arrows_Duplex_HTF.mq5 1. Модификация индикатора ZigZag путем достройки линий,а так же с возможностью изменения таймфрейма индикатора во входных параметрах. 2. Проведение горизонтальных двух линий . ТЗ при согласовании. / может кто знает Nikolay Kositsin/ Добрый день , Ищу программиста который в кратчайшие...
 

Resulta que se puede utilizar esta función pulsando ( V ) - sólo hay que cambiar el nombre de estas líneas horizontales

así que la versión 4 es totalmente funcional

xxxxxxxxxxxxxxxxxxxxxx

Foto de

Puedes dibujar líneas, renombrarlas y pulsarla tecla (V) una vez más para evitar las líneas horizontales innecesarias.

 

y por eso, ahora he descubierto cómo utilizar los objetos con nombre yo mismo.

Sólo tiene que nombrar los objetos con los nombres del Asesor Experto TOP 1, LOWER 2, TOP 3, LOWER 4 y así sucesivamente.

//+------------------------------------------------------------------+
//| Enum TRADE_COMMAND                                               |
//+------------------------------------------------------------------+
enum ENUM_TRADE_COMMAND
  {
   close_buys=0,     // Close All Buy's
   close_sells=1,    // Close All Sell's
   close_all=2,      // Close All Buy's and Sell's
   open_buy=3,       // Open Buy
   open_sell=4,      // Open Sell
   open_buy_sell=5,  // Open Buy and Sell
  };
//+------------------------------------------------------------------+
 

#versión de la propiedad "1.05"

no hay cambios en el propio código

la configuración por defecto ha cambiado un poco

//+------------------------------------------------------------------+
input string   t0="------ Parameters --------";         // Настройка Эксперта
input string   Template                = "ADX";         // Имя шаблона(without '.tpl')
input datetime HoursFrom               = D'1970.01.01'; // Время старта Эксперта
input datetime HoursTo                 = D'2030.12.31'; // Время закрытия всех позиций
input double   TargetProfit            = 900000.00;     // Цель Баланса(Ваш Баланс + сумма)
input uint     maxLimits               = 1;             // Кол-во Позиции Открыть в одну сторону
input double   MaximumRisk             = 0.01;          // Maximum Risk in percentage
input double   DecreaseFactor          = 3;             // Descrease factor
input ENUM_LOT_OR_RISK InpLotOrRisk    = risk;          // Money management: Lot OR Risk
input string   t1="------ TakeProfit    ----------";    // TakeProfit
input double   InTakeProfit            = 54;            // Take Profit, ("0" -> нельзя,- будет закрывать)
input string   t2="------ Obj:Trailing Line     --- ";  // Trailing Obj:Line
input ushort   InpObjTrailingStop      = 0;             // Obj: Trailing Stop or Stop Loss ("0" -> false)
input ushort   InpObjTrailingStep      = 9;             // Obj: Trailing Step, in pips (1.00045-1.00055=1 pips)
input string   t3="------ Obj:Name 1-2-3-4 ------";     // Имя Объекта
input string   InpObjUpNameZ           = "TOP 1";       // Obj: TOP (Name Obj) ВВЕРХУ 1
input string   InpObjDownNameZ         = "LOWER 2";     // Obj: LOWER (Name Obj) ВНИЗУ 2
input int      Step                    = 0;             // Obj: Шаг сетки, пунктов("0" -> false)
input string   InpObjDownName0         = "TOP 3";       // Obj: TOP (Name Obj) ВВЕРХУ 3
input ENUM_TRADE_COMMAND InpTradeCommand=open_sell;     // Obj:  command:
input string   InpObjUpName0           = "LOWER 4";     // Obj: LOWER (Name Obj) ВНИЗУ 4
input ENUM_TRADE_COMMAND InpTradeCommand0=open_buy;     // Obj:  command:
input string   t4="------ Obj:Name 5-6 ------";         // Имя Объекта
input string   InpObjDownName02        = "TOP 5";       // Obj: TOP (Name Obj) ВВЕРХУ 5
input ENUM_TRADE_COMMAND InpTradeCommand2=open_sell;    // Obj:  command:
input string   InpObjUpName02          = "LOWER 6";     // Obj: LOWER (Name Obj) ВНИЗУ 6
input ENUM_TRADE_COMMAND InpTradeCommand02=open_buy;    // Obj:  command:
input string   t5="- 2_Obj:Trailing Line 7-8-9-10 --- ";// Trailing Obj:Line
input string   InpObjUpNameZx          = "TOP 7";       // Obj: TOP (Name Obj) ВВЕРХУ 7
input string   InpObjDownNameZx        = "LOWER 8";     // Obj: LOWER (Name Obj) ВНИЗУ 8
input int      StepZx                  = 0;             // Obj: Шаг сетки, пунктов("0" -> false)
input string   InpObjUpNameX           = "TOP 9";       // Obj: TOP (Horizontal Line) ВВЕРХУ 9
input ENUM_TRADE_COMMAND InpTradeCommandX=open_buy;     // Obj:  command:
input string   InpObjDownNameX         = "LOWER 10";    // Obj: LOWER (Horizontal Line) ВНИЗУ 10
input ENUM_TRADE_COMMAND InpTradeCommand0X=open_sell;   // Obj:  command:
input ushort   InpObjTrailingStopX     = 15;            // Obj: Trailing Stop (distance from price to object, in pips)
input ushort   InpObjTrailingStepX     = 5;             // Obj: Trailing Step, in pips (1.00045-1.00055=1 pips)
input string   t6="------ Obj: Revers Buy and Sell --"; // Obj: Revers Buy and Sell
input bool     ObjRevers               = false;         // Obj: Revers
input string   t7="------ Button: AVGiS -----";         // AVGiS (Или обычный режим Buy/Sell)
input ENUM_BUTTON Buttons              = Button0;       // Button: Вкл: Копки Buy/Sell
input bool     ObjectLineX             = false;         // Button: Horizontal Line(true) || Buy/Sell(false)
input int      TrailingStop_STOP_LEVEL = 36;            // Button: Trailing Stop LEVEL
input string   t8="------ Indicator Delete ------";     // Удалить Индикатор
input string   short_name              = "Indicator 1"; // INDICATOR_SHORTNAME 1
input string   short_name0             = "Indicator 2"; // INDICATOR_SHORTNAME 2
input bool     Inpres                  = false;         // Delete All Indicators
input string   t9="------ Auto trading ------";         // Авто Торговля от Индикатора
input bool     OpenedStop              = false;         // Вкл. Opened Buy/Sell
input bool     ClosedStop              = false;         // Вкл. Closed Buy/Sell
input bool     OpenedStopObj           = false;         // Вкл. Horizontal Line(true)
input bool     Revers                  = false;         // Indicator: Revers
//---
input double   TargetProfit            = 900000.00;     // Цель Баланса(Ваш Баланс + сумма)

aquí está su saldo más lo que quiere ganar. si la cantidad es menor que su saldo - el experto cerrará la posición abierta y saldrá

input double   InTakeProfit            = 54;            // Take Profit, ("0" -> нельзя,- будет закрывать)

también es muy importante aquí - si es 0 --- entonces la posición abierta, se cerrará inmediatamente

Archivos adjuntos:
Horse_move.mq5  246 kb
 

todo igual - fácil con estas líneas horizontales (que van desde una tecla de ordenador ( V ) o ( M ) rusa)

Presiono - subo y bajo a la posición necesaria, y luego lo renombro si es "BAJO 10" si es "ALTO 9"

y luego presiono (V) o (M) ruso de nuevo - todas las cosas innecesarias serán eliminadas, sólo las que he renombrado permanecerán.

EURUSDH1

 

El resultado no es un Experto sino un constructor

---------------------------------------------------

Ejemplo: cuando alcanza los dígitos verdes, cierra la posición.

abajo, la línea roja sigue al precio y en cuanto lo toque, pasará a vender

(no necesariamente a la venta - cualquier comando - lo que usted establece).

EURUSDH1t

EURUSDH1

 

ejemplo

input uint     maxLimits               = 1;             // Кол-во Позиции Открыть в одну сторону
input double   MaximumRisk             = 0.01;          // Maximum Risk in percentage
input double   DecreaseFactor          = 3;             // Descrease factor
input ENUM_LOT_OR_RISK InpLotOrRisk    = lots;          // Money management: Lot OR Risk

para un lote normal - puede especificar cualquiera de los dos - MaximumRisk = 0.03; // Riesgo máximo en porcentaje

o maxLimits = 3; // Número de posiciones a abrir en un lado

lote 3

Tal vez estoy sufriendo de persecución - pero el lote con el riesgo parecía sospechoso para mí

aquí en el hilohttps://www.mql5.com/ru/forum/326509

Razón de la queja: