Indicator: ArrayCopySeries internal error...

 

Hi all,

I have spend a lot of time but unsuccessful, I cant correct error "ArrayCopySeries function internal error" of this indicator

I hope some one is more practice in mql4, many thanks in advance!

Files:
indus.mq4  15 kb
 
Couldn't see an obvious problem . . . . I wonder if it might be worth declaring the arrays globally rather than local to the function ?
Reason: