Indicator help

 
Hi,

Can someone please help me with the code to detect the arrows placed on the chart from this indicator? I tried using iCustom and I can't get it to work.

Thanks in advance,

T
Files:
 

for(int i = Bars; i >= 0; i--){

double valueIndex0 = iCustom(Symbol(), 0, "3lMAcCrossdw_Alert", 1, 5, 1, 20, 1, 34, 0, 0, i){

if(valueIndex0 != EMPTY_VALUE ){

print("At bar # "+i+" I found a Cross Up arrow");

}

double valueIndex1 = iCustom(Symbol(), 0, "3lMAcCrossdw_Alert", 1, 5, 1, 20, 1, 34, 0, 1, i){

if(valueIndex1 != EMPTY_VALUE ){

print("At bar # "+i+" I found a Cross Down arrow");

}

}

 
Thank you very much. I'll give it a shot.

Thanks,

T
 
The value that I get back is always 0.0000. Any ideas why?

Thanks,

T
 

Change EMPTY_VALUE to 0 in the code above, try again

Reason: