An Expert Advisor for 2 MA cross

MQL4 Traducción

Trabajo finalizado

Plazo de ejecución 1 día
Comentario del Ejecutor
Very thanks for order! Please let me know if you need programmer!
Comentario del Cliente
Job done in a timely manner

Tarea técnica

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.

Archivos adjuntos:

Han respondido

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

Información sobre el proyecto

Presupuesto
10 - 65 USD
Plazo límite de ejecución
a 7 día(s)