Trend function

MQL4 Библиотеки

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

Время выполнения 2 дня
Отзыв от исполнителя
very very nice client :)

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

int Trend (int &candles, int &strenght)

 

The idea is to check if the upper timeframe trend agreed with the indicator on the current timeframe.

I need a function that returns 1 if the trend is positive, otherwise 0, moreover I need that the function can also write in the first parameter (candles) how many candles ago the trend started; in the second parameter, it has to write the strenght of the trend, to understand if is a strong trend and when the trend has started.

How to calculate the strength:Consider the % variation of currency value from the start of the trend.

Suppose that I received a signal in D1 that suggest me to go sell. Through this function I want to check if the trend of the upper timeframes, in this case W1 and MN 1, confirm me that going sell is ok, and also understand when the trend started and how much is its strength.

Thus the result should be the same as the image attached.



Файлы:

JPG
trend.JPG
162.3 Kb

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

1
Разработчик 1
Оценка
(414)
Проекты
670
33%
Арбитраж
60
17% / 32%
Просрочено
113
17%
Работает
2
Разработчик 2
Оценка
(879)
Проекты
1392
67%
Арбитраж
117
32% / 42%
Просрочено
215
15%
Свободен
3
Разработчик 3
Оценка
(28)
Проекты
47
23%
Арбитраж
13
31% / 15%
Просрочено
12
26%
Свободен
4
Разработчик 4
Оценка
(564)
Проекты
933
47%
Арбитраж
302
59% / 25%
Просрочено
125
13%
Загружен
5
Разработчик 5
Оценка
(91)
Проекты
144
38%
Арбитраж
67
15% / 48%
Просрочено
55
38%
Свободен

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

Бюджет
20 - 30 USD
VAT (22%): 4.4 - 6.6 USD
Итого: 24.4 - 36.6 USD
Исполнителю
18 - 27 USD
Сроки выполнения
от 2 до 4 дн.