An Expert Advisor for 2 MA cross

MQL4 Tradução

Trabalho concluído

Tempo de execução 1 dia
Comentário do desenvolvedor
Very thanks for order! Please let me know if you need programmer!
Comentário do cliente
Job done in a timely manner

Termos de Referência

Just an EA I can attach to a chart so once Slow EMA crosses the Fast EMA (slow EMA is above the fast EMA) I want the EA to enter a short position and once the Fast EMA crosses the slow EMA (the fast EMA is above the slow) I want the EA to buy and enter long. I want the EMA to close orders at the intersection of the EMAs and enter a position either by buying or selling.

MA's time frame as per the launched pair.

MA's values must be fully configurable: Period, Method (exponential, simple,...), Apply to (open, close,...) 

No need to close multiple EA's as I will run just one EA per pair/account so it can work by using the same magic number as the running EA.

Specifications:

1.       1.  An EA that trades at the intersection of 2 MAs based on the closing of the previous bar.

2.       2.  EA Signal is based on the previous candle.

3.       3.  A trailing stop loss.

4.      4.   Trend is determined based on the Exponential Moving Average with the specified period (InpMATrendPeriod). If the fast EMA value is greater than the previous one, the trend is seen as growing (ema_fast > ema_slow). Alternatively, if fast EMA is below the previous one, the trend is considered to be falling (ema_fast< ema_slow).

5.     5.  Trading Signals:

  • Buy signal: the fast MA line crosses the slow MA line upwards (ema_fast > ema_slow)
  • Sell signal: the main fast MA line crosses the slow MA line downwards (ema_fast< ema_slow). The below figure shows Buy and Sell cases.

6. Positions are closed at opposite signals: Buy positions are closed at Sell signals, and Sell positions are closed at Buy signals.

7. Positions are opened at the market price, when a new bar emerges. The Expert Advisor is to be tested using Open prices (for buying and selling signal) and Close prices (for the MA intersection signal and closing open orders).

 


Parameters:

Fast EMA period: 20

Slow EMA period: 7

shift for both fast and slow : 0

Slippage:0

TakeProfit: 0

StopLoss:0

The takeprofit is Zero as it will takeprofit / loss at the intersection by closing the orders



Any question, please, just ask.


Thank you.

Arquivos anexados:

Respondido

1
Desenvolvedor 1
Classificação
(1305)
Projetos
1734
49%
Arbitragem
55
67% / 16%
Expirado
38
2%
Livre
2
Desenvolvedor 2
Classificação
(390)
Projetos
416
30%
Arbitragem
74
19% / 72%
Expirado
52
13%
Trabalhando
3
Desenvolvedor 3
Classificação
(885)
Projetos
1410
67%
Arbitragem
123
32% / 41%
Expirado
217
15%
Livre
Publicou: 1 código
4
Desenvolvedor 4
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
5
Desenvolvedor 5
Classificação
(332)
Projetos
485
40%
Arbitragem
82
11% / 63%
Expirado
77
16%
Livre
Publicou: 1 código
6
Desenvolvedor 6
Classificação
(590)
Projetos
789
71%
Arbitragem
9
33% / 33%
Expirado
22
3%
Livre
Publicou: 8 códigos
7
Desenvolvedor 7
Classificação
(114)
Projetos
154
47%
Arbitragem
2
0% / 50%
Expirado
4
3%
Livre
8
Desenvolvedor 8
Classificação
(455)
Projetos
721
34%
Arbitragem
35
71% / 9%
Expirado
23
3%
Livre
9
Desenvolvedor 9
Classificação
(88)
Projetos
143
39%
Arbitragem
21
19% / 48%
Expirado
30
21%
Livre
10
Desenvolvedor 10
Classificação
(645)
Projetos
873
48%
Arbitragem
29
38% / 17%
Expirado
63
7%
Livre
11
Desenvolvedor 11
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
12
Desenvolvedor 12
Classificação
(1156)
Projetos
1462
63%
Arbitragem
21
57% / 10%
Expirado
43
3%
Livre
13
Desenvolvedor 13
Classificação
(574)
Projetos
945
47%
Arbitragem
309
58% / 27%
Expirado
125
13%
Livre
14
Desenvolvedor 14
Classificação
(36)
Projetos
50
28%
Arbitragem
2
0% / 100%
Expirado
6
12%
Livre
15
Desenvolvedor 15
Classificação
(135)
Projetos
163
40%
Arbitragem
11
27% / 73%
Expirado
24
15%
Livre
16
Desenvolvedor 16
Classificação
(620)
Projetos
723
33%
Arbitragem
46
48% / 41%
Expirado
14
2%
Ocupado
17
Desenvolvedor 17
Classificação
(1)
Projetos
1
100%
Arbitragem
0
Expirado
0
Livre
18
Desenvolvedor 18
Classificação
(251)
Projetos
400
54%
Arbitragem
9
67% / 22%
Expirado
36
9%
Livre
Publicou: 2 códigos
19
Desenvolvedor 19
Classificação
(61)
Projetos
83
45%
Arbitragem
27
11% / 70%
Expirado
8
10%
Livre
20
Desenvolvedor 20
Classificação
(96)
Projetos
143
76%
Arbitragem
0
Expirado
2
1%
Livre
21
Desenvolvedor 21
Classificação
(69)
Projetos
146
34%
Arbitragem
13
8% / 62%
Expirado
26
18%
Livre
Publicou: 6 códigos

Informações sobre o projeto

Orçamento
10 - 65 USD
Prazo
para 7 dias