Pivot Indicator error ... Compiled success but error in Expert Tabs

 

Hello,

i got pivot indicator, there's no error in visual, but unfortunately it logs for error in Expert Tabs.


i looked at the source code.. the error located in here:

ArrayInitialize(Weekly_Price, 0);
ArrayCopyRates(Weekly_Price, Symbol(), 10080);


anybody coud help me trace what's wrong and how it could happen (because i read the documentation and it supposed not return error)....

Files: