EMA_Cross_Bot

İş Gereklilikleri

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

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(83)
Projeler
143
52%
Arabuluculuk
8
13% / 75%
Süresi dolmuş
22
15%
Serbest
2
Geliştirici 2
Derecelendirme
(558)
Projeler
645
33%
Arabuluculuk
41
41% / 46%
Süresi dolmuş
11
2%
Meşgul
3
Geliştirici 3
Derecelendirme
Projeler
0
0%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
4
Geliştirici 4
Derecelendirme
(153)
Projeler
237
33%
Arabuluculuk
20
45% / 30%
Süresi dolmuş
2
1%
Çalışıyor
5
Geliştirici 5
Derecelendirme
(6)
Projeler
8
0%
Arabuluculuk
8
13% / 88%
Süresi dolmuş
0
Serbest
6
Geliştirici 6
Derecelendirme
(48)
Projeler
49
8%
Arabuluculuk
0
Süresi dolmuş
0
Serbest
7
Geliştirici 7
Derecelendirme
(250)
Projeler
460
26%
Arabuluculuk
140
20% / 59%
Süresi dolmuş
100
22%
Çalışıyor
8
Geliştirici 8
Derecelendirme
(44)
Projeler
53
38%
Arabuluculuk
8
13% / 38%
Süresi dolmuş
8
15%
Çalışıyor
Benzer siparişler
Robo estilo NeuroMint 30 - 200 USD
Alguem poderia desenvolver um rob estilo o Neuromint? De mini entradas e stops em um unico candle no tempo grafico de 5min? Seria para o XAUUSD e USDJPY de preferencia
✅ Estrutura original preservada ✅ Painel original ✅ Lógica original ✅ Arquitetura original ✅ Sem parâmetros alterados ✅ TF dinâmico ✅3 timeframes : H1 / H4 / D1 Time frame Dinamicos podendo mudar para M1/M30/H1 ou D1/W1/MN Quero que fique como está a imagem abaixo e adicionar extra time frame nas entradas

Proje bilgisi

Bütçe
30 - 100 USD
Son teslim tarihi
from 5 to 10 gün