Need something that will help calculate length and frequency of trend

MQL4 Experten Skripte

Auftrag beendet

Ausführungszeit 3 Tage
Bewertung des Kunden
Good and clear work, pleasure to deal with

Spezifikation

Hello Coders,

 

As stated above, I need to backtest and calculate the length and frequecy of trends, using a SMA with a variable value (ex SMA10) I need a visual when the SMA goes down that means its a down trend and we need to log how long it goes in that direction before it turns and how long it goes in new direction.  I will simply run a backtest in the strategy tester and it should show data like: how many uptrends/downtrends, average duration of uptrend/downtrend, longest trend duration.  I need to filter out a few small trends so perhaps an option to gather data on >=5bar trends or whatever I decide. I also need it to tell me how many 5 bar trends, 6bar trends, 7 bar trends, x bar trends, etc for all the trends there are until the longest trend, so for every duration there is in the trends I want to know how many of them there were to help me analyse the market. The screen can display something like this:

306 uptrends

Average uptrend 7 bars

longest trend 34 bars

67 5 bar trends

56 6 bar trends

33 7 bar trends

26 8 bar trends

24 9 bar trends 

etc until 34 bar trends

 

288 downtrends

Average downtrend x bars

etc

 

Thanks 

 

Bewerbungen

1
Entwickler 1
Bewertung
(71)
Projekte
156
44%
Schlichtung
22
41% / 14%
Frist nicht eingehalten
16
10%
Frei
Veröffentlicht: 10 Beispiele
2
Entwickler 2
Bewertung
(180)
Projekte
301
30%
Schlichtung
54
24% / 56%
Frist nicht eingehalten
98
33%
Frei
3
Entwickler 3
Bewertung
(12)
Projekte
17
35%
Schlichtung
1
0% / 100%
Frist nicht eingehalten
3
18%
Frei

Projektdetails

Budget
20- USD