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

 

Ejemplo

Para que una línea horizontal (TOP 3 y LOWER 4) salte a una distancia determinada al pulsar el botón

configurado aquí

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:

entrada int Paso=0;// Obj: Paso de rejilla, puntos("0" -> false)

Establecer la distancia. No pasa nada si hay cero

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

aquí(true) - mostrará las líneas horizontales de entrada bool ObjectLineX = false;// Button: Línea horizontal(verdadero) || Compra/Venta(falso)

BOTONES

 
Aleksandr Klapatyuk:

Ejemplo

Para que una línea horizontal (TOP 3 y LOWER 4) salte a una distancia determinada al pulsar el botón

configurado aquí

entrada int Paso= 0; // Obj: Paso de rejilla, puntos("0" -> false)

Establecer la distancia. No pasa nada si hay cero

aquí(true) - mostrará las líneas horizontales de entrada bool ObjectLineX = false; // Button: Línea horizontal(verdadero) || Compra/Venta(falso)

para abrir posiciones inversas de estas líneas

input string   t6="------ Obj: Revers Buy and Sell --"; // Obj: Revers Buy and Sell
input bool     ObjRevers               = false;         // Obj: Revers

set(true)

 

esto es lo que obtuve de los botones de la LÍNEA HORIZONTAL - LOTE 0.01

Resultado

 

ejemplo

trabajar con el indicador - abre posiciones, tanto inmediatamente como puede ser de líneas horizontales

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
//---

para trabajar a partir de líneas horizontales set(true)

input bool     OpenedStopObj           = false;         // Вкл. Horizontal Line(true)

y establecer el paso de las líneas horizontales(TOP 3 y LOWER 4) a una distancia determinadaentrada intPaso=0;// Obj: Paso de rejilla, puntos("0" -> false)

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:

en esta función deentrada string t9="------ Auto trading ------";// Auto Trade from Indicator

Resulta que hay dos posibilidades para invertir

si de líneas horizontales - posiciones abiertas en el reverso

se puede cambiar aquí

input string   t6="------ Obj: Revers Buy and Sell --"; // Obj: Revers Buy and Sell
input bool     ObjRevers               = false;         // Obj: Revers

u otra posibilidad

input bool     Revers                  = false;         // Indicator: Revers

la posición real del Asesor Experto en la apertura - puede invertirse con algunas formas más posibles.

Lo principal es conseguir una competencia en una cuenta de demostración.

la forma en que funciona en el probador - también puede probarlo en el probador.

del indicador

 
Aleksandr Klapatyuk:

ejemplo

trabajar con el indicador - abre posiciones, tanto inmediatamente como puede ser de líneas horizontales

para trabajar a partir de líneas horizontales set(true)

y establecer el paso de las líneas horizontales(TOP 3 y LOWER 4) a una distancia determinada entrada intPaso= 0; // Obj: Paso de la cuadrícula, puntos("0" -> false)

en esta función deentrada string t9="------ Auto trading ------"; // Auto Trade from Indicator

Resulta que hay dos posibilidades para invertir

si de líneas horizontales - posiciones abiertas en el reverso

se puede cambiar aquí

u otra posibilidad

la posición real del Asesor Experto en la apertura - puede invertirse con algunas formas más posibles.

Lo principal es conseguir una competencia en una cuenta de demostración.

el indicador puede ser de otra manera pero no muestra cómo funciona - también puede probarlo en el probador.





es posible cerrar posiciones con esta función desde el indicador - es como un arrastre

establecer aquí (true)

input bool     ClosedStop              = false;         // Вкл. Closed Buy/Sell
 

el indicador puede ser recogido - sustituido en estos lugares

#resource "\\Indicators\\Examples\\ZigzagColor.ex5"

y aquí

//+------------------------------------------------------------------+
//| Initialization of the indicators                                 |
//+------------------------------------------------------------------+
bool CSampleExpert::InitIndicators(void)
  {
//--- create MACD indicator
   if(m_handle_macd==INVALID_HANDLE)
      if((m_handle_macd=iCustom(m_symbol.Name(),Period(),"Examples\\ZigzagColor"))==INVALID_HANDLE)
        {
         printf("Error creating MACD indicator");
         return(false);
        }
//--- succeed
   return(true);
  }
//+------------------------------------------------------------------+

los indicadores de señales son adecuados - por ejemplo,https://www.mql5.com/ru/code/395

escribiendo en el código

//---
#resource "\\Indicators\\BrainTrend2Sig.ex5"
//---

y aquí

//+------------------------------------------------------------------+
//| Initialization of the indicators                                 |
//+------------------------------------------------------------------+
bool CSampleExpert::InitIndicators(void)
  {
//--- create MACD indicator
   if(m_handle_macd==INVALID_HANDLE)
      if((m_handle_macd=iCustom(m_symbol.Name(),Period(),"BrainTrend2Sig"))==INVALID_HANDLE)
        {
         printf("Error creating MACD indicator");
         return(false);
        }
//--- succeed
   return(true);
  }
//+------------------------------------------------------------------+
BrainTrend2Sig
BrainTrend2Sig
  • www.mql5.com
BrainTrend2 BrainTrend2 представляет собой индикатор действующих на рынке трендовых тенденций, окрашивая свечи в зависимости от направления тренда. BrainTrend1Stop BrainTrend1Stop - это индикатор остановки тенденции, пересечение ценой линии стопов означает смену действующей на рынке тенденции и необходимость выхода из сделки...
 

Se han añadido líneas horizontales a este indicadorhttps://www.mql5.com/ru/code/24796

Un tipo de herramienta para trabajar con Expert Advisor

aquí están los nombres de los objetos - que pueden ser conectados al Asesor Experto

input string   t4="------ Obj:Name     ------";     // Имя Объекта
input string   InpFont2              = "TOP";       // Obj: TOP (Obj:Name) ВВЕРХУ
input string   InpFont0              = "AVERAGE";   // Obj: LOWER (Obj:Name) СРЕДНЯЯ
input string   InpFont1              = "LOWER";     // Obj: LOWER (Obj:Name) ВНИЗУ
input bool     InpMove               = false;       // Obj: ObjectMove

AUDCADH1

BB TREND
BB TREND
  • www.mql5.com
Модификация стандартного индикатора Bollinger Bands - в качестве продолжения линий индикатора применяются трендовые линии OBJ_TREND. В качестве цены для расчётов используется цена закрытия Close. Трендовые линии строятся по двум точкам: левая задаётся через...
Archivos adjuntos:
 

y también - el experto

también debería funcionar en las ventanas en nombre del objeto

Foto de

No lo he probado, lo comprobaré el lunes. - pero si no funciona - buscaré la manera de añadir esta función

Acabo de tener una idea.

 

Buen panel resulta - como una información y parada y arrastre se puede establecer pulsando el botón inferior y no soltarlo - se convierte en un arrastre

BUTÓN

 

añadido a este indicadorhttps://www.mql5.com/ja/code/13910 Líneas horizontales

Obj CCI_on CanalPaso

para eliminar del EA - es necesario introducir el nombre del indicador

//---
   string short_name="Obj CCI_on StepChannel";
//---
   IndicatorSetString(INDICATOR_SHORTNAME,short_name);
//---
   return(INIT_SUCCEEDED);
  }
CCI on StepChannel (Volatility StepChannel 付)
CCI on StepChannel (Volatility StepChannel 付)
  • www.mql5.com
ステップチャネルを基準にCCIを表示します。「ボラティリティ・ステップチャネル」も付属しています。
Archivos adjuntos:
Razón de la queja: