Wrong values when reading out indicator

 

I want to get the values of the lower and upper line (red ones) of the STARC indicator. I tried to read out indicator buffer 1 and 2 (see the included ea) but they give different values than the STARC prints on the charts. Can someone help me with this problem?

*for some reason i cant attach the file so here is a link http://www.2shared.com/file/WpVJCvYw/question.html*

 

i didn't find the problem but i do find a solution for u

i removed from the indicator the word "extern"

string TimeFrame       = "Current time frame";
int    MA_Period       = 6;
int    ATR_Period      = 15;
int    ATRMa_Mode      = MODE_LWMA;
double KATR            = 2;
int    shift           = 1;

bool   alertsOn        = true;
bool   alertsOnCurrent = false;
bool   alertsOnHighLow = true;
bool   alertsMessage   = true;
bool   alertsSound     = true;
bool   alertsEmail     = false;


& change it like this

     starcup=iCustom(NULL,0,"STARC Bands_alerts+mtf",6,15,1,0);
     starcdown=iCustom(NULL,0,"STARC Bands_alerts+mtf",6,15,2,0);

& walla

 
thanks for your help!