Specification

//+------------------------------------------------------------------+
//|                     EA Cruzamento de Médias MT5                  |
//+------------------------------------------------------------------+
#property strict

#include <Trade/Trade.mqh>
CTrade trade;

//---- Inputs
input int FastMAPeriod = 20;
input int SlowMAPeriod = 50;
input double LotSize = 0.01;
input int StopLoss = 300;
input int TakeProfit = 600;

//---- Handles
int fastMAHandle;
int slowMAHandle;

//+------------------------------------------------------------------+
int OnInit()
{
   fastMAHandle = iMA(_Symbol, _Period, FastMAPeriod, 0, MODE_EMA, PRICE_CLOSE);
   slowMAHandle = iMA(_Symbol, _Period, SlowMAPeriod, 0, MODE_EMA, PRICE_CLOSE);
   
   if(fastMAHandle == INVALID_HANDLE || slowMAHandle == INVALID_HANDLE)
   {
      Print("Erro ao criar médias");
      return(INIT_FAILED);
   }
   return(INIT_SUCCEEDED);
}
//+------------------------------------------------------------------+
void OnTick()
{
   if(PositionSelect(_Symbol))
      return;

   double fastMA[2];
   double slowMA[2];

   CopyBuffer(fastMAHandle, 0, 0, 2, fastMA);
   CopyBuffer(slowMAHandle, 0, 0, 2, slowMA);

   double fastCurrent = fastMA[0];
   double fastPrevious = fastMA[1];
   double slowCurrent = slowMA[0];
   double slowPrevious = slowMA[1];

   // Cruzamento para compra
   if(fastPrevious < slowPrevious && fastCurrent > slowCurrent)
   {
      trade.Buy(LotSize, _Symbol, Ask, StopLoss * _Point, TakeProfit * _Point);
   }

   // Cruzamento para venda
   if(fastPrevious > slowPrevious && fastCurrent < slowCurrent)
   {
      trade.Sell(LotSize, _Symbol, Bid, StopLoss * _Point, TakeProfit * _Point);
   }
}
//+------------------------------------------------------------------+

Responded

1
Developer 1
Rating
(35)
Projects
60
22%
Arbitration
4
25% / 25%
Overdue
15
25%
Working
2
Developer 2
Rating
(572)
Projects
664
32%
Arbitration
42
45% / 45%
Overdue
12
2%
Working
3
Developer 3
Rating
(453)
Projects
715
34%
Arbitration
34
71% / 9%
Overdue
22
3%
Free
4
Developer 4
Rating
(1)
Projects
2
0%
Arbitration
0
Overdue
1
50%
Working
5
Developer 5
Rating
(23)
Projects
29
31%
Arbitration
0
Overdue
2
7%
Free
6
Developer 6
Rating
(28)
Projects
39
23%
Arbitration
14
0% / 93%
Overdue
4
10%
Free
7
Developer 7
Rating
(1)
Projects
1
0%
Arbitration
2
0% / 50%
Overdue
0
Free
8
Developer 8
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
9
Developer 9
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
10
Developer 10
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
11
Developer 11
Rating
(50)
Projects
51
8%
Arbitration
0
Overdue
0
Free
12
Developer 12
Rating
(1)
Projects
0
0%
Arbitration
5
0% / 80%
Overdue
0
Free
13
Developer 13
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
14
Developer 14
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
15
Developer 15
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
16
Developer 16
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
17
Developer 17
Rating
(6)
Projects
8
0%
Arbitration
8
13% / 88%
Overdue
0
Free
18
Developer 18
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
19
Developer 19
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
20
Developer 20
Rating
Projects
0
0%
Arbitration
0
Overdue
0
Free
21
Developer 21
Rating
(2)
Projects
2
0%
Arbitration
0
Overdue
0
Free
Published: 1 code
Similar orders
(Please read carefully to fully understand the job) I am looking for a developer who has real knowledge in HFT strategies and the ability to create an EA that can run on a real account and be profitable. I already have an EA that performs well on a demo account, but not on a real account. This EA can be used as an example to build a new strategy. I repeat: it should only be used as a reference, not to modify or
Project Description: I am looking for a Senior MQL5 Developer to build a high-precision Expert Advisor (EA) for the US30 (Dow Jones) index, based on Smart Money Concepts (SMC) and ICT methodologies. The EA must handle multi-timeframe analysis and execute trades with mechanical precision. 1. Multi-Timeframe Analysis & Structural Logic • D1 (Confluence): Automatic plotting of Daily Fair Value Gaps (FVG) and Order

Project information

Budget
30+ USD
Deadline
from 1 to 39 day(s)