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

Re: [amibroker] counting setups and conditioning the buy on thatcount



PureBytes Links

Trading Reference Links

What is this atc() function?

Rakesh Sahgal wrote:
Something on these lines should be what you need if I have understood your conditions correctly:


buytrigger=x;

atcb=atc(buytrigger);

buy=atcb>=n;


R

On 1/30/06, Yuki Taga <yukitaga@xxxxxxxxxxxxx> wrote:
This is probably startlingly obvious to people who can program, but I
am profoundly algorithmically challenged.  ^_^

I have certain symbols that setup according to certain criteria.  I
want to *count* those symbols on every trading day, and then base
*any* buy on the *count* being at or above a certain number.

For example, if I had only 20 setups on one day, I might write the
buy to not allow any trades. But if I had 50 setups I might write to
buy to take all of the eligible trades that day.

I have no problem with my basic code for this system.  But I have no
idea how to return a count of the eligibles for any day.  I suppose I
need to define a variable that will be the count, and I'm practically
home free.  But as I say, I don't know how to get that value
returned.

Yuki



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
Investment management software Real estate investment software Investment property software
Software support Real estate investment analysis software Investment software


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