Functions to calculate S1, S2, S3, R1, R2, R3 and pivot point levels

MQL4 Indicateurs Scripts

Tâche terminée

Temps d'exécution 5 jours
Commentaires du client
Great work, thanks.

Spécifications

I'm looking for the following functions to calculate pivot points, support and resistance levels:

  • function to return the pivot point level using 3 different methods of five-point system and its common variations depending on the given parameter (1-3) or enum and the timeframe:
    • Pivot Point for Current = High (previous) + Low (previous) + Close (previous) / 3
    • P = ((Today\'s O) + Yesterday\'s (H + L + C)) / 4
    • Pivot point system was developed by Tom DeMark
  • function to return S1, S2, S3, R1, R2, R3 values for given timeframe and type of value (either separate functions or all in one):
    • Resistance 1 = (2 x Pivot Point) – Low (previous period) 
    • Support 1 = (2 x Pivot Point) – High (previous period) 
    • Resistance 2 = (Pivot Point – Support 1) + Resistance 1 
    • Support 2 = Pivot Point – (Resistance 1 – Support 1) 
    • Resistance 3 = (Pivot Point – Support 2) + Resistance 2
    • Support 3 = Pivot Point – (Resistance 2 – Support 2)

You can use MT4, but I also considering MT5. It would be great to work on both, but not necessary.

Suggested params: double getPivotPoint(ENUM_TIMEFRAMES tf, uint method), getSupportLevel(ENUM_TIMEFRAMES tf, uint n), getResistanceLevel(ENUM_TIMEFRAMES tf, uint n)

So you can either create 3 functions (for PivotPoint, Support and Resistance levels) or 7, it's up to you.

See Pivot Points page for more details.

Répondu

1
Développeur 1
Évaluation
(885)
Projets
1410
67%
Arbitrage
123
32% / 41%
En retard
218
15%
Gratuit
Publié : 1 code
2
Développeur 2
Évaluation
(620)
Projets
680
57%
Arbitrage
25
16% / 60%
En retard
228
34%
Gratuit
3
Développeur 3
Évaluation
(626)
Projets
984
47%
Arbitrage
32
38% / 34%
En retard
97
10%
Travail
Publié : 6 codes
4
Développeur 4
Évaluation
(414)
Projets
670
33%
Arbitrage
60
17% / 32%
En retard
113
17%
Travail
5
Développeur 5
Évaluation
(253)
Projets
358
49%
Arbitrage
24
25% / 50%
En retard
80
22%
Gratuit
6
Développeur 6
Évaluation
(33)
Projets
35
40%
Arbitrage
11
9% / 91%
En retard
4
11%
Gratuit
Publié : 4 codes
7
Développeur 7
Évaluation
(804)
Projets
1124
43%
Arbitrage
47
49% / 23%
En retard
84
7%
Gratuit
8
Développeur 8
Évaluation
(53)
Projets
79
18%
Arbitrage
13
15% / 54%
En retard
5
6%
Gratuit

Informations sur le projet

Budget
30 - 60 USD
Délais
de 3 à 5 jour(s)