Robot inteligente

MQL5 专家 C++

指定

drán índices de grupos de parámetros.

//+------------------------------------------------------------------+
//| Expert initialization function                                   |
//+------------------------------------------------------------------+
int OnInit() {
   // Load strategy parameter sets
   int totalParams = LoadParams(fileName_, params);

   // If nothing is loaded, report an error 
   if(totalParams == 0) {
      PrintFormat(__FUNCTION__" | ERROR: Can't load data from file %s.\n"
                  "Check that it exists in data folder or in common data folder.",
                  fileName_);
      return(INIT_PARAMETERS_INCORRECT);
   }

   // Selected set groups
   string strGroups[] = {"55,12,3,35,48,54,16,40",
                         "11,54,33,30,62,6,10,23",
                         "50,15,8,34,2,36,4,9",
                         "26,42,25,22,36,51,53,0"
                        };

   // Scaling factors for selected set groups
   double scales[] = {4.16,
                      3.40,
                      3.33,
                      2.76
                     };
                     
   // Set parameters in the money management class
   CMoney::DepoPart(expectedDrawdown_ / 10.0);
   CMoney::FixedBalance(fixedBalance_);

   // Create an EA handling virtual positions
   expert = new CVirtualAdvisor(magic_, "SimpleVolumes_OptGroupForwardCluster");

   CVirtualStrategyGroup *groups[ArraySize(strGroups)];

   FOREACH(strGroups, {
      // Form the string from the parameter set indices separated by commas
      string strIndexes = strGroups[i];

      // Turn the string into the array
      string indexes[];
      StringSplit(strIndexes, ',', indexes);

      // Create and fill the array of all strategy instances
      CVirtualStrategy *strategies[];

      FOREACH(indexes, {
         // Remove the cluster number from the parameter set string
         string param = CSVStringGet(params[StringToInteger(indexes[i])], 0, 11);
         // Add a strategy with a set of parameters with a given index
         APPEND(strategies, new CSimpleVolumesStrategy(param))
      });

      // Add the strategy to the next group of strategies
      groups[i] = new CVirtualStrategyGroup(strategies, scales[i]);
   });

   // Form and add the group of strategy groups to the EA
   expert.Add(CVirtualStrategyGroup(groups, scale_));

   return(INIT_SUCCEEDED);
}

反馈

1
开发者 1
等级
(27)
项目
37
24%
仲裁
14
0% / 93%
逾期
4
11%
空闲
2
开发者 2
等级
(183)
项目
314
24%
仲裁
23
35% / 13%
逾期
24
8%
空闲
发布者: 3 代码
3
开发者 3
等级
(143)
项目
184
42%
仲裁
24
58% / 17%
逾期
12
7%
工作中
4
开发者 4
等级
(291)
项目
468
39%
仲裁
101
41% / 23%
逾期
76
16%
繁忙
发布者: 2 代码
5
开发者 5
等级
(3)
项目
6
17%
仲裁
0
逾期
3
50%
空闲
相似订单
Necesito el desarrollo de un Expert Advisor (EA) para MetaTrader 4 con integración del motor ABBYY OCR. El EA debe: - Capturar información visual (pantalla / ventana específica) - Procesar el texto mediante ABBYY OCR Engine - Interpretar señales extraídas - Ejecutar operaciones automáticas en MT4 según reglas definidas Requisitos técnicos: - Integración estable entre MT4 y ABBYY (DLL / API / bridge externo) - Código
Desarrollar un EA automático para MT5 que opere únicamente en pares principales de Forex y XAUUSD. 2. Integrar la estrategia SMC + ICT, incluyendo: Detección de estructura del mercado (BOS / CHoCH). Identificación de zonas de liquidez y barrido de stops. Reconocimiento de retrocesos Fibonacci en M15 para entradas precisas. 3. Configurar gestión de riesgo automática: SL/TP configurables y tamaño de lote dinámico según

项目信息

预算
50+ USD