EMA Crossover Strategy

MQL5 Experts Scripts

Termos de Referência

Hi.

I have currently written the basis of a simple EMA cross strategy using TradingView Pine script, however it needs work, and I'd like it to be done on MLQ5 for use on metatrader.


The criteria is as follows:


Based on 1H timeframe

Uses 55 and 110 ema's


Entry Criteria

Short: 55 ema cross over 110 ema

Long: 110 ema cross over 55 ema


Exit Criteria

Short TP: -0.4% price difference from entry

Short SL: +0.4% price difference from entry

Short Alt Exit: If Long is signalled


Long TP: +0.4% price difference from entry

Long SL: -0.4% price difference from entry

Long Alt Exit: If Short is signalled


Risk Parameters

2% risk on every trade

No Pyramiding, ie. only 1 open trade for any one currency pair at a time.

Optional trailing stop?


Instruments & Directions

I want to be ably to apply the code on specified pairs in specified directions based on previous backtesting. For example, below are the profitable combinations for 2019, so I'd like to be able to do a similar thing but on a larger backtesting period to maximise profitability.


AUDCAD - Short Only

AUDCHF - Short Only

AUDJPY - Long & Short

AUDNZD - Short Only

CADJPY - Long & Short

CHFJPY - Short Only

EURAUD - Short Only

EURCHF - Short Only

EURGBP - Long & Short

EURJPY - Short Only

EURNZD - Long Only

EURUSD - Long & Short

GBPAUD - Short Only

GBPCAD - Short Only

GBPCHF - Long & Short

GBPJPY - Long & Short

GBPNZD - Short Only

GBPUSD - Short Only

NZDCAD - Long & Short

NZDCHF - Short Only

NZDJPY - Long & Short

NZDUSD - Long & Short

USDCHF - Long & Short

USDJPY - Long Only

XAUUSD - Long Only

USOIL - Long Only

US30 - Short Only

Respondido

1
Desenvolvedor 1
Classificação
(590)
Projetos
789
71%
Arbitragem
9
33% / 33%
Expirado
22
3%
Livre
Publicou: 8 códigos
2
Desenvolvedor 2
Classificação
(19)
Projetos
24
17%
Arbitragem
7
0% / 71%
Expirado
3
13%
Livre
Publicou: 2 artigos, 3 códigos
3
Desenvolvedor 3
Classificação
(647)
Projetos
1295
67%
Arbitragem
84
26% / 49%
Expirado
338
26%
Livre
4
Desenvolvedor 4
Classificação
(119)
Projetos
127
41%
Arbitragem
3
33% / 67%
Expirado
0
Livre
5
Desenvolvedor 5
Classificação
(28)
Projetos
30
63%
Arbitragem
0
Expirado
4
13%
Livre
Publicou: 1 código
6
Desenvolvedor 6
Classificação
(94)
Projetos
148
59%
Arbitragem
16
38% / 13%
Expirado
25
17%
Livre
Publicou: 1 código
7
Desenvolvedor 7
Classificação
(45)
Projetos
91
13%
Arbitragem
34
26% / 59%
Expirado
37
41%
Livre
8
Desenvolvedor 8
Classificação
(52)
Projetos
89
25%
Arbitragem
8
75% / 13%
Expirado
44
49%
Livre
9
Desenvolvedor 9
Classificação
(511)
Projetos
549
53%
Arbitragem
13
69% / 15%
Expirado
3
1%
Livre
10
Desenvolvedor 10
Classificação
(349)
Projetos
463
51%
Arbitragem
41
24% / 49%
Expirado
149
32%
Livre
11
Desenvolvedor 11
Classificação
(1927)
Projetos
3545
88%
Arbitragem
73
40% / 15%
Expirado
268
8%
Livre
12
Desenvolvedor 12
Classificação
(29)
Projetos
49
22%
Arbitragem
14
29% / 21%
Expirado
13
27%
Livre
13
Desenvolvedor 13
Classificação
(96)
Projetos
143
76%
Arbitragem
0
Expirado
2
1%
Livre
14
Desenvolvedor 14
Classificação
(574)
Projetos
945
47%
Arbitragem
309
58% / 27%
Expirado
125
13%
Livre
15
Desenvolvedor 15
Classificação
(3)
Projetos
2
0%
Arbitragem
7
0% / 86%
Expirado
0
Livre
16
Desenvolvedor 16
Classificação
(564)
Projetos
844
73%
Arbitragem
15
53% / 13%
Expirado
193
23%
Livre
17
Desenvolvedor 17
Classificação
(294)
Projetos
470
39%
Arbitragem
102
40% / 24%
Expirado
78
17%
Carregado
Publicou: 2 códigos
18
Desenvolvedor 18
Classificação
(135)
Projetos
163
40%
Arbitragem
11
27% / 73%
Expirado
24
15%
Livre
19
Desenvolvedor 19
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
20
Desenvolvedor 20
Classificação
Projetos
0
0%
Arbitragem
0
Expirado
0
Livre
21
Desenvolvedor 21
Classificação
(8)
Projetos
13
85%
Arbitragem
1
0% / 100%
Expirado
0
Livre
22
Desenvolvedor 22
Classificação
(69)
Projetos
146
34%
Arbitragem
13
8% / 62%
Expirado
26
18%
Livre
Publicou: 6 códigos
23
Desenvolvedor 23
Classificação
(1)
Projetos
1
0%
Arbitragem
2
0% / 100%
Expirado
0
Livre

Informações sobre o projeto

Orçamento
50 - 200 USD
Prazo
para 14 dias