Basic price pattern detection
|SYNTAX||Trough(ARRAY, change, n = 1)|
|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.|
tj --at --- amibroker.com
|Zig/Peak/Trough functions work correctly for ARRAYS containing data greater than zero.|
The Trough function is used in the following formulas in AFL on-line library:
See updated/extended version on-line.