EMA Crossover Strategy

2019.11.13 Experts Scripts

Specification

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

Responded

1
Developer 1
2019.11.13
Rating
4.98
(475)
Projects
632
69%
Arbitration
8
38% / 25%
Overdue
33
5%
Working
2
Developer 2
2019.11.13
Rating
4.33
(15)
Projects
19
5%
Arbitration
6
0% / 67%
Overdue
4
21%
Working
3
Developer 3
2019.11.13
Rating
4.97
(533)
Projects
1100
66%
Arbitration
81
22% / 47%
Overdue
391
36%
Busy
4
Developer 4
2019.11.13
Rating
4.96
(98)
Projects
106
44%
Arbitration
3
33% / 67%
Overdue
0
Free
5
Developer 5
2019.11.13
Rating
5
(15)
Projects
17
59%
Arbitration
0
Overdue
2
12%
Free
6
Developer 6
2019.11.13
Rating
4.86
(56)
Projects
102
46%
Arbitration
16
38% / 13%
Overdue
12
12%
Free
7
Developer 7
2019.11.13
Rating
5
(4)
Projects
4
0%
Arbitration
1
0% / 100%
Overdue
0
Loaded
8
Developer 8
2019.11.13
Rating
5
(22)
Projects
37
41%
Arbitration
3
67% / 33%
Overdue
26
70%
Free
9
Developer 9
2019.11.13
Rating
4.94
(48)
Projects
49
31%
Arbitration
2
0% / 100%
Overdue
2
4%
Free
10
Developer 10
2019.11.13
Rating
4.96
(169)
Projects
221
41%
Arbitration
21
19% / 67%
Overdue
102
46%
Working
11
Developer 11
2019.11.13
Rating
4.98
(1502)
Projects
2758
86%
Arbitration
66
44% / 12%
Overdue
321
12%
Free
12
Developer 12
2019.11.13
Rating
4.68
(25)
Projects
42
24%
Arbitration
13
31% / 15%
Overdue
11
26%
Working
13
Developer 13
2019.11.13
Rating
5
(18)
Projects
21
48%
Arbitration
0
Overdue
0
Free
14
Developer 14
2019.11.13
Rating
4.88
(348)
Projects
608
50%
Arbitration
168
50% / 32%
Overdue
137
23%
Loaded
15
Developer 15
2019.11.13
Rating
5
(1)
Projects
1
0%
Arbitration
5
0% / 80%
Overdue
0
Free
16
Developer 16
2019.11.13
Rating
5
(361)
Projects
605
69%
Arbitration
12
50% / 17%
Overdue
207
34%
Free
17
Developer 17
2019.11.13
Rating
4.91
(44)
Projects
71
25%
Arbitration
29
31% / 28%
Overdue
13
18%
Busy
18
Developer 18
2019.11.14
Rating
4
(8)
Projects
11
36%
Arbitration
0
Overdue
1
9%
Working
19
Developer 19
2019.11.14
Rating
0
Projects
0
0%
Arbitration
0
Overdue
0
Free
20
Developer 20
2019.11.14
Rating
0
Projects
0
0%
Arbitration
0
Overdue
0
Free
21
Developer 21
2019.11.15
Rating
0
Projects
0
0%
Arbitration
0
Overdue
0
Free
22
Developer 22
2019.11.15
Rating
4.85
(55)
Projects
120
33%
Arbitration
7
14% / 71%
Overdue
28
23%
Working
23
Developer 23
2019.11.18
Rating
5
(1)
Projects
1
0%
Arbitration
0
Overdue
0
Working

Project information

Budget
50 - 200 USD
VAT (20%): 10 - 40 USD
Total: 60 - 240 USD
For the developer
45 - 180 USD
Deadlines
to 14 day(s)

Customer

Placed orders2
Arbitrage count0