PureBytes Links
Trading Reference Links
|
Prashanth....
I have a simple ZZ afl that I'm wanting to run an Explore against a
watchlist and get the number of ZZs (for a given %) for each ticker
within a give date range. If the from/to date range is selected in
AA, the totals per ticker do not appear; however, if 'n last days' is
selected the a total number of ZZs appear....but, the results seem to
be for the life of each ticker, not a user defined date range.
So, what is needed to get the total count of ZZs for each ticker
within a given date range?
// ZZ Count
Perc = Optimize("Perc ZZ", Param("ZZ Perc", 35), 1, 50, 2);
Plot(C, "", colorBlack);
Plot( Zig(Close,perc), "ZIG", colorRed);
myvar = Cum( PeakBars(Close,perc) == 0 ) +Cum( TroughBars(Close,perc)
== 0 );
Title = "total = " +myvar ;
Filter = 1;
AddColumn(perc,"ZZ%",1.0);
AddColumn(myvar,"total",1.0);
Don
--- In amibroker@xxxxxxxxxxxxxxx, "Prashanth" <prash454.ta@xxx> wrote:
>
> How about using AddtoComposite function?
>
> Cheers
>
> Prashanth
>
> ----- Original Message -----
> From: "marketmonk777" <RedEyes777@xxx>
> To: <amibroker@xxxxxxxxxxxxxxx>
> Sent: Friday, January 04, 2008 1:28 PM
> Subject: [amibroker] Re: Running scans just to count conditions
>
>
> > True, and sorry I wasn't more specific. My idea is to test for a
> > number of conditions in the same scan (# of stks above 50 dma,
above
> > 200 dma, # of stocks with 14 period RSI > 70) and it would be
nice to
> > have this number be a symbol which I could plot.
> >
> >
> > --- In amibroker@xxxxxxxxxxxxxxx, "Prashanth" <prash454.ta@>
wrote:
> > >
> > > Why not just Explore. On the bottom of the Automatic Analyzer,
you
> > get the
> > > Number of Rows which is the number of tickers which have gone
> > through the
> > > Filter.
> > >
> > > Cheers
> > >
> > > Prashanth
> > > ----- Original Message -----
> > > From: "marketmonk777" <RedEyes777@>
> > > To: <amibroker@xxxxxxxxxxxxxxx>
> > > Sent: Friday, January 04, 2008 9:03 AM
> > > Subject: [amibroker] Running scans just to count conditions
> > >
> > >
> > > > Hi,
> > > >
> > > > Is it possible to create a scan that counts the number of
stocks (in
> > > > my database) that are above the 200 day moving average (for
example)
> > > > and only return the count value? Not interested in the
stocks, just
> > > > the count value.
> > > >
> > > > Dave
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Please note that this group is for discussion between users
only.
> > > >
> > > > To get support from AmiBroker please send an e-mail directly
to
> > > > SUPPORT {at} amibroker.com
> > > >
> > > > For NEW RELEASE ANNOUNCEMENTS and other news always check
DEVLOG:
> > > > http://www.amibroker.com/devlog/
> > > >
> > > > For other support material please check also:
> > > > http://www.amibroker.com/support.html
> > > >
> > > > Yahoo! Groups Links
> > > >
> > > >
> > > >
> > >
> >
> >
> >
> >
> > Please note that this group is for discussion between users only.
> >
> > To get support from AmiBroker please send an e-mail directly to
> > SUPPORT {at} amibroker.com
> >
> > For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
> > http://www.amibroker.com/devlog/
> >
> > For other support material please check also:
> > http://www.amibroker.com/support.html
> >
> > Yahoo! Groups Links
> >
> >
> >
>
Please note that this group is for discussion between users only.
To get support from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
For other support material please check also:
http://www.amibroker.com/support.html
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/amibroker/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/amibroker/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|