CopyBuffer failure

 

Hi programmers,


I try to use copybuffer just after iCustom function like that :

   double stopbuff[];
   int myhandle = iCustom("EURUSD",PERIOD_H1,"Examples\\ParabolicSAR.ex5");
   Print(CopyBuffer(myhandle,0,0,1,stopbuff));


In the Real market debugger, the Print returns 1 so the function CopyBuffer works well immediatly.

But if I try that in the Tester, the Print returns -1... and after several time the CopyBuffer function seems work well.

Any ideas about the issue in the tester ?


Thanks !

Erwann.

Reason: