Robot inteligente

MQL5 Esperti C++

Specifiche

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);
}

Con risposta

1
Sviluppatore 1
Valutazioni
(26)
Progetti
33
24%
Arbitraggio
1
0% / 0%
In ritardo
3
9%
Caricato
2
Sviluppatore 2
Valutazioni
(180)
Progetti
305
24%
Arbitraggio
19
37% / 5%
In ritardo
23
8%
Caricato
Pubblicati: 3 codici
3
Sviluppatore 3
Valutazioni
(138)
Progetti
179
42%
Arbitraggio
23
61% / 17%
In ritardo
10
6%
In elaborazione
4
Sviluppatore 4
Valutazioni
(284)
Progetti
458
39%
Arbitraggio
94
44% / 18%
In ritardo
72
16%
Caricato
Pubblicati: 2 codici
5
Sviluppatore 5
Valutazioni
(2)
Progetti
5
0%
Arbitraggio
0
In ritardo
3
60%
Gratuito
Ordini simili
Estoy buscando un programador MQL5 para desarrollar un Expert Advisor para MetaTrader 5 que replique la lógica de mi GoldTradingBot_FixedLot en cAlgo/C# e incluya las siguientes mejoras: Requisitos del proyecto: Portar la lógica del código cAlgo al lenguaje MQL5 (MT5). Gestión de lote dinámico (%) como alternativa a lote fijo. Parámetros externos (inputs) para FixedLotSize, RiskPercent, StopLossPips, TakeProfitPips

Informazioni sul progetto

Budget
50+ USD
Per lo sviluppatore
45 USD