Hi, You can Google this way :
http://www.google.com/search?hl=en&q=site%3Awww.amibroker.com+support+and+resistance&btnG=Search&aq=f&oq=&aqi= This example is "support and resistance" If you want to search for zigzag, modify the string http://www.google.com/search?hl=en&q=site%3Awww.amibroker.com+zigzag&aq=f&oq=&aqi= Best regards ram vel a écrit : > > > Mike > > Thanks for the hint. > Appreciate your advice. It gives some boost. > We are in the babysteps zone. you are in running man zone. > everystep is difficult, that doesnt mean the baby will stop walking. > > By the way the formula is ok working al i did was just insert > Zigperc in below line. > change =Zigperc= Param("% change",5,0.1,25,0.1); > > Another thing, if you have time, can you just point a finger at one afl > that gives support and resistance > with buy sell signals,please > Here is code that is working > but I > > --- On *Wed, 11/18/09, Mike /<sfclimb...@yahoo.com>/* wrote: > > > From: Mike <sfclimb...@yahoo.com> > Subject: [amibroker] Re: ZIG peak and trough detection > To: amibroker@yahoogroups.com > Date: Wednesday, November 18, 2009, 12:17 AM > > > Instead of just blindly copying code, read the description of each > function, in the user guide, so that you can try to understand what > the code is doing. > > The documentation for these is not very clear. But, > PeakBars/TroughBars are based on Zig. Zig uses the second argument > as the minimum percentage change required before being recognized as > a new pivot. Therefore, where you see ZigPerc, you should be using > your own value for what minimum Zig percentage change you want. > > e.g. > > ZigPerc = 5; > > Also, "if pkbars<trbars: peak, otherwise trough" is not AFL code. It > is simply a descripttion for you to understand how to know whether > the last pivot was a peak or a trough. Do not add that to your code! > > Mike > > --- In amibro...@yahoogrou ps.com > > <http://us.mc342.mail.yahoo.com/mc/compose?to=amibroker%40yahoogroups.com>, > ram vel <r...@...> wrote: > > > > Hi Zoris > > fl showing error after adding your lines > > it says perc is not acceptable > > Â > > Please, can you correct this code lines? > > If there are two options, kindly post both codings in full, and oblige > > Thanks in advance, > > regards > > rvlv > > ------------ --------- --------- --------- --------- --------- > -code---- --------- ------ > > P = ParamField( "Price field" ); > > change = Param("% change",5,0. 1,25,0.1) ; > > //Plot( Zig(P, change), _DEFAULT_NAME( ), ParamColor( "Color", > colorCycle ), ParamStyle(" Style") ); > > Â > > //added this extra code as per Zoris M Schuller > > //request lines description > > //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? > > Â > > Â > > Â > > //for ZIGHL afl go to (amongst others): Joris Schuller; Sat > 11/07/2009 10:25 AM > > //change =ZigPerc; > > //pkbars=PeakBars( H,ZigPerc) ; //if you use the ZIGHL formula, > otherwise replace H by C when using AB-Zig > > pkbars=PeakBars( H, Change); > > trbars=TroughBars( L, Change); //if you use the ZIGHL formula, > otherwise replace L by C when using AB-Zig > > Plot( Zig(H, change), _DEFAULT_NAME( ), ParamColor( "Color", > colorCycle ), ParamStyle(" Style") ); > > Â > > //if (pkbars<trbars) ; Peak, otherwise Trough;//this line gives error > > ------------ --------- --------- --------- --------- --------- - > > > > --- On Tue, 11/17/09, Joris Schuller <jschul...@. ..> wrote: > > > > > > From: Joris Schuller <jschul...@. ..> > > Subject: RE: [amibroker] ZIG peak and trough detection > > To: amibro...@yahoogrou ps.com > <http://us.mc342.mail.yahoo.com/mc/compose?to=amibroker%40yahoogroups.com> > > Date: Tuesday, November 17, 2009, 7:36 PM > > > > > > Â > > > > > > > > > > > > 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: amibro...@yahoogrou ps.com [mailto:amibroker@ yahoogroups. > com] On Behalf Of Richard > > Sent: Tuesday, November 17, 2009 7:12 PM > > To: amibro...@yahoogrou ps.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 > > > > >