Lavoro terminato
Tempo di esecuzione 5 giorni
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

- 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.
Con risposta
Arbitraggio
123
32%
/
41%
Pubblicati: 1 codice