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

RE: [amibroker] Re: Creating own Index?



PureBytes Links

Trading Reference Links

using plotforeign


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of pilpilonim
Sent: Monday, 17 April 2006 7:37 PM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Re: Creating own Index?

anyone?

--- In amibroker@xxxxxxxxxxxxxxx, "pilpilonim" <pilpilonim@xxx>
wrote:
>
> Thank you
>
> I saved the below code and tried to run it as indicator (I know I
> doing something wrong).
>
> Now I can't see the index being displayed plus How can I save the
> data of the prefered index?
> (tried to add new symbol "MyComposite" but still cant see anything)
> --------------------------------------------------
> weight = 10; // default weight

> if( Name() == "MSFT" ) weight = 45;
> if( Name() == "AAPL" ) weight = 5;
> if( Name() == "INTC" ) weight = 50;


> AddToComposite( weight * Close, "MyComposite", "X" );
>
> Plot( weight * Close, "MyComposite", colorRed, styleLine );
>
>
>
>
> --- In amibroker@xxxxxxxxxxxxxxx, "Tomasz Janeczko" <amibroker@>
> wrote:
> >
> > Hello,
> >
> > Use AddToComposite
> > http://www.amibroker.com/f?addtocomposite
> > http://www.amibroker.com/guide/a_addtocomposite.html
> >
> > To use different weights for each symbol use if( name()
= "..." )
> construct.
> >
> > For example:
> >
> > weight = 10; // default weight
> >
> > if( Name() == "MSFT" ) weight = 20;
> > if( Name() == "AAPL" ) weight = 5;
> > if( Name() == "INTC" ) weight = 15;
> >
> > /// and so on.
> >
> > AddToComposite( weight * Close, "~MyComposite", "X" );
> >
> >
> > Best regards,
> > Tomasz Janeczko
> > amibroker.com
> >   ----- Original Message -----
> >   From: pilpilonim
> >   To: amibroker@xxxxxxxxxxxxxxx
> >   Sent: Saturday, April 15, 2006 11:08 AM
> >   Subject: [amibroker] Creating own Index?
> >
> >
> >   How can I create my own index based on several stocks and
> defining
> >   each stock its percentage in the index ?
> >
> >   Thanks
> >
> >
> >
> >
> >
> >   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
> >
> >     a..  Visit your group "amibroker" on the web.
> >      
> >     b..  To unsubscribe from this group, send an email to:
> >      amibroker-unsubscribe@xxxxxxxxxxxxxxx
> >      
> >     c..  Your use of Yahoo! Groups is subject to the Yahoo!
Terms
> of Service.
> >
> >
> > -----------------------------------------------------------------
--
> -----------
> >
>







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