Hi I'm trying to understand the peakbars and throughbars function.
In the Amibroker user guide explains that
SYNTAX PeakBars(ARRAY, change, n = 1)
and that function description is
Gives the number of bars that have passed from the n-th peak. This uses the Zig Zag function (see Zig Zag) to determine the peaks. n =1 would return the number of bars that have passed since the most recent peak. n =2 would return the number of bars that have passed since the 2nd most recent peak Caveat: this function is based on Zig-Zag indicator and may look into the future.
But the function description does not explain what is change?