PureBytes Links
Trading Reference Links
|
Franco,
Yes, the formula returns bar number when the peaks you asked for
happened.
To get price level just replace Cum(1) by any field which you want to get.
To get close price value use:
ValueWhen( Zig( Close, 5 ) == Peak( Close, 5 ) AND Peak( Close, 5 ) >
LastValue( Close ), Close );
(Note that the only difference is that the last argument of ValueWhen
function
is Close (instead of Cum(1) )
Hope this helps.
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "ffpsi" <ffpsi@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Saturday, April 20, 2002 10:28 PM
Subject: [amibroker] Re: How to find.....
> Tomasz,
>
> sorry for being in late to respond to your suggestion, but I tried to
> understand your formula. I think you have understood what I was
> looking for, but the results of your formula aren't price levels. Are
> they a counting of peaks higher of last closing price? Are they
> ordinal numbers, perhaps? You sure have seen the charts I posted
> today and yesterday to illustrate the matter. How do you think about?
>
> Best regards and thanks in advance
>
> Franco
>
> --- In amibroker@xxxx, "Tomasz Janeczko" <amibroker@xxxx> wrote:
> > Franco,
> >
> > Your question is not clear to me.
> > "it's possible to find, say, the most recent peak (or trough) wich
> was
> > higher (or lower) than today's Close?"
> >
> > With "today's close" do you mean the most recent close ( LastValue(
> Close ) )
> > or the close of bar being analysed/scanned?
> >
> > If first is the case:
> > ValueWhen( Zig( Close, 5 ) == Peak( Close, 5 ) AND Peak( Close, 5 )
> > LastValue( Close ), Cum(1) );
> >
> > Best regards,
> > Tomasz Janeczko
> > amibroker.com
> > ----- Original Message -----
> > From: "franco fornari" <ffpsi@xxxx>
> > To: <amibroker@xxxx>
> > Sent: Wednesday, April 17, 2002 8:00 PM
> > Subject: [amibroker] How to find.....
> >
> >
> > > Tomasz,
> > >
> > > sorry for my insistence. Since nobody answered to my
> > > message (14641), must I think what I was asking it's,
> > > at present almost, impossible to do?
> > >
> > > Best regards,
> > >
> > > Franco
> > >
> > >
> ______________________________________________________________________
> > > Speciale Giochi - Civilization III
> > > http://it.yahoo.com/mail_it/foot/?http://civ3.yahoo.it/
> > >
> > >
> > >
> > >
> > > Your use of Yahoo! Groups is subject to
> http://docs.yahoo.com/info/terms/
> > >
> > >
> > >
>
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
|