icustom prevous values

 

Hello,

I want to just print simple ZigZag previous High and Low values from shift 0 to 5 But I get zeros


for (int i = 0 ; i<=5;i++){

Print(iCustom(Symbol(),Period(),"ZigZag",12,5,3, MODE_HIGH, i));

Print(iCustom(Symbol(),Period(),"ZigZag",12,5,3, MODE_LOW, i));

}

Can Any body help me Im getting desperate. PLSSSSSSSSSSSSS HELPPPPPPPPPPPPPPPP

 

See what's there to work with:

for (int i = 0 ; i<Bars;i++){

   if( iCustom(Symbol(),Period(),"ZigZag",12,5,3, MODE_HIGH, i) != 0) Print("High i = ", i, "  ", iCustom(Symbol(),Period(),"ZigZag",12,5,3, MODE_HIGH, i));

   if( iCustom(Symbol(),Period(),"ZigZag",12,5,3, MODE_LOW, i)  != 0) Print("Low i = ", i, "  ", iCustom(Symbol(),Period(),"ZigZag",12,5,3, MODE_LOW, i));

}

Reason: