peak and valley of wave by ZigZag

 

I'm trying to get peak and valley of wave by ZigZag by this code:

int ZZ_handle;
double zz[];
ZZ_handle = iCustom(objBillWilliams_Setting.symbol,PERIOD_M5
                ,"ZigZag",5, 1, 1, 0, 20);
                           
CopyBuffer(ZZ_handle,0,0,20,zz);
ArraySetAsSeries(zz,false);
Comment("ZZ 4 ="+zz[1]);


                          
But value are like these for "EURUSD" in 2020/01/31 - 14:30:

zz[2] = 0.005166500000000004

zz[4] = 0.004979500000000011

witch are not valid!

they should be something like this: 1.10225

Is there anyone can solve this problem?