Hi Irwin, In that example, I just kept reloading StockCharts.com's chart for CGNX over and over while counting the peaks with each ZZ value. Nothing very automatic about it.
A more practical way is to change the amt for ZZ by 5 point increments. If you see a bit swing in the number of peaks, then fine tune it in the middle of that spread.