Termos de Referência

//+------------------------------------------------------------------+
//| M65 PRO ROBOT |
//| Trend + RSI + Risk Management |
//+------------------------------------------------------------------+
#property strict

input double LotSize = 0.01;
input int StopLoss = 100; // points
input int TakeProfit = 200; // points
input int RSI_Period = 14;

int rsiHandle;
int ema50Handle;
int ema200Handle;

//+------------------------------------------------------------------+
int OnInit()
{
   rsiHandle = iRSI(_Symbol, PERIOD_M5, RSI_Period, PRICE_CLOSE);
   ema50Handle = iMA(_Symbol, PERIOD_M5, 50, 0, MODE_EMA, PRICE_CLOSE);
   ema200Handle = iMA(_Symbol, PERIOD_M5, 200, 0, MODE_EMA, PRICE_CLOSE);
   return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
void OnTick()
{
   double rsi[], ema50[], ema200[];
   CopyBuffer(rsiHandle, 0, 0, 1, rsi);
   CopyBuffer(ema50Handle, 0, 0, 1, ema50);
   CopyBuffer(ema200Handle, 0, 0, 1, ema200);

   if(PositionSelect(_Symbol)) return;

   double Ask = SymbolInfoDouble(_Symbol, SYMBOL_ASK);
   double Bid = SymbolInfoDouble(_Symbol, SYMBOL_BID);

   // BUY CONDITION
   if(ema50[0] > ema200[0] && rsi[0] > 55)
   {
      trade.Buy(LotSize, _Symbol, Ask, Ask - StopLoss * _Point, Ask + TakeProfit * _Point);
   }

   // SELL CONDITION
   if(ema50[0] < ema200[0] && rsi[0] < 45)
   {
      trade.Sell(LotSize, _Symbol, Bid, Bid + StopLoss * _Point, Bid - TakeProfit * _Point);
   }
}

Respondido

1
Desenvolvedor 1
Classificação
(28)
Projetos
39
23%
Arbitragem
14
0% / 93%
Expirado
4
10%
Livre
2
Desenvolvedor 2
Classificação
(153)
Projetos
238
33%
Arbitragem
20
45% / 30%
Expirado
2
1%
Livre
3
Desenvolvedor 3
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
Publicou: 8 códigos
4
Desenvolvedor 4
Classificação
(1298)
Projetos
1725
49%
Arbitragem
52
71% / 12%
Expirado
38
2%
Trabalhando
5
Desenvolvedor 5
Classificação
(2320)
Projetos
2921
63%
Arbitragem
123
44% / 25%
Expirado
429
15%
Trabalhando
6
Desenvolvedor 6
Classificação
(2)
Projetos
2
0%
Arbitragem
1
0% / 100%
Expirado
0
Livre
7
Desenvolvedor 7
Classificação
(1)
Projetos
1
0%
Arbitragem
1
0% / 0%
Expirado
0
Trabalhando
8
Desenvolvedor 8
Classificação
(5)
Projetos
7
0%
Arbitragem
8
13% / 75%
Expirado
3
43%
Livre
9
Desenvolvedor 9
Classificação
(297)
Projetos
476
40%
Arbitragem
105
40% / 24%
Expirado
81
17%
Ocupado
Publicou: 2 códigos
10
Desenvolvedor 10
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
11
Desenvolvedor 11
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre

Informações sobre o projeto

Orçamento
30 - 200 USD
Prazo
de 3 para 5 dias