EA: Candle Average Trade

MQL5 Asesores Expertos

Trabajo finalizado

Plazo de ejecución 7 minutos
Comentario del Cliente
Sehr guter und geduldiger Programmierer. Gerne wieder!
Comentario del Ejecutor
Toller Kunde! Vielen Dank für die Bestellung!

Tarea técnica

Hi,

I need an expert Advisor for MT5 which calculates the average of the last candle = ( High+Low)/2  (in every time frame the chart is) and then takes the following action:

If average (last candle) is above average from the candle before then if there is not already long position buy X points above high of last candle. X is to be defined. 

If average (last candle) is below average from the candle before then if there is not already short position sell X points below low of last candle.

The start and finish of the EA should also be set (time).

Trailing Stop and take profit can be predifined for current position or unset (which will results in a position that changes from long to short and the other way around).


example A: X=3  TrailingStop=10  Take Profit=8

candle 1 High: 1020 Low: 1010

candle 2 High: 1030 Low: 1005 (average higher)=> if there is no long position then BuyStop to 1033 (X=3)

candle 3 High: 1035 Low: 1015 (average higher)=> order has triggered: Buy @ 1033; Trailing Stop @ 1025; Take Profit @ 1041

candle 4 High: 1040 Low: 1031 (average higher)=> Trailing Stop @ 1030; Take Profit @ 1041

candle 5 High: 1045 Low: 1032 (average higher)=> Take Profit triggered @ 1041

candle 6 High: 1044 Low: 1031 (average lower)=> if there is no short position then SellStop to 1028 (X=3)

and so on...


example B: X=3  no Trailing Stop and no Take Profit

candle 1 High: 1020 Low: 1010

candle 2 High: 1030 Low: 1005 (average higher) => if there is no long position then BuyStop to 1033 (X=3)

candle 3 High: 1035 Low: 1015 (average higher) => order has triggered: Buy @ 1033

candle 4 High: 1040 Low: 1031 (average higher)

candle 5 High: 1045 Low: 1032 (average higher)

candle 6 High: 1044 Low: 1031 (average lower)=> if there is no short position then Stop of long position to 1028 + SellStop for new position to 1028 (X=3)

and so on...


Han respondido

1
Desarrollador 1
Evaluación
(27)
Proyectos
27
26%
Arbitraje
2
0% / 50%
Caducado
1
4%
Libre
2
Desarrollador 2
Evaluación
(511)
Proyectos
549
53%
Arbitraje
13
69% / 15%
Caducado
3
1%
Libre
3
Desarrollador 3
Evaluación
(547)
Proyectos
630
33%
Arbitraje
38
39% / 50%
Caducado
11
2%
Trabajando
4
Desarrollador 4
Evaluación
(103)
Proyectos
165
24%
Arbitraje
23
9% / 78%
Caducado
16
10%
Trabaja
5
Desarrollador 5
Evaluación
(627)
Proyectos
846
48%
Arbitraje
29
34% / 14%
Caducado
63
7%
Trabaja
6
Desarrollador 6
Evaluación
(295)
Proyectos
472
40%
Arbitraje
103
40% / 23%
Caducado
78
17%
Ocupado
Ha publicado: 2 ejemplos
7
Desarrollador 7
Evaluación
(2302)
Proyectos
2898
63%
Arbitraje
122
44% / 25%
Caducado
429
15%
Libre
8
Desarrollador 8
Evaluación
(31)
Proyectos
56
21%
Arbitraje
12
67% / 8%
Caducado
2
4%
Libre

Información sobre el proyecto

Presupuesto
50 - 120 USD
Plazo límite de ejecución
de 1 a 3 día(s)