Specification
//+------------------------------------------------------------------+
//| 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);
}
}
Responded
1
Rating
Projects
143
52%
Arbitration
8
13%
/
75%
Overdue
22
15%
Free
2
Rating
Projects
645
33%
Arbitration
41
41%
/
46%
Overdue
11
2%
Busy
3
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
4
Rating
Projects
237
33%
Arbitration
20
45%
/
30%
Overdue
2
1%
Working
5
Rating
Projects
8
0%
Arbitration
8
13%
/
88%
Overdue
0
Free
6
Rating
Projects
49
8%
Arbitration
0
Overdue
0
Free
7
Rating
Projects
460
26%
Arbitration
140
20%
/
59%
Overdue
100
22%
Working
8
Rating
Projects
53
38%
Arbitration
8
13%
/
38%
Overdue
8
15%
Working
Similar orders
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
Project information
Budget
30 - 100 USD
Deadline
from 5 to 10 day(s)