Good morning,
I am having a little poltergeist again. I am working with another piece of code which needs the ZigZag indicator. So I created a handle and a buffer for it.
My code only contains an iCustom call to create the handle, there is no copybuffer being called yet nowhere. At runtime, this error is thrown.
Any ideas? Thanks.
2013.08.24 12:35:32 ZigZag (EURUSD,D1) array out of range in 'ZigZag.mq5' (192,32)
This is my code, inside the OnInit function:
There is a bug in ZigZag indicator in this case, I have already reported it to Service Desk.
The problem arises when ExtDepth (1st) input parameter is lower than ExtBackstep (3rd) input parameter. I applied to following correction :
//--- set start position for calculations if(prev_calculated==0) limit=MathMax(ExtDepth, ExtBackstep);
in place of
//--- set start position for calculations if(prev_calculated==0) limit=ExtDepth;
There is a bug in ZigZag indicator in this case, I have already reported it to Service Desk.
The problem arises when ExtDepth (1st) input parameter is lower than ExtBackstep (3rd) input parameter. I applied to following correction :
in place of
There is a bug in ZigZag indicator in this case, I have already reported it to Service Desk.
The problem arises when ExtDepth (1st) input parameter is lower than ExtBackstep (3rd) input parameter. I applied to following correction :
in place of
Finally I got the complete thing to work! Thanks angevoyageur! It has been quite a trip since I started with mql5 some days ago.
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
You agree to website policy and terms of use
Good morning,
I am having a little poltergeist again. I am working with another piece of code which needs the ZigZag indicator. So I created a handle and a buffer for it.
My code only contains an iCustom call to create the handle, there is no copybuffer being called yet nowhere. At runtime, this error is thrown.
Any ideas? Thanks.
2013.08.24 12:35:32 ZigZag (EURUSD,D1) array out of range in 'ZigZag.mq5' (192,32)
This is my code, inside the OnInit function:
This error only happens when the ZZ1 variable is less than 6, and randomly.