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

Re: [amibroker] How can you sum events when using Explore or Scan and get a progressive count?



PureBytes Links

Trading Reference Links

I assume you mean the number for each symbol individually
Cum(buy) will add the signals and give the progressive answer in an exploration

filter = buy or sell;
addcolumn(cum(buy),"buys",1);
addcolumn(cum(sell),"sells",1);

If you explore over all quotations you will see the numbers

If you were wanting to count them for all of a group of stocks
combined then you need to use addtocomposite

AddToComposite( Buy, "~Signals", "O");
AddToComposite( Sell>0, "~Signals", "C");

I use the sell>0 in case you have applystop exits, also you will need
to add equity(1) before the lines to give the stops a sell number


--
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 12/29/05, Barry Scarborough <razzbarry@xxxxxxxxxxxx> wrote:
> I am scanning with a specific criteria and I want to find how many
> stocks give a buy signal and how many a sell signal. I have tried to
> use sum and cum but the results seem to be wrong. As explore
> progresses through the database I see the buys and sells but I added a
> column in explore and tried to watch the number of events accumulate
> but the number never changes. I know there must be an easy way to do
> this but it alludes me. How would I count the events and then put it
> in the output column so I can see the number rise with each signal?
>
> Thanks,
> Barry
>
>
>
>
>
>
> 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
>
>
>
>
>
>
>
>


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Try Online Currency Trading with GFT. Free 50K Demo. Trade 
24 Hours. Commission-Free. 
http://us.click.yahoo.com/RvFikB/9M2KAA/U1CZAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

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/

<*> 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/