PureBytes Links
Trading Reference Links
|
Hello,
If you need the most recent value use
LastValue() function:
LastValue( HHV( High, 260 ) );
LastValue( HHVBars( High, 260 ) );
Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message -----
From: "Mike Pham" <mmqp@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Wednesday, April 17, 2002 3:50 AM
Subject: Re: [amibroker] hi i need help
> Anthony,
>
> your code works in AA but not in indicator, due to the
> fact that the LLVBars/HHVBars is building up an array
> instead of giving a true lowest/highest single number
> high or low of the most recent 260days.
>
>
> --- Anthony Faragasso <ajf1111@xxxx> wrote:
> > Hello, Mike
> >
> > That is not comparing, It is saying that the highest
> > high value of the
> > high in 260 pds is the" high". To use for
> > calculation of BarsSince.
> >
> > Anyway here is another way of doing it using some
> > new functions: HHVBars
> > and LLVBars. Same settings. click explore.
> >
> > pds=260;
> >
> > Value1=HHVBars(H,pds);
> > Value2=LLVBars(L,pds);
> > Filter=1;
> > AddColumn(Value1,"BarsSinceHigh");
> > AddColumn(Value2,"BarsSinceLow");
> >
> > Anthony
> >
> > Mike Pham wrote:
> >
> > >
> > >
> > > Anthony,
> > >
> > > I tried it and play around with it in AA->explore.
> > One thing I don't
> > > understand is why do compare it to 'H' in:
> > >
> > > ----> ValueH=HHV(H,pds)==H;
> > >
> > ^----------
> > >
> > > Anthony Faragasso <ajf1111@xxxx> wrote:
> > >
> > > Mike,
> > >
> > > Try this, set apply to all stocks, and n last
> > quotations,
> > > n=1, click
> > > explore.
> > >
> > > pds=260;
> > >
> > > ValueH=HHV(H,pds)==H;
> > > ValueH2=BarsSince(ValueH);
> > >
> > > ValueL=LLV(L,pds)==L;
> > > ValueL2=BarsSince(ValueL);
> > >
> > > Filter=1;
> > > AddColumn(HHV(H,pds),"high");
> > > AddColumn(ValueH2,"BarsSince");
> > > AddColumn(LLV(L,pds),"Low");
> > > AddColumn(ValueL2,"BarsSince");
> > >
> > > Anthony
> > >
> > > Mike Pham wrote:
> > >
> > > >
> > > >
> > > > Hi,
> > > >
> > > > This might has been asked before. How can
> > AB return
> > > number of bars
> > > > passed since stock makes 52 weeks low/high?
> > TIA
> > > >
> > > >
> > > >
> > >
> >
> -----------------------------------------------------------------------
> > >
> > > > Do You Yahoo!?
> > > > Yahoo! Tax Center - online filing with
> > TurboTax
> > > > Yahoo! Groups Sponsor
> > > ADVERTISEMENT
> > >
> > >
> > > >
> > > > Your use of Yahoo! Groups is subject to the
> > Yahoo! Terms
> > > of Service.
> > >
> > >
> > >
> > > Your use of Yahoo! Groups is subject to the
> > Yahoo! Terms of
> > > Service.
> > >
> > >
> > >
> >
> -----------------------------------------------------------------------
> > > Do You Yahoo!?
> > > Yahoo! Tax Center - online filing with TurboTax
> > > Yahoo! Groups Sponsor
> > ADVERTISEMENT
> >
> >
> > >
> > > Your use of Yahoo! Groups is subject to the Yahoo!
> > Terms of Service.
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Tax Center - online filing with TurboTax
> http://taxes.yahoo.com/
>
>
>
>
> Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
>
>
>
|