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

RE: [amibroker] Relative performance chart title help



PureBytes Links

Trading Reference Links

As Dan said, just put the \n in the loop. I have done that for you below:

 

_SECTION_BEGIN("Relative Performance");

_N( TickerList = ParamStr("Tickers", "^DJI,MSFT,GE") );

NumBars = 20;

fvb = Status("firstvisiblebar");

Plot( 100 * ( C - C[ fvb ] ) / C[ fvb ], Name(), colorBlue );

for( i = 0; ( symbol = StrExtract( TickerList, i ) ) != ""; i++ )

{

 fc = Foreign( symbol, "C" );

 

 if( ! IsNull( fc[ 0 ] ) )

 {

   Plot( 100 * ( fc - fc[ fvb ] )/ fc[ fvb ], "\n" + symbol, colorLightOrange + ( (2*i) % 15 ), styleLine );

 }

}

PlotGrid( 0, colorYellow );

_N( Title = "{{NAME}} - Relative Performance [%]: {{VALUES}}" );

_SECTION_END();

 

--

Terry

-----Original Message-----
From:
amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of Jason Hart
Sent: Friday, Decem
ber 02, 2005 16:03
To:
amibroker@xxxxxxxxxxxxxxx
Su
bject: RE: [amibroker] Relative performance chart title help

 

Terry/Dan,

 

I've tried the n thing before but the problem is the title in the built in relative performance charts is one line.  So when I insert \n into the code it does move the tickers vertically but they are still one big line across.  This normally isn't a problem but I have quite a few tickers on the pane and about half of them get cut off.

 

Jason

Dan Clark <dan_public@xxxxxxxxxxx> wrote:

Hi,

 

I use this a lot for supporting data.  Here’s the title string for one of my key charts.

 

Regards,


Dan.

 

Title = Title        +  EncodeColor(colorWhite)

          + "\nName:  " + CurSymbolName

          + "\n" + EncodeColor(colorAqua) + "Sect: " + EncodeColor(colorWhite) + SectorID(mode = 1) 

          + "   " + EncodeColor(colorOrange) + "Ind: " + EncodeColor(colorWhite) +  IndustryID( mode = 1 )

          + "\n" + "Group:             "   + GroupID(1)

          + "\n" + "Mkt Cap:          " + WriteVal( MarketCapNum, 1.0, separator = True) + "  " + MarketCapCategory

          + "\n" + "Est Earnings:    " + EarningsDate

          + "\n" + EncodeColor(colorWhite) + "Inst Hold:           " + WriteIf(InstitutionalHold > 20 AND InstitutionalHold < 60, EncodeColor(colorLime), EncodeColor(colorRed)) + NumToStr( InstitutionalHold, 1.0 ) + "%"

          + "\n" + EncodeColor(colorWhite) + "QRS:                 "                     + NumToStr(LastValue(QRS, True), 1.0)                          

          + "\n" + "Symbol Type:    " + CurSymbolType

          + "\n" + "Overlay Type:   " + OverlayType

          + "\n" + EncodeColor(colorWhite) + "Ovr Idx Count:   "  +  IndexCountTitle   

 


From: amibroker@xxxxxxxxxxxxxxx [mailto:amibroker@xxxxxxxxxxxxxxx] On Behalf Of jayhart_1972
Sent: Friday, December 02, 2005 7:15 AM
To: amibroker@xxxxxxxxxxxxxxx
Subject: [amibroker] Relative performance chart title help

 

is there a way to get the relative performance title to show up
vertically on the left hand side of the chart pane rather than
horizontally across the top?



 


Yahoo! Personals
Single? There's someone we'd like you to meet.
Lots of someones, actually. Yahoo! Personals


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