I would like to know how I can have a kind of colored dynamic labels in a similar way like for example I’ve seen the Thinkorswim platform shows in its charts, but of course in NinjaTrader 8.
For now, the most approximate concept I’ve seen in NT8 is to have the stats information in the Market Analyzer (MarketAnalyzerColumns) but for what I need it is not a solution because depending of the situation, I could need many labels in the same panel, maybe 5-8 labels in 1 single panel but also maybe 20 labels, and being in a chart panel this could be shown in a kind of cells in series that could take 1-2-3 rows depending of the chart window size (if chart widow is maximized or not) that is acceptable in terms of window space, but the Market Analyzer requires to have a whole extra open window, and I think it could be much more simplified having the dynamic labels directly in the chart where needed, either in the price panel or in any indicator panel.
As reference, I know it may not be exactly what I’m talking about but I’ve seen the script called BarInfo in ninjatraderecosystem.com (https://ninjatraderecosystem.com/use...nload/barinfo/), and this visual concept maybe would be a more or less approximate visual idea about what would be to have “labels” with the specific dynamic-live information you could need, but perhaps there could be a way more simplified to get something similar but direcly in the chart/indicator panel without to have to work with WPF that for this visually simple indicator I quickly see that the total code took around 1,500 code lines. So a simplified way being into the chart would be welcome.
To have an idea, the labels I’m talking about show stats and information like in the next example:
[FONT=Arial]…
// Create a label in a “cell” either with a fixed width or with the width of the text that it is filled with.
// If the first label (label0), create the label in the top left corner, if not, create the label (labelN) next to
// the previous label with X pixels of space separation.
…
if (Volume[0] > Volume[1] && Volume[0] < Volume[2])
{
// show into the label the [B]Volume change[/B] value for the current bar, (or if needed, for the bar where be the mouse pointer).
// also show into the label the text “[B]Higher Volume[/B]” next to the Volume change value.
// paint the label “cell” background in [COLOR=#006600][B]DarkGreen [/B][/COLOR]color.
}
else if (Volume[0] > Volume[1] && Volume[0] > Volume[2])
{
// show into the label the [B]Volume change[/B] value for the current bar, (or if needed, for the bar where be the mouse pointer).
// also show into the label the text “[B]Strong Volume[/B]” next to the Volume change value.
// paint the label “cell” background in [B][COLOR=#2ecc71]IntenseGreen [/COLOR][/B]color (LimeGreen).
}
…[/FONT]
Thank you in advance!

Comment