Function to calculate zigzag values

MQL4 Lo demás

Trabajo finalizado

Plazo de ejecución 4 horas
Comentario del Cliente
Great work, fast and accurate.

Tarea técnica

Hello, I need a function that calculates zigzag values
based on this zz indicator: https://www.mql5.com/en/code/7796

Function structure:
void get_zz_values(int zz_depth, int zz_deviation, int zz_backstep, int zz_limit){ code }

The function will be writing to two global arrays:
double zz_values[]  - // containing zz_values in order
int zz_barshift[]   - // containing the bar shift of every zz point that was calculated, also in same order

So zz_barshift[0] represents bar shift of zz_values[0] etc...

Guidelines
- The zz calculation logic will be based on - https://www.mql5.com/en/code/7796

- The function will calculate zz values up to zz_limit only (if zz_limit = 5, we calculate only 5 zz values)

- Edit: the function will not use iCustom or special mql4 commands just basic loops, if/else and variables 

Han respondido

1
Desarrollador 1
Evaluación
(852)
Proyectos
1467
72%
Arbitraje
123
28% / 47%
Caducado
359
24%
Trabaja
Ha publicado: 3 artículos
2
Desarrollador 2
Evaluación
(15)
Proyectos
68
46%
Arbitraje
6
0% / 100%
Caducado
6
9%
Libre
3
Desarrollador 3
Evaluación
(5)
Proyectos
6
33%
Arbitraje
2
0% / 50%
Caducado
2
33%
Libre
Ha publicado: 6 ejemplos
4
Desarrollador 4
Evaluación
(180)
Proyectos
301
30%
Arbitraje
54
24% / 56%
Caducado
98
33%
Libre

Información sobre el proyecto

Presupuesto
25 USD
Plazo límite de ejecución
de 1 a 2 día(s)