PureBytes Links
Trading Reference Links
|
you could try something like this for composite ticker ~XX
setforeign("~XX");
Confirm = Roc(c,50)>0;
restorepricearrays();
buy = TickerBuyConditions and Confirm;
On 7/27/05, kiasap <alllovem@xxxxxxxxx> wrote:
> Many people buy stocks only when their group (sector or industry)
> shows some strength). I am interested in this approach and I would
> appreciate any help (including a reference) in writing a formula to
> accomplish this with subsectors in AB. By a subsector in AB I mean any
> member of a sector listed in AB. For instance, "Energy-Alternatives"
> is a subsector of the "Energy" sector.
> I want AB to scan for stocks (satisfying some additional conditions)
> only when the corresponding Subsectors have a positive ROC in a given
> period.
>
> Using the AddComposite function I have created the data (Closing
> prices) for the Subsectors. Suppose that ~XX is a Subsector containing
> stock X. I want X in the results only if ROC(Foreign("~XX", "C"), 50) > 0;
>
> Thank you,
>
> Jim
>
>
>
>
>
>
>
>
>
> 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
>
>
>
>
>
>
>
>
--
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
------------------------ Yahoo! Groups Sponsor --------------------~-->
Try Online Currency Trading with GFT. Free 50K Demo. Trade
24 Hours. Commission-Free.
http://us.click.yahoo.com/DldnlA/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/
|