EMA_Cross_Bot

MQL5 Indikatoren Beratung Forex

Spezifikation

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

Bewerbungen

1
Entwickler 1
Bewertung
(83)
Projekte
142
51%
Schlichtung
8
13% / 75%
Frist nicht eingehalten
21
15%
Frei
2
Entwickler 2
Bewertung
(539)
Projekte
620
33%
Schlichtung
36
39% / 53%
Frist nicht eingehalten
11
2%
Beschäftigt
3
Entwickler 3
Bewertung
Projekte
0
0%
Schlichtung
0
Frist nicht eingehalten
0
Frei
4
Entwickler 4
Bewertung
(151)
Projekte
232
32%
Schlichtung
18
39% / 33%
Frist nicht eingehalten
1
0%
Arbeitet
5
Entwickler 5
Bewertung
(6)
Projekte
8
0%
Schlichtung
8
13% / 88%
Frist nicht eingehalten
0
Frei
6
Entwickler 6
Bewertung
(48)
Projekte
49
8%
Schlichtung
0
Frist nicht eingehalten
0
Frei
7
Entwickler 7
Bewertung
(250)
Projekte
460
26%
Schlichtung
140
20% / 59%
Frist nicht eingehalten
100
22%
Arbeitet
8
Entwickler 8
Bewertung
(44)
Projekte
53
38%
Schlichtung
8
13% / 38%
Frist nicht eingehalten
8
15%
Arbeitet
Ähnliche Aufträge
Quero um robô para MetaTrader 5 que opere baseado em notícias econômicas de alto impacto. Ele deve identificar o horário exato das notícias, aguardar um tempo configurável antes e depois da liberação, e então abrir ordens de compra ou venda com base na volatilidade ou direção dos preços. O robô precisa permitir configurar o tempo de espera antes da entrada, o tamanho do lote, o stop loss, o take profit e o slippage
//+------------------------------------------------------------------+ //| Gold MetaLockDay EA (MT5) | //| Meta líquida diária com MIX de entradas (XAUUSD) | //+------------------------------------------------------------------+ #property strict #include <Trade/Trade.mqh> CTrade trade; //======================== INPUTS ========================// input string InpSymbol = ""; //
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

Projektdetails

Budget
30 - 100 USD
Ausführungsfristen
von 5 bis 10 Tag(e)