Best formula to find peaks please.

 

What is the best formula to find the last 5 peaks of the market.

Would you use high[iHighest(NULL,0,MODE_HIGH,InpDepth,i)];

Can I use a channel to find it. What is the best accurate method to find the best peaks? With a standard deviation channel it might be more accurate I think

 
what about zigzag indicator ?
 

I used that before but my program crashes when using icustom on 1min and 5min.
Im looking for a more raw method that will be quicker on the draw.

Reason: