EA: Candle Average Trade

MQL5 Uzman Danışmanlar

İş tamamlandı

Tamamlanma süresi: 7 dakika
Müşteri tarafından geri bildirim
Sehr guter und geduldiger Programmierer. Gerne wieder!
Geliştirici tarafından geri bildirim
Toller Kunde! Vielen Dank für die Bestellung!

İş Gereklilikleri

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


Yanıtlandı

1
Geliştirici 1
Derecelendirme
(27)
Projeler
27
26%
Arabuluculuk
2
0% / 50%
Süresi dolmuş
1
4%
Serbest
2
Geliştirici 2
Derecelendirme
(511)
Projeler
549
53%
Arabuluculuk
13
69% / 15%
Süresi dolmuş
3
1%
Serbest
3
Geliştirici 3
Derecelendirme
(547)
Projeler
630
33%
Arabuluculuk
38
39% / 50%
Süresi dolmuş
11
2%
Yüklendi
4
Geliştirici 4
Derecelendirme
(103)
Projeler
165
24%
Arabuluculuk
23
9% / 78%
Süresi dolmuş
16
10%
Çalışıyor
5
Geliştirici 5
Derecelendirme
(627)
Projeler
846
48%
Arabuluculuk
29
34% / 14%
Süresi dolmuş
63
7%
Çalışıyor
6
Geliştirici 6
Derecelendirme
(295)
Projeler
472
40%
Arabuluculuk
103
40% / 23%
Süresi dolmuş
78
17%
Meşgul
Yayınlandı: 2 kod
7
Geliştirici 7
Derecelendirme
(2302)
Projeler
2898
63%
Arabuluculuk
122
44% / 25%
Süresi dolmuş
429
15%
Serbest
8
Geliştirici 8
Derecelendirme
(31)
Projeler
56
21%
Arabuluculuk
12
67% / 8%
Süresi dolmuş
2
4%
Serbest

Proje bilgisi

Bütçe
50 - 120 USD
Son teslim tarihi
from 1 to 3 gün