a bug in arrayminimum? - page 2

 
doshur:

Understand. Thanks.

but why is there still a return from the arrayminimum if I use this

   double   Bar_Close[];

   ArraySetAsSeries(Bar_Close, true);

   if(CopyClose(Symbol(), 0, 0, 3, Bar_Close) <= 0) return;

   int Shift = ArrayMinimum(Bar_Close, 5, 3);

   Print(Bar_Close[Shift]);

It don't return a value, it gives a run time error :

2013.09.12 12:11:22    doshur_arrayminimum (EURUSD,M30)    array out of range in 'doshur_arrayminimum.mq5' (42,19)

 
angevoyageur:

It don't return a value, it gives a run time error :

2013.09.12 12:11:22    doshur_arrayminimum (EURUSD,M30)    array out of range in 'doshur_arrayminimum.mq5' (42,19)

I forget how I code the line which it still returns a result.
 
doshur:
I forget how I code the line which it still returns a result.
Seems you can't find a bug today, try again tomorrow. :-D
Reason: