PureBytes Links
Trading Reference Links
|
Hi,
>From the AA window, set the filter to the sector that you want (e.g.
IT), then run the following script.
Buy = 0;
AddToComposite(Close, "~IT", "X");
AddToComposite(1, "~IT", "I");
Plot(Foreign("~IT", "X")/Foreign("~IT", "I"), "IT Index", colorRed);
The code above is an updated version of that found here:
http://amibroker.com/guide/a_addtocomposite.html
Read up on AddToComposite for detail, particularly the excellent
guide provided by Herman
http://www.amibroker.net/3rdparty/IntroToAtc.pdf
Mike
--- In amibroker@xxxxxxxxxxxxxxx, "shahariar4" <shahariar4@xxx> wrote:
>
> Hi:
>
> Can anyone pls help telling me how can i get a sector work like a
> symbol in Amibroker? Suppose-I have a sector name 'IT' which has 6
> stocks, my question is-
>
> 1. How can i change the builtin sector format of AMI and inlcue the
> stocks in IT sector?
>
> 2. Then how can i use the IT sector as in charts/indicators? like i
> want to see the whote IT sector as a symbol so that i can try
> different idicators/oscillaors etc on that to see the sector's
> positions etc....I want to see the secotr as a symbol
>
>
> Will highly appreciate if any one could kindly help.
>
>
> Thanks
>
> Shahariar4
>
------------------------------------
**** IMPORTANT ****
This group is for the discussion between users only.
This is *NOT* technical support channel.
*********************
TO GET TECHNICAL SUPPORT from AmiBroker please send an e-mail directly to
SUPPORT {at} amibroker.com
*********************
For NEW RELEASE ANNOUNCEMENTS and other news always check DEVLOG:
http://www.amibroker.com/devlog/
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:amibroker-digest@xxxxxxxxxxxxxxx
mailto:amibroker-fullfeatured@xxxxxxxxxxxxxxx
<*> 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/
|