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

 
AMIGA MUNDIAL Calor Junio)))))
 
Alexsandr San:

Borrador de botones, puede ser útil para alguien para mt4

Creo que ya lo tengo todo enganchado. Puede estar en el probador y en el real

//---
input string   t10="----------- Time ------------------";
input datetime HoursFrom        = D'1970.01.01'; // Закрыть всё
input string   t="------------- Balans Parameters -----";
input double   TargetProfit     = 999999.99;     // Баланс + Прибыль(прибавить к балансу)
input double   TargetLoss       = 0;             // Баланс - Убыток(отнять от баланса)
input string   _Orders_="------ Parameters Order ------";
input double   Lots             = 0.01;          // Lots
input int      StopLoss         = 10000;         // StopLoss
input int      TakeProfit       = 10000;         // TakeProfit
input double   TrailingStop     = 300;           // TrailingStop Фиксированный размер трала
input double   TrailingStep     = 50;            // TrailingStep Шаг трала
//---

TimeBalansClose

Archivos adjuntos:
 
Alexsandr San:

Creo que he conectado todo. Puedes hacerlo en el probador y en la vida real

añadió una línea horizontal abre la posición y el reverso a la misma

la vertical cierra todo

//---
input string   t10="----------- Time ------------------";
input datetime HoursFrom        = D'1970.01.01'; // Закрыть всё
input string   t="------------- Balans Parameters -----";
input double   TargetProfit     = 999999.99;     // Баланс + Прибыль(прибавить к балансу)
input double   TargetLoss       = 0;             // Баланс - Убыток(отнять от баланса)
input string   _Orders_="------ Parameters Order ------";
input double   Lots             = 0.01;          // Lots
input int      StopLoss         = 10000;         // StopLoss
input int      TakeProfit       = 10000;         // TakeProfit
input double   TrailingStop     = 300;           // TrailingStop Фиксированный размер трала
input double   TrailingStep     = 50;            // TrailingStep Шаг трала
input string   R_Orders_="----- Revers H Line ---------";
input bool     ReversOrders     = false;         // Revers Horizontal Line
//---

HLinTimeBalansClose

es necesario pulsar los botones de la línea, tal y como se ha dibujado

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

esto es para el probador - para que funcione correctamente compruebe cuando se abre el mercado

Archivos adjuntos:
 
Alexsandr San:

añadido de líneas horizontales abre posiciones y se invierte a la misma

de la línea vertical cierra todo


los botones de la línea deben ser presionados, como se dibuja

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

esto es para el probador - para trabajar normalmente necesito comprobar cuando el mercado abre

interesante utilidad para mt4

ajustes

//---
input string   t10="----------- Time ------------------"; //
input datetime HoursFrom        = D'1970.01.01'; // Закрыть всё
input string   t="------------- Balans Parameters -----"; //
input double   TargetProfit     = 999999.99;     // Баланс + Прибыль(прибавить к балансу)
input double   TargetLoss       = 0;             // Баланс - Убыток(отнять от баланса)
input string   t2="------------ Exchange TP SL --------"; //
input double   InpTProfit       = 1000;          // Exchange TP
input double   InpStopLoss      = 1000000;       // Exchange SL
input string   t0="------------ Lots Parameters -------"; //
input double   InpLots1         = 0.01;          // : Lots 1
input int      InpLots_01       = 200;           // Exchange Lots
input double   InpLots2         = 0.02;          // : Lots 2
input int      InpLots_02       = 400;           // Exchange Lots
input double   InpLots3         = 0.04;          // : Lots 3
input int      InpLots_03       = 800;           // Exchange Lots
input double   InpLots4         = 0.08;          // : Lots 4
input string   _Orders_="------ Parameters Order ------"; //
input int      StopLoss         = 10000;         // StopLoss
input int      TakeProfit       = 10000;         // TakeProfit
input double   TrailingStop     = 300;           // TrailingStop Фиксированный размер трала
input double   TrailingStep     = 50;            // TrailingStep Шаг трала
input string   R_Orders_="----- Revers H Line ---------"; //
input bool     ReversOrders     = false;         // Revers Horizontal Line
//---
Archivos adjuntos:
 
