[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [amibroker] Re: hi i need help



PureBytes Links

Trading Reference Links

Mike,

Use Zig(), Peak() and Trough functions.

For example:

Plot( Close, "Price", 4 );
Plot( Zig( Close, 3 ), "zig-zag", 3 );


Best regards,
Tomasz Janeczko
amibroker.com
----- Original Message ----- 
From: "Mike Pham" <mmqp@xxxx>
To: <amibroker@xxxxxxxxxxxxxxx>
Sent: Friday, April 19, 2002 2:15 AM
Subject: Re: [amibroker] Re: hi i need help


> Hi,
> 
> What am I trying to do is to indentify the
> trough/peaks as shown in blue circles of the
> attachment.
> 
> 
> --- dtsokakis <TSOKAKIS@xxxx> wrote:
> > Mike,
> > What do you ask for indicator builder. A single
> > number ?
> > The purpose of this window is to plot arrays. 
> > DT
> > --- In amibroker@xxxx, Mike Pham <mmqp@xxxx> wrote:
> > > 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/
> > 
> > 
> 
> 
> __________________________________________________
> 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/ 
> 
> 


--------------------------------------------------------------------------------