명시
//+------------------------------------------------------------------+
//| 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);
}
}
//+------------------------------------------------------------------+
응답함
1
등급
프로젝트
60
22%
중재
4
25%
/
25%
기한 초과
15
25%
작업중
2
등급
프로젝트
664
32%
중재
42
45%
/
45%
기한 초과
12
2%
작업중
3
등급
프로젝트
715
34%
중재
34
71%
/
9%
기한 초과
22
3%
무료
4
등급
프로젝트
2
0%
중재
0
기한 초과
1
50%
작업중
5
등급
프로젝트
29
31%
중재
0
기한 초과
2
7%
무료
6
등급
프로젝트
39
23%
중재
14
0%
/
93%
기한 초과
4
10%
무료
7
등급
프로젝트
1
0%
중재
2
0%
/
50%
기한 초과
0
무료
8
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
9
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
10
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
11
등급
프로젝트
51
8%
중재
0
기한 초과
0
무료
12
등급
프로젝트
0
0%
중재
5
0%
/
80%
기한 초과
0
무료
13
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
14
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
15
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
16
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
17
등급
프로젝트
8
0%
중재
8
13%
/
88%
기한 초과
0
무료
18
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
19
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
20
등급
프로젝트
0
0%
중재
0
기한 초과
0
무료
21
등급
프로젝트
2
0%
중재
0
기한 초과
0
무료
게재됨: 1 코드
비슷한 주문
(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
프로젝트 정보
예산
30+ USD
기한
에서 1 로 39 일