Full Name in MDI Tabs?

The AmiBroker manual states:

For chart windows the name is always in the format of: Symbol - FullName

And the screen shots in the manual show MDI tabs with the Symbol - FullName format, yet in my charts, it only displays the symbol, not the FullName. It displays the FullName in the window title, but not in the MDI tab. How can I get it to display the FullName in the MDI tab?


1 Like

Honestly I'm not aware of a any setting in Tools-Preferences or anywhere else that would add Fullname to chart tab. In the release notes I have not found anything related to FullName and Chart tabs since version 4.90. FullName of selected symbol is actually shown in the UI bar at the top already.


BTW, symbol fullname is shown in ticker box also once being checked in Tools-Preferences


So if you want more then instead of wasting space in chart tabs either use Fullname() function within Title

_N( Title = StrFormat( "{{NAME}} - " + FullName() + " - {{INTERVAL}} - {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%), Vol %g {{VALUES}}",
                           O, H, L, C, SelectedValue( ROC( C, 1 ) ), V ) );

Or (...requires AB 6.20...) use

_N( Title = StrFormat( "{{NAME}} - %s - {{INTERVAL}} - {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%), Vol %g {{VALUES}}",
                           FullName(), O, H, L, C, SelectedValue( ROC( C, 1 ) ), V ) );

Or simpler, (...this requires AB 6.20 too...) use



_N( Title = StrFormat( "{{NAME}} - {{FULLNAME}} - {{INTERVAL}} - {{DATE}} Open %g, Hi %g, Lo %g, Close %g (%.1f%%), Vol %g {{VALUES}}",
                           O, H, L, C, SelectedValue( ROC( C, 1 ) ), V ) );

In case of title becoming too long you may add ChartWrapTitle to SetChartOptions like so

SetChartOptions( 0, chartShowDates | chartShowArrows | chartWrapTitle );


It is disabled by design because tabs are supposed to be SHORT, not taking half of screen width. Full names would make them way too wide.

Sure, I get that, but why not provide a chart setting where the user could choose between displaying EITHER the Symbol OR the Full Name? In the screen shot I posted, the Full Name is “Sugar”, which is a lot shorter AND more descriptive than the Symbol, “CHRIS/ICE_SB1”.

I realize there will be instances where the full name is some long company name, but this setting could be individually configurable for each chart. You could also provide a global preference setting to limit the tab length to X number of characters.

Full name appears already in the window caption bar.

@Tomasz I fully agree, that the information displayed in MDI Tabs should be short and informative - and usually that is the case, but let me give another example showing that being able to customize what is displayed in MDI Tabs would be useful in some specific situations.

Sometimes charts might be used to display (via GFX functions) data which has nothing to do (or very little to do) with the selected Symbol or the timeframe. This might an example:

I've been already using a couple of similar codes (and I 'm working on the next ones - because thanks to some features implemented in the latest versions of AB, they work really great :slight_smile: ) and all I see in the MDI Tabs (in such cases) is the information which is not helpful - it doesn't identify a particular code and is usually identical for all the codes:

MDI Tab 4

If I open a new Analysis Window, its default name is Analysis1, Analysis2 and so on, but if I save it as Analysis project file (*.apx) I can choose its unique and descriptive name which is also displayed in MDI Tab instead of the default Analysis 1,2,3... (an example above). That is a very good solution.

For the above reasons, it would be great if the user could change/customize the information displayed in MDI tabs in some specific situations.

Thank you.

1 Like


I am thinking about “Alias” can be linked somehow in MDI tabs.
Alias can be shorter than anything else, and maybe we can use this in the future. Who knows…

Yes and that’s fine for the currently active chart.

However, when you have multiple tabs open and the tabs have long, unhelpful symbols like CHRIS/CME_SI1 and CHRIS/CME_O1 and CHRIS/ICE_O1, I’m sure you can see how the user might waste time and energy constantly having to mentally decode the symbol names. Instead of the above symbols, wouldn’t it be nicer to see Silver, Oats and Heating Oil?

@bkonia I do not recommend the following workaround but you may insert CHRIS/ICE_O1 into Alias field instead of inserting it into Name field. The data would still be getting updates from Quandl.com. The name field could have just ICE_O1 or something else for example. ICE_O1 would be shown on chart tab. In formulas Alias can be accessed by using GetFnData. https://www.amibroker.com/guide/afl/getfndata.html

I tried another way of (at least partially) customizing the text displayed in MDI Tabs. This method might be useful in cases like the one I presented in my post above - when the chart is used to display (via Gfx functions) data with no reference to the selected symbol and the user doesn't need the Symbol to be updated by the plugin. However I don't recommend this method for most users, because tampering with database settings might invoke some serious problems !!

I have selected a few symbols from my data base which I never use and simply renamed them (in Symbol Information Window) according to my needs (symbols must contain some quotes). I also changed their "Use only local database" flag from "No" to "Yes". Then using 'Symbol lock" I assigned selected Symbols to some charts. Thanks to it I can momentarily recognize which Tab holds which code:

Custom Titles 2

As I wrote - I am aware, that this is definitely not a recommended solution (rather a trick), but for now it is probably the only way in which I can change the text displayed in MDI Tabs (so that it is helpful to me) in some specific cases. It works.