EA: Candle Average Trade

MQL5 Эксперты

Работа завершена

Время выполнения 7 минут
Отзыв от заказчика
Sehr guter und geduldiger Programmierer. Gerne wieder!
Отзыв от исполнителя
Toller Kunde! Vielen Dank für die Bestellung!

Техническое задание

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


Откликнулись

1
Разработчик 1
Оценка
(27)
Проекты
27
26%
Арбитраж
2
0% / 50%
Просрочено
1
4%
Свободен
2
Разработчик 2
Оценка
(511)
Проекты
549
53%
Арбитраж
13
69% / 15%
Просрочено
3
1%
Свободен
3
Разработчик 3
Оценка
(547)
Проекты
630
33%
Арбитраж
38
39% / 50%
Просрочено
11
2%
Загружен
4
Разработчик 4
Оценка
(103)
Проекты
165
24%
Арбитраж
23
9% / 78%
Просрочено
16
10%
Работает
5
Разработчик 5
Оценка
(627)
Проекты
846
48%
Арбитраж
29
34% / 14%
Просрочено
63
7%
Работает
6
Разработчик 6
Оценка
(295)
Проекты
472
40%
Арбитраж
103
40% / 23%
Просрочено
78
17%
Занят
Опубликовал: 2 примера
7
Разработчик 7
Оценка
(2302)
Проекты
2898
63%
Арбитраж
122
44% / 25%
Просрочено
429
15%
Свободен
8
Разработчик 8
Оценка
(31)
Проекты
56
21%
Арбитраж
12
67% / 8%
Просрочено
2
4%
Свободен

Информация о проекте

Бюджет
50 - 120 USD
Сроки выполнения
от 1 до 3 дн.