Function to calculate zigzag values

MQL4 其它

工作已完成

执行时间4 小时
客户反馈
Great work, fast and accurate.

指定

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 

反馈

1
开发者 1
等级
(852)
项目
1467
72%
仲裁
123
28% / 47%
逾期
359
24%
工作中
发布者: 3 文章
2
开发者 2
等级
(15)
项目
68
46%
仲裁
6
0% / 100%
逾期
6
9%
空闲
3
开发者 3
等级
(5)
项目
6
33%
仲裁
2
0% / 50%
逾期
2
33%
空闲
发布者: 6 代码
4
开发者 4
等级
(180)
项目
301
30%
仲裁
54
24% / 56%
逾期
98
33%
空闲

项目信息

预算
25 USD
截止日期
从 1 到 2 天