EA: Candle Average Trade

MQL5 Experts

Trabalho concluído

Tempo de execução 7 minutos
Comentário do cliente
Sehr guter und geduldiger Programmierer. Gerne wieder!
Comentário do desenvolvedor
Toller Kunde! Vielen Dank für die Bestellung!

Termos de Referência

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...


Respondido

1
Desenvolvedor 1
Classificação
(27)
Projetos
27
26%
Arbitragem
2
0% / 50%
Expirado
1
4%
Livre
2
Desenvolvedor 2
Classificação
(511)
Projetos
549
53%
Arbitragem
13
69% / 15%
Expirado
3
1%
Livre
3
Desenvolvedor 3
Classificação
(547)
Projetos
630
33%
Arbitragem
38
39% / 50%
Expirado
11
2%
Carregado
4
Desenvolvedor 4
Classificação
(103)
Projetos
165
24%
Arbitragem
23
9% / 78%
Expirado
16
10%
Trabalhando
5
Desenvolvedor 5
Classificação
(627)
Projetos
846
48%
Arbitragem
29
34% / 14%
Expirado
63
7%
Trabalhando
6
Desenvolvedor 6
Classificação
(295)
Projetos
472
40%
Arbitragem
103
40% / 23%
Expirado
78
17%
Ocupado
Publicou: 2 códigos
7
Desenvolvedor 7
Classificação
(2302)
Projetos
2898
63%
Arbitragem
122
44% / 25%
Expirado
429
15%
Livre
8
Desenvolvedor 8
Classificação
(31)
Projetos
56
21%
Arbitragem
12
67% / 8%
Expirado
2
4%
Livre

Informações sobre o projeto

Orçamento
50 - 120 USD
Prazo
de 1 para 3 dias