CopyRates: Not sure I fully understand

 
 int Data = CopyRates(SymbolName(i,1),PERIOD_D1, 0, 1,PriceInfo);

The line of code above was extracted from a script I used to calculate the close prices of symbols. However, I do not quite understand what "Data" means in this code.

I need to know what the value would be so that it would help me solve an "array out of range" run time error.  I have searched on the forum for the return value but it's still not clear to me.

If anyone can help, please do tell me what "Data" stands for.

 
Chioma Obunadike:

The line of code above was extracted from a script I used to calculate the close prices of symbols. However, I do not quite understand what "Data" means in this code.

I need to know what the value would be so that it would help me solve an "array out of range" run time error.  I have searched on the forum for the return value but it's still not clear to me.

If anyone can help, please do tell me what "Data" stands for.

If you had read the documentation it is quite obvious and explained well.

When having difficulty, always read the documentation.