Forum

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

How can I get last value of Peak and Valley in MQL5?

Hello I wanna get last value of Peak and Valley of Price in MQL5. How can I get last Peak and Valley of last wave in MQL5