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

Re: [amibroker] Exploring and charting industry groups...



PureBytes Links

Trading Reference Links

All,

Well, no sooner had I posted my question concerning industry group
explorations when I found the following example code within Herman van den
Bergen's nifty paper on how to use AddToComposite...

sym = "~" + SectorID(1);
AddToComposite( L, sym,"L");
AddToComposite( O, sym,"O");
AddToComposite( H, sym,"H");
AddToComposite( C, sym,"C");
AddToComposite( V, sym, "V");
Buy=Sell=Short=Cover=0;
Filter=1;

Calculating my own composites with AddToComposite seems to be the correct
strategy because this code example can be made to iterate over all the
Sector ID's and produce a complete universe of composites. Once I have the
composite symbols in hand, I can plot them as follows...

Plot(Foreign("~" + composite_name,”X”), composite_name,1,1);

Any comments?

-- John


> All,
>
> It doesn't appear that AMIBroker is capable of exploring and charting
> individual Industry Groups or Sectors, only the stocks within those
> groups. For example, I would like to find all Industry Groups
> (representing aggragations of stock metrics) that are above their 200
> day MA and then chart each of these Industry Groups by their S&P
> group names.
>
> Note that this is much different from exploring and charting all stocks
> within an Industry Group.
>
> Is there a built-in way to do this or is there AFL to write, and is AFL
> even capable of doing this? Would AddToComposite be a good strategy for
> creating synthetic "symbols" repsenting these aggregates?
>
> -- John





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/