Tarea técnica

//+------------------------------------------------------------------+
//| SimpleEA.mq5|
//| Copyright 2023, MetaQuotes Software Corp. |
//+------------------------------------------------------------------+
#property copyright "2023, MetaQuotes Software Corp."
#property link "https://www.mql5.com"
#property version "1.00"
#property strict

input int FastMAPeriod = 12; // Período da média móvel rápida
input int SlowMAPeriod = 26; // Período da média móvel lenta
input double LotSize = 0.1; // Tamanho do lote

double FastMA, SlowMA;

//+------------------------------------------------------------------+
//| Expert initialization function |
//+------------------------------------------------------------------+
int OnInit()
  {
   //--- initialization of indicators
   FastMA = iMA(NULL, 0, FastMAPeriod, 0, MODE_SMA, PRICE_CLOSE, 0);
   SlowMA = iMA(NULL, 0, SlowMAPeriod, 0, MODE_SMA, PRICE_CLOSE, 0);
   
   return(INIT_SUCCEEDED);
  }
//+------------------------------------------------------------------+
//| Expert deinitialization function |
//+------------------------------------------------------------------+
void OnDeinit(const int reason)
  {
   //---
  }
//+------------------------------------------------------------------+
//| Expert tick function |
//+------------------------------------------------------------------+
void OnTick()
  {
   FastMA = iMA(NULL, 0, FastMAPeriod, 0, MODE_SMA, PRICE_CLOSE, 0);
   SlowMA = iMA(NULL, 0, SlowMAPeriod, 0, MODE_SMA, PRICE_CLOSE, 0);
   
   double previousFastMA = iMA(NULL, 0, FastMAPeriod, 0, MODE_SMA, PRICE_CLOSE, 1);
   double previousSlowMA = iMA(NULL, 0, SlowMAPeriod, 0, MODE_SMA, PRICE_CLOSE, 1);
   
   if (previousFastMA < previousSlowMA && FastMA > SlowMA)
   {
      if (OrderSelect(0, SELECT_BY_POS, MODE_TRADES) == false)
      {
         OrderSend(Symbol(), OP_BUY, LotSize, Ask, 2, 0, 0, "Buy Order", 0, 0, clrGreen);
      }
   }
  }
//+------------------------------------------------------------------+

Han respondido

1
Desarrollador 1
Evaluación
(31)
Proyectos
55
5%
Arbitraje
34
0% / 94%
Caducado
24
44%
Trabaja
2
Desarrollador 2
Evaluación
(151)
Proyectos
232
32%
Arbitraje
18
39% / 33%
Caducado
1
0%
Trabaja
3
Desarrollador 3
Evaluación
(539)
Proyectos
620
33%
Arbitraje
36
39% / 53%
Caducado
11
2%
Trabajando
4
Desarrollador 4
Evaluación
(94)
Proyectos
130
9%
Arbitraje
8
25% / 38%
Caducado
28
22%
Trabaja
5
Desarrollador 5
Evaluación
(11)
Proyectos
17
59%
Arbitraje
2
0% / 100%
Caducado
2
12%
Libre
6
Desarrollador 6
Evaluación
Proyectos
1
100%
Arbitraje
0
Caducado
0
Libre
7
Desarrollador 7
Evaluación
(48)
Proyectos
49
8%
Arbitraje
0
Caducado
0
Libre
Solicitudes similares
Tenho uma foto e video(não deu para anexar) de um robo trabalhando com buy stop e sell stop com indicadores de força e volatilidade. Gostaria de saber se consegue construir um

Información sobre el proyecto

Presupuesto
30+ USD
Plazo límite de ejecución
de 15 a 35 día(s)