The problem with zz is the repainting part, i suggest to skip the first zigzag value..
otherwise your code seems good except that you try to initialise arrays with size 2 with 4 values..
double swing.value[2]={0,0,0,0};
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
hi,
I've been trying to export the number of bars between every zigzag top and bottom, and while the biggest part of the output is correct, there are error values every now and then in the data, and i can't figure the problem. Can someone help please?
Function to get values:
Thanks in advance,
Simon