For ZIGHL afl go to (amongst others): Joris Schuller; Sat 11/07/2009 10:25
AM 

pkbars=PeakBars(H,ZigPerc); //if you use the ZIGHL formula, otherwise
replace H by C when using AB-Zig

trbars=TroughBars(L,ZigPerc); //if you use the ZIGHL formula, otherwise
replace L by C when using AB-Zig

if pkbars<trbars: peak, otherwise trough

From: amibroker@yahoogroups.com [mailto:amibro...@yahoogroups.com] On Behalf
Of Richard
Sent: Tuesday, November 17, 2009 7:12 PM
To: amibroker@yahoogroups.com
Subject: [amibroker] ZIG peak and trough detection

 

  

Hello, Could someone help me with the AFL code for ZIG function peak and
trough detection? 
I want to check if the last ZIG value is a Peak or a Trough.
Do I need to use loop code or is there a way to use LastValue to detect this
condition?

Regards
Richard



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.425 / Virus Database: 270.14.67/2506 - Release Date: 11/16/09
07:43:00

Reply via email to