Trough
- trough

Basic price pattern detection
(AFL 1.1)


SYNTAX Trough(ARRAY, change, n = 1)
RETURNS ARRAY
FUNCTION Gives the value of ARRAY n-th trough(s) ago. This uses the Zig Zag function (see Zig Zag) to determine the troughs. Caveat: this function is based on Zig-Zag indicator and may look into the future.
EXAMPLE trough(close,5,1)
SEE ALSO

Comments:

Tomasz Janeczko
tj --at --- amibroker.com
2007-09-24 03:31:47
Zig/Peak/Trough functions work correctly for ARRAYS containing data greater than zero.

References:

The Trough function is used in the following formulas in AFL on-line library:

More information:

Updated on-line reference