Function to calculate zigzag values

MQL4 Other

Job finished

Execution time 4 hours
Feedback from customer
Great work, fast and accurate.

Specification

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 

Responded

1
Developer 1
Rating
(852)
Projects
1467
72%
Arbitration
123
28% / 47%
Overdue
359
24%
Working
Published: 3 articles
2
Developer 2
Rating
(15)
Projects
68
46%
Arbitration
6
0% / 100%
Overdue
6
9%
Free
3
Developer 3
Rating
(5)
Projects
6
33%
Arbitration
2
0% / 50%
Overdue
2
33%
Free
Published: 6 codes
4
Developer 4
Rating
(180)
Projects
301
30%
Arbitration
54
24% / 56%
Overdue
98
33%
Free

Project information

Budget
25 USD
Deadline
from 1 to 2 day(s)