Trend function

MQL4 Kütüphaneler

İş tamamlandı

Tamamlanma süresi: 2 gün
Geliştirici tarafından geri bildirim
very very nice client :)

İş Gereklilikleri

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.



Dosyalar:

JPG
trend.JPG
162.3 Kb

Yanıtlandı

1
Geliştirici 1
Derecelendirme
(414)
Projeler
670
33%
Arabuluculuk
60
17% / 32%
Süresi dolmuş
114
17%
Çalışıyor
2
Geliştirici 2
Derecelendirme
(878)
Projeler
1390
67%
Arabuluculuk
117
32% / 42%
Süresi dolmuş
215
15%
Ücretsiz
3
Geliştirici 3
Derecelendirme
(28)
Projeler
47
23%
Arabuluculuk
13
31% / 15%
Süresi dolmuş
12
26%
Ücretsiz
4
Geliştirici 4
Derecelendirme
(555)
Projeler
922
48%
Arabuluculuk
300
59% / 25%
Süresi dolmuş
123
13%
Yüklendi
5
Geliştirici 5
Derecelendirme
(91)
Projeler
144
38%
Arabuluculuk
67
15% / 48%
Süresi dolmuş
55
38%
Ücretsiz

Proje bilgisi

Bütçe
20 - 30 USD
KDV (22%): 4.4 - 6.6 USD
Toplam: 24.4 - 36.6 USD
Geliştirici için
18 - 27 USD
Son teslim tarihi
from 2 to 4 gün