What does change mean in the syntax of peak and trough? It is not explained in the reference quide at all.
PEAK
− peak
SYNTAX peak(ARRAY, change, n = 1)
RETURNS ARRAY
FUNCTION
Gives the value of ARRAY n−th peak(s) ago. This uses the Zig Zag function (see Zig Zag) to
determine the peaks.
n =1 would return the value of the most recent peak. n =2 would return
the value of the 2nd most recent peak.
Caveat: this function is based on Zig−Zag indicator
and may look into the future.
EXAMPLE
peak(close,5, 1)
Ahhh...imagining that irresistible "new car" smell?
Check out
new cars at Yahoo! Autos.