Help ME I will Get Some Strange Value

 

SomeTimes CopyBuffer Takes a long time and return 65535 into the ZigZag_Copy_Value

while bars is something less than 3000


this makes me crazy

bars=Bars(sSymbol,ThePeriod,StartDate,EndDate);

ZigZag_Copy_value=CopyBuffer(ZigZag_Handle,0,0,bars,ZigZag_Buffer); 
 
I think you shall use Arrayresize
 
      ushort ZigZag_Copy_value=0;
      ArrayResize(ZigZag_Buffer,bars);
      ZigZag_Copy_value=CopyBuffer(ZigZag_Handle,0,0,bars,ZigZag_Buffer);      
      if (ZigZag_Copy_value!=bars){Hoax(ResultFileName);return;}
Marius Ovidiu Sunzuiana


:

I think you shall use Arrayresize

I did it but nothing Changed And Still I get This wired Value

 

it resolved.

at first some indicators makes these wired values. start from period 38th. 

Reason: