anyone? --- In [email protected], "pilpilonim" <[EMAIL PROTECTED]> 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 [email protected], "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: [email protected] > > 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: > > [EMAIL PROTECTED] > > > > c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms > of Service. > > > > > > ----------------------------------------------------------------- -- > ----------- > > >
------------------------ Yahoo! Groups Sponsor --------------------~--> GFT Forex Trading Accounts As low as $250 with up to 400:1 Leverage. Free Demo. http://us.click.yahoo.com/lpv1TA/jlQNAA/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: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
