Array out of range

To add comments, please log in or register
Tatenda Maswedza
286
Tatenda Maswedza  
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
286
Tatenda Maswedza  
Tatenda Maswedza:
When I call this function I get an array out of range error
The error occurs in the On Tick function
lippmaje
192
lippmaje  
Tatenda Maswedza:
The error occurs in the On Tick function
Then you should post this, too. :)
To add comments, please log in or register