PureBytes Links
Trading Reference Links
|
Hi JS,
Thanks! That is a great improvement over my own results. Definitely
useful. Thank you for the help.
Rgds,
klal
--- In amibroker@xxxxxxxxxxxxxxx, "johsun" <johanskatt@xxxx> wrote:
> You can use the Zig function and add som condition than determines
> wether the High or the Low should be used in calculating the Zig
> array. This is a bit crude but workable:
>
> Plot(C,"",colorBlack,styleBar);
> p=Param("change",10,5,30);
> x=IIf(H>=Ref(H,-1) AND H>=Ref(H,1),H,IIf(L<=Ref(L,-1) AND L<=Ref
> (L,1),L,C));
> Plot(Zig(x,p),"",colorGreen,styleLine|styleThick);
>
> /JS
>
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "klal25" <lal@xxxx> wrote:
> > I would be grateful if someone could kindly show me how to plot
a
> > line connecting peaks and troughs using the Linearray()
function.
> > The line should extend from the High of the peak to the Low of
the
> > trough.
> >
> > I am aware of the Zig() function but that doesn't let me connect
> the
> > exact High of the peak with the exact Low of the trough.
> >
> > Any help/pointers gratefully accepted.
> >
> > Thanks,
> > klal
Send BUG REPORTS to bugs@xxxxxxxxxxxxx
Send SUGGESTIONS to suggest@xxxxxxxxxxxxx
-----------------------------------------
Post AmiQuote-related messages ONLY to: amiquote@xxxxxxxxxxxxxxx
(Web page: http://groups.yahoo.com/group/amiquote/messages/)
--------------------------------------------
Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.html
Yahoo! Groups Links
To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
To unsubscribe from this group, send an email to:
amibroker-unsubscribe@xxxxxxxxxxxxxxx
Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
|