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

[amibroker] Static Variables - workaround for ...



PureBytes Links

Trading Reference Links

Hi All
 
I'd appreciate some ideas about to wrap the title in this code which I use in Indicator Builder. It is code obtained from elsewhere in this user group.
 
I have 19 Leading Indices which I have in a watchlist and plot against the base XAO to help with a top down search.
 
Not all Indice names appear in the title. Is there an easy way to wrap the text in this type of title? The problem is that I cannot see where in the code the Title is encoded and so I cannot get to employ the \n new line function.
 

startpoint = Status("barvisible");

startpoint = startpoint - Ref( startpoint, -1 );

price = Close;

Plot( 100 * ( price/ValueWhen( startpoint, price ) - 1 ), Name(), colorBlack, styleThick );

ticker = ParamStr("Ticker 01", "XUJ" );

price = Foreign( ticker, "C");

Plot( 100 * ( price/ValueWhen( startpoint, price ) - 1 ), ticker, colorBlue );

ticker = ParamStr("Ticker 02", "XDJ" );

price = Foreign( ticker, "C");

Plot( 100 * ( price/ValueWhen( startpoint, price ) - 1 ), ticker, colorRed );

ticker = ParamStr("Ticker 03", "XEJ" );

price = Foreign( ticker, "C");

Plot( 100 * ( price/ValueWhen( startpoint, price ) - 1 ), ticker, colorGreen);

ticker = ParamStr("Ticker 04", "XFJ" );

price = Foreign( ticker, "C");

Plot( 100 * ( price/ValueWhen( startpoint, price ) - 1 ), ticker, colorBrown );

ticker = ParamStr("Ticker 05", "XFL" );

price = Foreign( ticker, "C");

Plot( 100 * ( price/ValueWhen( startpoint, price ) - 1 ), ticker, colorLightBlue );

ticker = ParamStr("Ticker 06", "XHJ" );

price = Foreign( ticker, "C");

Plot( 100 * ( price/ValueWhen( startpoint, price ) - 1 ), ticker, colorPink );

ticker = ParamStr("Ticker 07", "XIJ" );

price = Foreign( ticker, "C");

Plot( 100 * ( price/ValueWhen( startpoint, price ) - 1 ), ticker, colorOrange );

ticker = ParamStr("Ticker 08", "XMD" );

price = Foreign( ticker, "C");

Plot( 100 * ( price/ValueWhen( startpoint, price ) - 1 ), ticker, colorLightGrey );

ticker = ParamStr("Ticker 09", "XMJ" );

price = Foreign( ticker, "C");

Plot( 100 * ( price/ValueWhen( startpoint, price ) - 1 ), ticker, colorYellow );

ticker = ParamStr("Ticker 10", "XNJ" );

price = Foreign( ticker, "C");

Plot( 100 * ( price/ValueWhen( startpoint, price ) - 1 ), ticker, colorLime );

ticker = ParamStr("Ticker 11", "XPJ" );

price = Foreign( ticker, "C");

Plot( 100 * ( price/ValueWhen( startpoint, price ) - 1 ), ticker, colorViolet );

ticker = ParamStr("Ticker 12", "XTJ" );

price = Foreign( ticker, "C");

Plot( 100 * ( price/ValueWhen( startpoint, price ) - 1 ), ticker, colorSeaGreen);

ticker = ParamStr("Ticker 13", "XSJ" );

price = Foreign( ticker, "C");

Plot( 100 * ( price/ValueWhen( startpoint, price ) - 1 ), ticker, colorIndigo );

ticker = ParamStr("Ticker 14", "XTO" );

price = Foreign( ticker, "C");

Plot( 100 * ( price/ValueWhen( startpoint, price ) - 1 ), ticker, colorLightOrange );

ticker = ParamStr("Ticker 15", "XJO" );

price = Foreign( ticker, "C");

Plot( 100 * ( price/ValueWhen( startpoint, price ) - 1 ), ticker, colorTeal );

ticker = ParamStr("Ticker 16", "XKO" );

price = Foreign( ticker, "C");

Plot( 100 * ( price/ValueWhen( startpoint, price ) - 1 ), ticker, colorBlueGrey );

ticker = ParamStr("Ticker 17", "XSO" );

price = Foreign( ticker, "C");

Plot( 100 * ( price/ValueWhen( startpoint, price ) - 1 ), ticker, colorDarkYellow );

ticker = ParamStr("Ticker 18", "XTL" );

price = Foreign( ticker, "C");

Plot( 100 * ( price/ValueWhen( startpoint, price ) - 1 ), ticker, colorDarkOliveGreen );

GraphXSpace = 1;

See RSC.png at:

www.members.iinet.net/~kris.mar/RSC.png

Regards

kris45mar

 



Cheers

Chris
kris45mar@xxxxxxxxx
		
---------------------------------
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!

[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/GHeqlB/TM
--------------------------------------------------------------------~-> 

Check AmiBroker web page at:
http://www.amibroker.com/

Check group FAQ at: http://groups.yahoo.com/group/amibroker/files/groupfaq.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/