you could try this for the number of up bars in current day up to the selected bar on the chart

upbars = sum( C>O, barssince( datenum()!=ref(datenum(),-1) )+1 );
 // I have added the +1 because sum includes the current bar and the barssince starts at zero

to get the total for the entire day selcted you woul need to filter on the last bar of the day, ie
filter = datenum()!=ref(datenum(),1) or barindex()==(barcount-1);

or use this to count the entiire day for any bar selected
upbars = valuewhen( datenum()!=ref(datenum(),1) or barindex()==(barcount-1), sum( C>O, barssince( datenum()!=ref(datenum(),-1) )+1 ), 0 );

--
Cheers
Graham
AB-Write >< Professional AFL Writing Service
Yes, I write AFL code to your requirements
http://e-wire.net.au/~eb_kavan/ab_write.htm

On 08/10/06, voyager_3k <[EMAIL PROTECTED]> wrote:
Thanks Terry.  I was hoping for an easier way, but I guess this will work.

--- In [email protected], "Terry" <[EMAIL PROTECTED]> wrote:
>
> AddToComposite is perfect for this. You will probably want to filter on
> a Watchlist of stocks to sum.
>
> --
> Terry
> -----Original Message-----
> From: [email protected] [mailto: [email protected]] On
> Behalf Of voyager_3k
> Sent: Saturday, October 07, 2006 12:43
> To: [email protected]
> Subject: [amibroker] Accumulate values across symbols
>
> I want to summarize range of all up bars vs. sum of all down bars for
> a given day.  Is this possible in AB?
>
> I've been pulling the data into excel for each symbol and manually
> summing, but would be nice if I can find some features like that in AFL.
>
>
> I understand CUM & SUM, but did not see them work *across* all symbols
> in my exploration.    I've heard the Composites might be a way to go,
> but not sure how best to do that.
>
> Thanks for any comments or suggestions.
>
> AP
>
>
>
>
>
> 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 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 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:[EMAIL PROTECTED]
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/






__._,_.___

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 other support material please check also:
http://www.amibroker.com/support.html






SPONSORED LINKS
Software support Small business finance Business finance online
Business finance training Business finance course

Your email settings: Individual Email|Traditional
Change settings via the Web (Yahoo! ID required)
Change settings via email: Switch delivery to Daily Digest | Switch to Fully Featured
Visit Your Group | Yahoo! Groups Terms of Use | Unsubscribe

__,_._,___

Reply via email to