EMA_Cross_Bot

MQL5 Indicatori Consulenza Forex

Specifiche

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

Con risposta

1
Sviluppatore 1
Valutazioni
(83)
Progetti
143
52%
Arbitraggio
8
13% / 75%
In ritardo
22
15%
Gratuito
2
Sviluppatore 2
Valutazioni
(619)
Progetti
722
33%
Arbitraggio
46
48% / 41%
In ritardo
14
2%
Caricato
3
Sviluppatore 3
Valutazioni
Progetti
0
0%
Arbitraggio
0
In ritardo
0
Gratuito
4
Sviluppatore 4
Valutazioni
(153)
Progetti
240
34%
Arbitraggio
20
45% / 30%
In ritardo
3
1%
Gratuito
5
Sviluppatore 5
Valutazioni
(6)
Progetti
8
0%
Arbitraggio
8
13% / 88%
In ritardo
0
Gratuito
6
Sviluppatore 6
Valutazioni
(50)
Progetti
51
8%
Arbitraggio
0
In ritardo
0
Gratuito
7
Sviluppatore 7
Valutazioni
(252)
Progetti
462
26%
Arbitraggio
139
20% / 60%
In ritardo
100
22%
Gratuito
8
Sviluppatore 8
Valutazioni
(44)
Progetti
53
38%
Arbitraggio
8
13% / 38%
In ritardo
8
15%
Gratuito
Ordini simili
Vamos aprender a operar no mercado Forex vamos aprender vamos trabalhar no mercado Forex vamos temos tudo para dar certo só trabalho só com trabalho podemos fazer tudo para nossa vida
Preciso de um EA consistente no mercado forex, Pode ser EA de GRID, Scalping, que eu possa escolher até quantas ordens deve abrir, qual o volume do lote, horários para abrir novas ordens, que faça o cálculo das ordens abertas e se estiver no lucro que eu escolher no painel, assim ele fechará, mesmo que eu tenha parado as ordens naquele certo horário. O Setup será básico, de Médias Móveis, Estocástico

Informazioni sul progetto

Budget
30 - 100 USD
Scadenze
da 5 a 10 giorno(i)