Alexsandr San:

Interesante utilidad para mt4

ajustes

Lo probaré e informaré de cómo funciona

 
Сергей Дыбленко:

Cuando lo pruebe, te diré cómo va.

esta herramienta es más interesante, la línea horizontal es una especie de orden pendiente, y sí, invertir no lo olvides, es como una inversión de polos de compra a venta

también existe esta función

input string   t2="------------ Exchange TP SL --------"; //
input double   InpTProfit       = 1000;          // Exchange TP
input double   InpStopLoss      = 1000000;       // Exchange SL

por ejemplo en la venta, puede haber puntos negativos pero el importe total será cerrado.

aquí está la función con lote

input string   t0="------------ Lots Parameters -------"; //
input double   InpLots1         = 0.01;          // : Lots 1
input int      InpLots_01       = 200;           // Exchange Lots
input double   InpLots2         = 0.02;          // : Lots 2
input int      InpLots_02       = 400;           // Exchange Lots
input double   InpLots3         = 0.04;          // : Lots 3
input int      InpLots_03       = 800;           // Exchange Lots
input double   InpLots4         = 0.08;          // : Lots 4

cuando una posición es deficitaria por encima del total - la siguiente posición se abrirá con un lote mayor

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

todas las funciones funcionan en el probador de estrategias - en el probador de estrategias

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

aquí hay un ejemplo todo iba en menos pero el lote aumentaba de pérdida y(InpTProfit = 10;// Exchange TP) puso 10, como la cantidad total se convirtió en +10 todas las posiciones se cerraron.

Si se abrieran de otra manera, no se cerrarían hasta llegar a +10

Foto de

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

se puede utilizar con muchos pares - por el tiempo todas las posiciones se cerrarán mediante la eliminación de las órdenes pendientes y por los beneficios totales

y también de la línea vertical borrará todo

Instantánea3

 
Alexsandr San:

Interesante utilidad para mt4

ajustes

#versión de la propiedad "1.01"

Se arregló la apertura del lote

input string   t0="------------ Lots Parameters -------"; //
input double   InpLots          = 0.01;          // Lots
input double   InpLots1         = 0.02;          // : Lots 1
input int      InpLots_01       = 200;           // Exchange Lots
input double   InpLots2         = 0.04;          // : Lots 2
input int      InpLots_02       = 400;           // Exchange Lots
input double   InpLots3         = 0.08;          // : Lots 3
input int      InpLots_03       = 800;           // Exchange Lots
input double   InpLots4         = 0.16;          // : Lots 4
Archivos adjuntos:
 
Alexsandr San:

#versión de la propiedad "1.031"

Se ha corregido el cálculo de

#versión de la propiedad "1.032"

Corregida la apertura del Lote

input string   t0="-----  Lots Parameters   -----";              //
input uint     maxLimits                    = 1;                 // Кол-во Позиции Открыть в одну сторону
input double   InpLots                      = 0.01;              // Lots
input double   InpLots1                     = 0.02;              // : Lots 1
input int      InpLots_01                   = 200;               // Exchange Lots >< Point Lots
input double   InpLots2                     = 0.04;              // : Lots 2
input int      InpLots_02                   = 400;               // Exchange Lots >< Point Lots
input double   InpLots3                     = 0.08;              // : Lots 3
input int      InpLots_03                   = 800;               // Exchange Lots >< Point Lots
input double   InpLots4                     = 0.16;              // : Lots 4
Archivos adjuntos:
 
Alexsandr San:

Hice un Asesor Experto en mt4 de la nada para hacer

para este tipo de indicadoreshttps://www.mql5.com/ru/code/8772

Este es uno de los modos

Hay un modo habitual - abrir cerrar

Ligeramente revisado para mejorar

No voy a adjuntar el indicador - usted tiene que elegir a su gusto


Archivos adjuntos:
 
Semaphore Line
Semaphore Line
  • www.mql5.com
или от Горизонтальной линии установить трал.(линии срабатывают от касания)
Razón de la queja: