EMA_Cross_Bot

MQL5 Indicadores Asesoramiento Fórex

Tarea técnica

//+------------------------------------------------------------------+
//| Expert advisor simples: Cruzamento de EMAs |
//+------------------------------------------------------------------+
input int EMA_Fast = 9;
input int EMA_Slow = 21;
input double LotSize = 0.1;
input int Slippage = 3;

int fast_ema_handle;
int slow_ema_handle;

double fast_ema[], slow_ema[];

int OnInit()
  {
   fast_ema_handle = iMA(_Symbol, _Period, EMA_Fast, 0, MODE_EMA, PRICE_CLOSE);
   slow_ema_handle = iMA(_Symbol, _Period, EMA_Slow, 0, MODE_EMA, PRICE_CLOSE);
   return(INIT_SUCCEEDED);
  }

void OnTick()
  {
   if(CopyBuffer(fast_ema_handle, 0, 0, 2, fast_ema) < 0) return;
   if(CopyBuffer(slow_ema_handle, 0, 0, 2, slow_ema) < 0) return;

   double ema_fast_now = fast_ema[0];
   double ema_fast_prev = fast_ema[1];
   double ema_slow_now = slow_ema[0];
   double ema_slow_prev = slow_ema[1];

   if (ema_fast_prev < ema_slow_prev && ema_fast_now > ema_slow_now)
     {
      if(PositionSelect(_Symbol)) PositionClose(_Symbol); // Fecha se já existe posição
      trade.Buy(LotSize, _Symbol, Ask, Slippage);
     }
   else if (ema_fast_prev > ema_slow_prev && ema_fast_now < ema_slow_now)
     {
      if(PositionSelect(_Symbol)) PositionClose(_Symbol);
      trade.Sell(LotSize, _Symbol, Bid, Slippage);
     }
  }

Han respondido

1
Desarrollador 1
Evaluación
(83)
Proyectos
143
52%
Arbitraje
8
13% / 75%
Caducado
22
15%
Libre
2
Desarrollador 2
Evaluación
(634)
Proyectos
741
34%
Arbitraje
49
53% / 39%
Caducado
14
2%
Trabaja
3
Desarrollador 3
Evaluación
Proyectos
0
0%
Arbitraje
0
Caducado
0
Libre
4
Desarrollador 4
Evaluación
(153)
Proyectos
241
34%
Arbitraje
21
48% / 29%
Caducado
3
1%
Libre
5
Desarrollador 5
Evaluación
(6)
Proyectos
8
0%
Arbitraje
8
13% / 88%
Caducado
0
Libre
6
Desarrollador 6
Evaluación
(50)
Proyectos
51
8%
Arbitraje
0
Caducado
0
Libre
7
Desarrollador 7
Evaluación
(252)
Proyectos
462
26%
Arbitraje
139
20% / 60%
Caducado
100
22%
Libre
8
Desarrollador 8
Evaluación
(44)
Proyectos
53
38%
Arbitraje
8
13% / 38%
Caducado
8
15%
Libre
Solicitudes similares
Quero criar uma automação com minha identidade visual e que seja algo minimamente rentável…. Pq quero criar conteúdo e entregar o robo para meus alunos, Precisa ser algo principalmente com o ativo Xauusd, Quero ver Projetos e ideias tbm… porem minha ideia é ter algo automático mesmo pros futuros alunos
I need an indicator with strategys that wil help me with my LOW RRR trades (0.06:1, 0.1:1, 0.2:1) that i make every single day AND I DONT WANT to hear that Low RRR is risky. lesgo: 1- I will be utilizing this indicator every single day, and i will make up to 2 trades of this low rrr a day. I need a person that really knows what strategy fit most on the low rrr indicator. 2- I will open up to 10 diferent charts of

Información sobre el proyecto

Presupuesto
30 - 100 USD
Plazo límite de ejecución
de 5 a 10 día(s)