EA: Candle Average Trade

MQL5 Esperti

Lavoro terminato

Tempo di esecuzione 7 minuti
Feedback del cliente
Sehr guter und geduldiger Programmierer. Gerne wieder!
Feedback del dipendente
Toller Kunde! Vielen Dank für die Bestellung!

Specifiche

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


Con risposta

1
Sviluppatore 1
Valutazioni
(27)
Progetti
27
26%
Arbitraggio
2
0% / 50%
In ritardo
1
4%
Gratuito
2
Sviluppatore 2
Valutazioni
(511)
Progetti
549
53%
Arbitraggio
13
69% / 15%
In ritardo
3
1%
Gratuito
3
Sviluppatore 3
Valutazioni
(547)
Progetti
630
33%
Arbitraggio
38
39% / 50%
In ritardo
11
2%
Caricato
4
Sviluppatore 4
Valutazioni
(103)
Progetti
165
24%
Arbitraggio
23
9% / 78%
In ritardo
16
10%
In elaborazione
5
Sviluppatore 5
Valutazioni
(627)
Progetti
846
48%
Arbitraggio
29
34% / 14%
In ritardo
63
7%
In elaborazione
6
Sviluppatore 6
Valutazioni
(295)
Progetti
472
40%
Arbitraggio
103
40% / 23%
In ritardo
78
17%
Occupato
Pubblicati: 2 codici
7
Sviluppatore 7
Valutazioni
(2302)
Progetti
2898
63%
Arbitraggio
122
44% / 25%
In ritardo
429
15%
Gratuito
8
Sviluppatore 8
Valutazioni
(31)
Progetti
56
21%
Arbitraggio
12
67% / 8%
In ritardo
2
4%
Gratuito

Informazioni sul progetto

Budget
50 - 120 USD
Scadenze
da 1 a 3 giorno(i)