Trend function

MQL4 Bibliotheken

Auftrag beendet

Ausführungszeit 2 Tage
Bewertung des Entwicklers
very very nice client :)

Spezifikation

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.



Dateien:

JPG
trend.JPG
162.3 Kb

Bewerbungen

1
Entwickler 1
Bewertung
(414)
Projekte
670
33%
Schlichtung
60
17% / 32%
Frist nicht eingehalten
114
17%
Arbeitet
2
Entwickler 2
Bewertung
(878)
Projekte
1390
67%
Schlichtung
117
32% / 42%
Frist nicht eingehalten
215
15%
Frei
3
Entwickler 3
Bewertung
(28)
Projekte
47
23%
Schlichtung
13
31% / 15%
Frist nicht eingehalten
12
26%
Frei
4
Entwickler 4
Bewertung
(555)
Projekte
922
48%
Schlichtung
300
59% / 25%
Frist nicht eingehalten
123
13%
Frei
5
Entwickler 5
Bewertung
(91)
Projekte
144
38%
Schlichtung
67
15% / 48%
Frist nicht eingehalten
55
38%
Frei

Projektdetails

Budget
20 - 30 USD
MwSt (22%): 4.4 - 6.6 USD
Insgesamt: 24.4 - 36.6 USD
Für die Entwickler
18 - 27 USD
Ausführungsfristen
von 2 bis 4 Tag(e)