An Expert Advisor for 2 MA cross

MQL4 Traduction

Tâche terminée

Temps d'exécution 1 jour
Commentaires de l'employé
Very thanks for order! Please let me know if you need programmer!
Commentaires du client
Job done in a timely manner

Spécifications

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.

Dossiers :

Répondu

1
Développeur 1
Évaluation
(1305)
Projets
1734
49%
Arbitrage
55
67% / 16%
En retard
38
2%
Gratuit
2
Développeur 2
Évaluation
(390)
Projets
416
30%
Arbitrage
74
19% / 72%
En retard
52
13%
Travail
3
Développeur 3
Évaluation
(885)
Projets
1410
67%
Arbitrage
123
32% / 41%
En retard
217
15%
Gratuit
Publié : 1 code
4
Développeur 4
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
5
Développeur 5
Évaluation
(332)
Projets
485
40%
Arbitrage
82
11% / 63%
En retard
77
16%
Gratuit
Publié : 1 code
6
Développeur 6
Évaluation
(590)
Projets
789
71%
Arbitrage
9
33% / 33%
En retard
22
3%
Gratuit
Publié : 8 codes
7
Développeur 7
Évaluation
(114)
Projets
154
47%
Arbitrage
2
0% / 50%
En retard
4
3%
Gratuit
8
Développeur 8
Évaluation
(455)
Projets
721
34%
Arbitrage
35
71% / 9%
En retard
23
3%
Gratuit
9
Développeur 9
Évaluation
(88)
Projets
143
39%
Arbitrage
21
19% / 48%
En retard
30
21%
Gratuit
10
Développeur 10
Évaluation
(645)
Projets
873
48%
Arbitrage
29
38% / 17%
En retard
63
7%
Gratuit
11
Développeur 11
Évaluation
Projets
0
0%
Arbitrage
0
En retard
0
Gratuit
12
Développeur 12
Évaluation
(1156)
Projets
1462
63%
Arbitrage
21
57% / 10%
En retard
43
3%
Gratuit
13
Développeur 13
Évaluation
(574)
Projets
945
47%
Arbitrage
309
58% / 27%
En retard
125
13%
Gratuit
14
Développeur 14
Évaluation
(36)
Projets
50
28%
Arbitrage
2
0% / 100%
En retard
6
12%
Gratuit
15
Développeur 15
Évaluation
(135)
Projets
163
40%
Arbitrage
11
27% / 73%
En retard
24
15%
Gratuit
16
Développeur 16
Évaluation
(620)
Projets
723
33%
Arbitrage
46
48% / 41%
En retard
14
2%
Occupé
17
Développeur 17
Évaluation
(1)
Projets
1
100%
Arbitrage
0
En retard
0
Gratuit
18
Développeur 18
Évaluation
(251)
Projets
400
54%
Arbitrage
9
67% / 22%
En retard
36
9%
Gratuit
Publié : 2 codes
19
Développeur 19
Évaluation
(61)
Projets
83
45%
Arbitrage
27
11% / 70%
En retard
8
10%
Gratuit
20
Développeur 20
Évaluation
(96)
Projets
143
76%
Arbitrage
0
En retard
2
1%
Gratuit
21
Développeur 21
Évaluation
(69)
Projets
146
34%
Arbitrage
13
8% / 62%
En retard
26
18%
Gratuit
Publié : 6 codes

Informations sur le projet

Budget
10 - 65 USD
Délais
à 7 jour(s)