Array out of range

 
double    ParabolicSARTest()
      {
        

         int SARTest = 2;
         double SARArray[];
         int SARDefinition = iSAR(_Symbol,_Period,0.02,0.2);
         ArraySetAsSeries(SARArray,true);
         CopyBuffer(SARDefinition,0,0,3,SARArray);
         
         
           
         return(SARArray[0]); 
      
      
      }  
When I call this function I get an array out of range error
 
Tatenda Maswedza:
When I call this function I get an array out of range error
The error occurs in the On Tick function
 
Tatenda Maswedza:
The error occurs in the On Tick function
Then you should post this, too. :)